Get Invoices
Xero
Xero
Get Invoices
Retrieve invoices or bills from a Xero organisation with support for most documented filters, paging, lightweight summary mode, unit decimal precision, and modified-since filtering.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
xero_tenant_id | dropdown | Required | The Xero organisation (tenant) to target. Loaded dynamically from the connected account's authorised organisations. |
ids | text | Optional | Comma-separated list of InvoiceIDs to retrieve using Xero's optimised IDs query parameter. |
invoice_numbers | text | Optional | Comma-separated list of invoice numbers to retrieve using Xero's InvoiceNumbers query parameter. |
contact_ids | text | Optional | Comma-separated list of ContactIDs to filter invoices by contact. |
statuses | text | Optional | Comma-separated list of invoice statuses such as AUTHORISED,DRAFT,PAID. |
where | text | Optional | Xero where filter expression. Prefer documented optimised fields such as Status, Type, Contact.ContactID, Reference, InvoiceNumber, Date, AmountDue, AmountPaid, or DueDate. |
created_by_my_app | yes/no | Optional | When true, only returns invoices created by your app. |
order | text | Optional | Order by expression, such as UpdatedDateUTC ASC, InvoiceId ASC, or Date DESC. |
page | number | Optional | Page number for paged results. Starts at 1. When used, Xero returns line item details for each invoice. |
page_size | number | Optional | Number of invoices to return per page. Use together with page. |
summary_only | yes/no | Optional | When true, returns a smaller response excluding computation-heavy fields. |
search_term | text | Optional | Case-insensitive text search across InvoiceNumber and Reference. |
modified_after | date-time | Optional | Only return invoices created or modified since this UTC timestamp. Sent via the If-Modified-Since header. |
unitdp | number | Optional | Optional unit decimal place precision for line item amounts. Xero supports values such as 4. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code from the Xero API response. |
body | object | Structured Xero response envelope. Access returned invoices via body.Invoices. |
Id | text | Xero correlation/request identifier for this API call. |
Status | text | Xero operation status, typically OK. |
ProviderName | text | Name of the Xero app/provider handling the request. |
DateTimeUTC | text | UTC timestamp of the response. |
Invoices | array of object | Invoices or bills returned by Xero. |
Type | text | Invoice type such as ACCREC or ACCPAY. |
Contact | object | Contact associated with the invoice (summary form, plus nested Addresses and Phones). |
ContactID | text | Unique Xero identifier for the contact. |
ContactStatus | text | Current contact status. |
Name | text | Name of the contact. |
EmailAddress | text | Primary email address. |
ContactNumber | text | External contact code. |
AccountNumber | text | User-defined account number. |
UpdatedDateUTC | text | UTC timestamp of the contact's last update. |
IsSupplier | yes/no | Whether the contact is treated as a supplier. |
IsCustomer | yes/no | Whether the contact is treated as a customer. |
Addresses | array of object | Addresses attached to the contact. |
AddressType | text | Address type such as STREET or POBOX. |
AddressLine1 | text | Address line 1. |
AddressLine2 | text | Address line 2. |
AddressLine3 | text | Address line 3. |
AddressLine4 | text | Address line 4. |
City | text | City. |
Region | text | Region / state / province. |
PostalCode | text | Postal or ZIP code. |
Country | text | Country. |
AttentionTo | text | Attention-to field for the address. |
Phones | array of object | Phones attached to the contact. |
PhoneType | text | Phone type such as DEFAULT, DDI, FAX, or MOBILE. |
PhoneNumber | text | Phone number. |
PhoneAreaCode | text | Phone area code. |
PhoneCountryCode | text | Phone country code. |
Date | text | Xero formatted invoice issue date. |
DateString | text | ISO-style invoice issue date string. |
DueDate | text | Xero formatted invoice due date. |
DueDateString | text | ISO-style invoice due date string. |
Status | text | Invoice status. |
LineAmountTypes | text | Whether line amounts are Exclusive, Inclusive, or NoTax. |
LineItems | array of object | Line items on the invoice. |
Description | text | Line item description. |
Quantity | text | Line item quantity. |
UnitAmount | text | Unit amount for the line item. |
ItemCode | text | Related Xero item code. |
AccountCode | text | Related Xero account code. |
AccountId | text | Related Xero account ID. |
LineItemID | text | Unique Xero line item identifier. |
TaxType | text | Tax type used for the line item. |
TaxAmount | text | Tax amount for the line item. |
LineAmount | text | Total line amount after discounts. |
DiscountRate | text | Percentage discount applied to the line item. |
DiscountAmount | text | Flat discount applied to the line item. |
Item | object | Referenced Xero item details. |
ItemID | text | Unique Xero item identifier. |
Name | text | Item name. |
Code | text | Item code. |
Tracking | array of object | Tracking category values on the line item. |
TrackingCategoryID | text | Tracking category ID. |
Name | text | Tracking category name. |
Option | text | Selected tracking option. |
SubTotal | text | Total before tax. |
TotalTax | text | Total tax amount. |
Total | text | Invoice total including tax. |
TotalDiscount | text | Total discount amount applied to the invoice. |
UpdatedDateUTC | text | UTC timestamp of the invoice's last update. |
CurrencyCode | text | Invoice currency code. |
CurrencyRate | text | Exchange rate used by Xero. |
InvoiceID | text | Unique Xero invoice identifier. |
InvoiceNumber | text | Invoice number shown in Xero. |
Reference | text | Additional reference number. |
BrandingThemeID | text | Branding theme identifier. |
Url | text | Source document URL shown in Xero. |
SentToContact | yes/no | Whether the invoice is marked as sent in Xero. |
ExpectedPaymentDate | text | Expected payment date on sales invoices. |
PlannedPaymentDate | text | Planned payment date on bills. |
HasAttachments | yes/no | Whether the invoice has attachments. |
RepeatingInvoiceID | text | Repeating invoice template identifier when applicable. |
Payments | array of object | Payments applied to the invoice. |
CreditNotes | array of object | Credit notes applied to the invoice. |
Prepayments | array of object | Prepayments applied to the invoice. |
Overpayments | array of object | Overpayments applied to the invoice. |
AmountDue | text | Outstanding amount still due. |
AmountPaid | text | Amount paid so far. |
CISDeduction | text | CIS deduction amount when applicable. |
FullyPaidOnDate | text | Date the invoice became fully paid. |
AmountCredited | text | Total credited amount. |
SalesTaxCalculationTypeCode | text | US sales tax calculation type code when applicable. |
InvoiceAddresses | array of object | Invoice address details for US organisations when applicable. |
ValidationErrors | array of object | Validation errors returned for the invoice when Xero includes them. |
Message | text | Validation error message. |