Skip to content

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_iddropdownRequiredThe Xero organisation (tenant) to target. Loaded dynamically from the connected account's authorised organisations.
idstextOptionalComma-separated list of InvoiceIDs to retrieve using Xero's optimised IDs query parameter.
invoice_numberstextOptionalComma-separated list of invoice numbers to retrieve using Xero's InvoiceNumbers query parameter.
contact_idstextOptionalComma-separated list of ContactIDs to filter invoices by contact.
statusestextOptionalComma-separated list of invoice statuses such as AUTHORISED,DRAFT,PAID.
wheretextOptionalXero where filter expression. Prefer documented optimised fields such as Status, Type, Contact.ContactID, Reference, InvoiceNumber, Date, AmountDue, AmountPaid, or DueDate.
created_by_my_appyes/noOptionalWhen true, only returns invoices created by your app.
ordertextOptionalOrder by expression, such as UpdatedDateUTC ASC, InvoiceId ASC, or Date DESC.
pagenumberOptionalPage number for paged results. Starts at 1. When used, Xero returns line item details for each invoice.
page_sizenumberOptionalNumber of invoices to return per page. Use together with page.
summary_onlyyes/noOptionalWhen true, returns a smaller response excluding computation-heavy fields.
search_termtextOptionalCase-insensitive text search across InvoiceNumber and Reference.
modified_afterdate-timeOptionalOnly return invoices created or modified since this UTC timestamp. Sent via the If-Modified-Since header.
unitdpnumberOptionalOptional unit decimal place precision for line item amounts. Xero supports values such as 4.

Outputs

Name Type Description
statusCodenumberHTTP status code from the Xero API response.
bodyobjectStructured Xero response envelope. Access returned invoices via body.Invoices.
IdtextXero correlation/request identifier for this API call.
StatustextXero operation status, typically OK.
ProviderNametextName of the Xero app/provider handling the request.
DateTimeUTCtextUTC timestamp of the response.
Invoicesarray of objectInvoices or bills returned by Xero.
TypetextInvoice type such as ACCREC or ACCPAY.
ContactobjectContact associated with the invoice (summary form, plus nested Addresses and Phones).
ContactIDtextUnique Xero identifier for the contact.
ContactStatustextCurrent contact status.
NametextName of the contact.
EmailAddresstextPrimary email address.
ContactNumbertextExternal contact code.
AccountNumbertextUser-defined account number.
UpdatedDateUTCtextUTC timestamp of the contact's last update.
IsSupplieryes/noWhether the contact is treated as a supplier.
IsCustomeryes/noWhether the contact is treated as a customer.
Addressesarray of objectAddresses attached to the contact.
AddressTypetextAddress type such as STREET or POBOX.
AddressLine1textAddress line 1.
AddressLine2textAddress line 2.
AddressLine3textAddress line 3.
AddressLine4textAddress line 4.
CitytextCity.
RegiontextRegion / state / province.
PostalCodetextPostal or ZIP code.
CountrytextCountry.
AttentionTotextAttention-to field for the address.
Phonesarray of objectPhones attached to the contact.
PhoneTypetextPhone type such as DEFAULT, DDI, FAX, or MOBILE.
PhoneNumbertextPhone number.
PhoneAreaCodetextPhone area code.
PhoneCountryCodetextPhone country code.
DatetextXero formatted invoice issue date.
DateStringtextISO-style invoice issue date string.
DueDatetextXero formatted invoice due date.
DueDateStringtextISO-style invoice due date string.
StatustextInvoice status.
LineAmountTypestextWhether line amounts are Exclusive, Inclusive, or NoTax.
LineItemsarray of objectLine items on the invoice.
DescriptiontextLine item description.
QuantitytextLine item quantity.
UnitAmounttextUnit amount for the line item.
ItemCodetextRelated Xero item code.
AccountCodetextRelated Xero account code.
AccountIdtextRelated Xero account ID.
LineItemIDtextUnique Xero line item identifier.
TaxTypetextTax type used for the line item.
TaxAmounttextTax amount for the line item.
LineAmounttextTotal line amount after discounts.
DiscountRatetextPercentage discount applied to the line item.
DiscountAmounttextFlat discount applied to the line item.
ItemobjectReferenced Xero item details.
ItemIDtextUnique Xero item identifier.
NametextItem name.
CodetextItem code.
Trackingarray of objectTracking category values on the line item.
TrackingCategoryIDtextTracking category ID.
NametextTracking category name.
OptiontextSelected tracking option.
SubTotaltextTotal before tax.
TotalTaxtextTotal tax amount.
TotaltextInvoice total including tax.
TotalDiscounttextTotal discount amount applied to the invoice.
UpdatedDateUTCtextUTC timestamp of the invoice's last update.
CurrencyCodetextInvoice currency code.
CurrencyRatetextExchange rate used by Xero.
InvoiceIDtextUnique Xero invoice identifier.
InvoiceNumbertextInvoice number shown in Xero.
ReferencetextAdditional reference number.
BrandingThemeIDtextBranding theme identifier.
UrltextSource document URL shown in Xero.
SentToContactyes/noWhether the invoice is marked as sent in Xero.
ExpectedPaymentDatetextExpected payment date on sales invoices.
PlannedPaymentDatetextPlanned payment date on bills.
HasAttachmentsyes/noWhether the invoice has attachments.
RepeatingInvoiceIDtextRepeating invoice template identifier when applicable.
Paymentsarray of objectPayments applied to the invoice.
CreditNotesarray of objectCredit notes applied to the invoice.
Prepaymentsarray of objectPrepayments applied to the invoice.
Overpaymentsarray of objectOverpayments applied to the invoice.
AmountDuetextOutstanding amount still due.
AmountPaidtextAmount paid so far.
CISDeductiontextCIS deduction amount when applicable.
FullyPaidOnDatetextDate the invoice became fully paid.
AmountCreditedtextTotal credited amount.
SalesTaxCalculationTypeCodetextUS sales tax calculation type code when applicable.
InvoiceAddressesarray of objectInvoice address details for US organisations when applicable.
ValidationErrorsarray of objectValidation errors returned for the invoice when Xero includes them.
MessagetextValidation error message.