Allows you to retrieve any sales invoices or purchase bills

GET {{baseUrl}}/Invoices?where=<string>&order=<string>&IDs=<uuid>,<uuid>&InvoiceNumbers=<string>,<string>&ContactIDs=<uuid>,<uuid>&Statuses=<string>,<string>&page=<integer>&includeArchived=<boolean>&createdByMyApp=<boolean>&unitdp=<integer>

Request Params

KeyDatatypeRequiredDescription
wherestringFilter by an any element
orderstringOrder by an any element
IDsstringFilter by a comma-separated list of InvoicesIDs.
InvoiceNumbersstringFilter by a comma-separated list of InvoiceNumbers.
ContactIDsstringFilter by a comma-separated list of ContactIDs.
StatusesstringFilter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.
pagestringe.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
includeArchivedstringe.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
createdByMyAppstringWhen set to true you'll only retrieve Invoices created by your app
unitdpstringe.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts

HEADERS

KeyDatatypeRequiredDescription
If-Modified-SincestringOnly records created or modified since this timestamp will be returned
xero-tenant-idstring(Required) Xero identifier for Tenant

RESPONSES

status: OK

{&quot;Id&quot;:&quot;900c500b-e83c-4ce2-902a-b8ba04751748&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1552326816230)/&quot;,&quot;Invoices&quot;:[{&quot;Type&quot;:&quot;ACCREC&quot;,&quot;InvoiceID&quot;:&quot;d4956132-ed94-4dd7-9eaa-aa22dfdf06f2&quot;,&quot;InvoiceNumber&quot;:&quot;INV-0001&quot;,&quot;Reference&quot;:&quot;Red Fish, Blue Fish&quot;,&quot;Payments&quot;:[],&quot;CreditNotes&quot;:[],&quot;Prepayments&quot;:[],&quot;Overpayments&quot;:[],&quot;AmountDue&quot;:0.0,&quot;AmountPaid&quot;:0.0,&quot;AmountCredited&quot;:0.0,&quot;SentToContact&quot;:true,&quot;CurrencyRate&quot;:1.0,&quot;HasErrors&quot;:false,&quot;IsDiscounted&quot;:false,&quot;HasAttachments&quot;:false,&quot;RepeatingInvoiceID&quot;:&quot;428c0d75-909f-4b04-8403-a48dc27283b0&quot;,&quot;Contact&quot;:{&quot;ContactID&quot;:&quot;a3675fc4-f8dd-4f03-ba5b-f1870566bcd7&quot;,&quot;Name&quot;:&quot;Barney Rubble-83203&quot;,&quot;Addresses&quot;:[],&quot;Phones&quot;:[],&quot;ContactGroups&quot;:[],&quot;ContactPersons&quot;:[],&quot;HasValidationErrors&quot;:false},&quot;DateString&quot;:&quot;2018-10-20T00:00:00&quot;,&quot;Date&quot;:&quot;/Date(1539993600000+0000)/&quot;,&quot;DueDateString&quot;:&quot;2018-12-30T00:00:00&quot;,&quot;DueDate&quot;:&quot;/Date(1546128000000+0000)/&quot;,&quot;Status&quot;:&quot;VOIDED&quot;,&quot;LineAmountTypes&quot;:&quot;Exclusive&quot;,&quot;LineItems&quot;:[],&quot;SubTotal&quot;:40.0,&quot;TotalTax&quot;:0.0,&quot;Total&quot;:40.0,&quot;UpdatedDateUTC&quot;:&quot;/Date(1541176290160+0000)/&quot;,&quot;CurrencyCode&quot;:&quot;NZD&quot;},{&quot;Type&quot;:&quot;ACCREC&quot;,&quot;InvoiceID&quot;:&quot;046d8a6d-1ae1-4b4d-9340-5601bdf41b87&quot;,&quot;InvoiceNumber&quot;:&quot;INV-0002&quot;,&quot;Reference&quot;:&quot;Red Fish, Blue Fish&quot;,&quot;Payments&quot;:[{&quot;PaymentID&quot;:&quot;99ea7f6b-c513-4066-bc27-b7c65dcd76c2&quot;,&quot;Date&quot;:&quot;/Date(1543449600000+0000)/&quot;,&quot;Amount&quot;:46.0,&quot;CurrencyRate&quot;:1.0,&quot;HasAccount&quot;:false,&quot;HasValidationErrors&quot;:false}],&quot;CreditNotes&quot;:[],&quot;Prepayments&quot;:[],&quot;Overpayments&quot;:[],&quot;AmountDue&quot;:0.0,&quot;AmountPaid&quot;:46.0,&quot;AmountCredited&quot;:0.0,&quot;SentToContact&quot;:true,&quot;CurrencyRate&quot;:1.0,&quot;HasErrors&quot;:false,&quot;IsDiscounted&quot;:false,&quot;HasAttachments&quot;:false,&quot;Contact&quot;:{&quot;ContactID&quot;:&quot;a3675fc4-f8dd-4f03-ba5b-f1870566bcd7&quot;,&quot;Name&quot;:&quot;Barney Rubble-83203&quot;,&quot;Addresses&quot;:[],&quot;Phones&quot;:[],&quot;ContactGroups&quot;:[],&quot;ContactPersons&quot;:[],&quot;HasValidationErrors&quot;:false},&quot;DateString&quot;:&quot;2018-10-20T00:00:00&quot;,&quot;Date&quot;:&quot;/Date(1539993600000+0000)/&quot;,&quot;DueDateString&quot;:&quot;2018-12-30T00:00:00&quot;,&quot;DueDate&quot;:&quot;/Date(1546128000000+0000)/&quot;,&quot;Status&quot;:&quot;PAID&quot;,&quot;LineAmountTypes&quot;:&quot;Exclusive&quot;,&quot;LineItems&quot;:[],&quot;SubTotal&quot;:40.0,&quot;TotalTax&quot;:6.0,&quot;Total&quot;:46.0,&quot;UpdatedDateUTC&quot;:&quot;/Date(1541176592690+0000)/&quot;,&quot;CurrencyCode&quot;:&quot;NZD&quot;,&quot;FullyPaidOnDate&quot;:&quot;/Date(1543449600000+0000)/&quot;},{&quot;Type&quot;:&quot;ACCREC&quot;,&quot;InvoiceID&quot;:&quot;7ef31b20-de17-4312-8382-412f869b1510&quot;,&quot;InvoiceNumber&quot;:&quot;INV-0003&quot;,&quot;Reference&quot;:&quot;&quot;,&quot;Payments&quot;:[],&quot;CreditNotes&quot;:[],&quot;Prepayments&quot;:[],&quot;Overpayments&quot;:[],&quot;AmountDue&quot;:115.0,&quot;AmountPaid&quot;:0.0,&quot;AmountCredited&quot;:0.0,&quot;CurrencyRate&quot;:1.0,&quot;HasErrors&quot;:false,&quot;IsDiscounted&quot;:false,&quot;HasAttachments&quot;:false,&quot;Contact&quot;:{&quot;ContactID&quot;:&quot;a3675fc4-f8dd-4f03-ba5b-f1870566bcd7&quot;,&quot;Name&quot;:&quot;Barney Rubble-83203&quot;,&quot;Addresses&quot;:[],&quot;Phones&quot;:[],&quot;ContactGroups&quot;:[],&quot;ContactPersons&quot;:[],&quot;HasValidationErrors&quot;:false},&quot;DateString&quot;:&quot;2018-11-02T00:00:00&quot;,&quot;Date&quot;:&quot;/Date(1541116800000+0000)/&quot;,&quot;DueDateString&quot;:&quot;2018-11-07T00:00:00&quot;,&quot;DueDate&quot;:&quot;/Date(1541548800000+0000)/&quot;,&quot;Status&quot;:&quot;AUTHORISED&quot;,&quot;LineAmountTypes&quot;:&quot;Exclusive&quot;,&quot;LineItems&quot;:[],&quot;SubTotal&quot;:100.0,&quot;TotalTax&quot;:15.0,&quot;Total&quot;:115.0,&quot;UpdatedDateUTC&quot;:&quot;/Date(1541176648927+0000)/&quot;,&quot;CurrencyCode&quot;:&quot;NZD&quot;}]}