Xero
Accounting: invoices, contacts, payments, banks and organization
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
OAuth 2.0
PKCEYour OAuth appBring your own OAuth app: register one with Xero, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide
Registering the OAuth app
- At developer.xero.com/app/manage click “New app”: type “Web app”, a name, the company website (e.g. https://www.example.com) and, as “Redirect URI”, the redirect URI shown below.
- Create it and, in “Configuration”, click “Generate a secret”; copy the Client ID and the Client secret.
- When you click “Continue with Xero”, choose the Xero organization: the last one you authorize is used. Permissions are requested for settings, contacts, invoices, payments, bank transactions and attachments; accounting reports (profit and loss, balance sheet) need scopes that Xero restricts to its partners.
Default scopes
offline_accessaccounting.settingsaccounting.contactsaccounting.invoicesaccounting.paymentsaccounting.banktransactionsaccounting.attachments
Tools (2)
Xero API request
XERO_SEND_REQUESTAuthenticated call to the Xero API (https://api.xero.com/api.xro/2.0). Any endpoint of the API is allowed. For another connected organization, pass the xero-tenant-id header (lowercase) with its tenantId from GET https://api.xero.com/connections. Examples: GET /Invoices?Statuses=AUTHORISED&where=Type=="ACCREC"&order=DueDate&page=1&summaryOnly=true, GET /Invoices/{id or number}, GET /Contacts?searchTerm=…, POST /Invoices {"Invoices": [{"Type": "ACCREC", "Contact": {"ContactID": "…"}, "LineItems": [{"Description": "…", "Quantity": 1, "UnitAmount": 100, "AccountCode": "200"}], "Status": "DRAFT"}]}, GET /Payments?where=Date>=DateTime(2026,10,01), GET /BankTransactions?page=1, GET /Accounts, GET /TaxRates, GET /Items, GET /Invoices/{id}/OnlineInvoice. Pagination: page (100 per page).
Required scopes
No scopes required
Input
Xero API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Invoices
XERO_LIST_INVOICESIssued (ACCREC) or received (ACCPAY) invoices, from newest to oldest: number, contact, date, due date, status, total, amount due and currency. 100 per page.
Required scopes
No scopes required
Input
Invoices input Name Type Description typestringACCREC: issued (sales); ACCPAY: received (purchases)One of: ACCREC,ACCPAYDefault:"ACCREC"statusesstring[]Default: all except voided and deleted fromstringInvoice date from (YYYY-MM-DD) contactstringContactID of the customer or supplier textstringSearches the number and the reference pageintegerDefault: 1

