<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://help.odatalink.com/index.php?action=history&amp;feed=atom&amp;title=Xero_Accounting_Endpoint%3A_GetInvoiceUrl</id>
	<title>Xero Accounting Endpoint: GetInvoiceUrl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://help.odatalink.com/index.php?action=history&amp;feed=atom&amp;title=Xero_Accounting_Endpoint%3A_GetInvoiceUrl"/>
	<link rel="alternate" type="text/html" href="https://help.odatalink.com/index.php?title=Xero_Accounting_Endpoint:_GetInvoiceUrl&amp;action=history"/>
	<updated>2026-10-26T14:20:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://help.odatalink.com/index.php?title=Xero_Accounting_Endpoint:_GetInvoiceUrl&amp;diff=4467&amp;oldid=prev</id>
		<title>Nic: Created page with &quot;== Overview ==  The Xero &#039;&#039;&#039;GetInvoiceUrl&#039;&#039;&#039; endpoint provides a method to retrieve a url that can be used to send to your customers so they can...&quot;</title>
		<link rel="alternate" type="text/html" href="https://help.odatalink.com/index.php?title=Xero_Accounting_Endpoint:_GetInvoiceUrl&amp;diff=4467&amp;oldid=prev"/>
		<updated>2025-10-08T04:39:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Overview ==  The Xero &amp;#039;&amp;#039;&amp;#039;GetInvoiceUrl&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php?title=Xero_Accounting_Endpoints&quot; title=&quot;Xero Accounting Endpoints&quot;&gt;endpoint&lt;/a&gt; provides a method to retrieve a url that can be used to send to your customers so they can...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
The Xero &amp;#039;&amp;#039;&amp;#039;GetInvoiceUrl&amp;#039;&amp;#039;&amp;#039; [[Xero Accounting Endpoints|endpoint]] provides a method to retrieve a url that can be used to send to your customers so they can view the invoice as recorded within Xero. Note that it only supports customer invoices and not supplier invoices.&lt;br /&gt;
&lt;br /&gt;
Two variations of this function exists.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GetInvoiceUrl&amp;#039;&amp;#039;&amp;#039; works for a single data file.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;GetInvoiceUrlDataFile&amp;#039;&amp;#039;&amp;#039; is recommended when using the consolidation OData Feed.&lt;br /&gt;
&lt;br /&gt;
This function requires a single call to Xero for a single transaction. As such, it should only be used for a few transactions otherwise Xero will quickly impose the [[OdataLink Error Code 9004: Xero imposed a limit of 5000 calls per day on this data file|5000 calls daily limit]].&lt;br /&gt;
&lt;br /&gt;
It is a [[Function Endpoints|function]] that accepts a series of parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
The GetInvoiceUrl is a [[Function Endpoints|function]] that accepts the following parameters.&lt;br /&gt;
&lt;br /&gt;
;DataFile &amp;#039;&amp;#039;(for GetInvoiceUrlDataFile only)&amp;#039;&amp;#039;&lt;br /&gt;
:A [[Field Type: Text|text field]] that accepts the data file id, name or code.&lt;br /&gt;
&lt;br /&gt;
;InvoiceID&lt;br /&gt;
:A [[Field Type: GUID|GUID field]] that accepts the id of the invoice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Fields ==&lt;br /&gt;
&lt;br /&gt;
The following fields are available for the GetHistoryInvoice endpoint.&lt;br /&gt;
&lt;br /&gt;
;DataFileID&lt;br /&gt;
:A [[Field Type: GUID|GUID field]] representing the internal id of the data file within OdataLink. This field can be used to link to the [[Endpoint: DataFiles|data files endpoints]].&lt;br /&gt;
&lt;br /&gt;
;DataFileName&lt;br /&gt;
:A [[Field Type: Text|text field]] used as the data file name.&lt;br /&gt;
&lt;br /&gt;
;DataFileCode&lt;br /&gt;
:A [[Field Type: Text|text field]] used as the data file code.&lt;br /&gt;
&lt;br /&gt;
;InvoiceID&lt;br /&gt;
:A [[Field Type: GUID|guid field]] that provides the id of the invoice.&lt;br /&gt;
&lt;br /&gt;
;OnlineInvoiceUrl&lt;br /&gt;
:A [[Field Type: Text|text field]] that provides the url to view the invoice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Xero API ==&lt;br /&gt;
&lt;br /&gt;
For a detailed run through of the endpoint, you can see the [https://developer.xero.com/documentation/api/accounting/invoices#retrieving-the-online-invoice-url Xero API].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Fields ==&lt;br /&gt;
&lt;br /&gt;
:None&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Endpoints ==&lt;br /&gt;
&lt;br /&gt;
:[[Xero Accounting Endpoint: Invoices|Invoices]] &amp;#039;&amp;#039;&amp;#039;---&amp;#039;&amp;#039;&amp;#039; [[Xero Accounting Endpoint: InvoicesExpanded|InvoicesExpanded]] &amp;#039;&amp;#039;&amp;#039;---&amp;#039;&amp;#039;&amp;#039; [[Xero Accounting Endpoint: InvoicesExpandedTable|InvoicesExpandedTable]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Topics ==&lt;br /&gt;
&lt;br /&gt;
:[[Xero Accounting Models]]&lt;br /&gt;
:[[Xero Accounting Endpoints]]&lt;/div&gt;</summary>
		<author><name>Nic</name></author>
	</entry>
</feed>