App name: xero
Base URL proxied: api.xero.com
The router automatically injects the Xero-Tenant-Id header from your connection config. You do not need to provide it manually.
/xero/api.xro/2.0/{endpoint}
GET /xero/api.xro/2.0/ContactsGET /xero/api.xro/2.0/Contacts/{contactId}POST /xero/api.xro/2.0/Contacts
Content-Type: application/json
{
"Contacts": [{
"Name": "John Doe",
"EmailAddress": "john@example.com",
"Phones": [{"PhoneType": "DEFAULT", "PhoneNumber": "555-1234"}]
}]
}GET /xero/api.xro/2.0/InvoicesGET /xero/api.xro/2.0/Invoices/{invoiceId}POST /xero/api.xro/2.0/Invoices
Content-Type: application/json
{
"Invoices": [{
"Type": "ACCREC",
"Contact": {"ContactID": "xxx"},
"LineItems": [{
"Description": "Service",
"Quantity": 1,
"UnitAmount": 100.00,
"AccountCode": "200"
}]
}]
}GET /xero/api.xro/2.0/AccountsGET /xero/api.xro/2.0/ItemsGET /xero/api.xro/2.0/PaymentsGET /xero/api.xro/2.0/BankTransactionsGET /xero/api.xro/2.0/Reports/ProfitAndLoss?fromDate=2024-01-01&toDate=2024-12-31GET /xero/api.xro/2.0/Reports/BalanceSheet?date=2024-12-31GET /xero/api.xro/2.0/Reports/TrialBalance?date=2024-12-31GET /xero/api.xro/2.0/CurrenciesGET /xero/api.xro/2.0/TaxRatesGET /xero/api.xro/2.0/CreditNotesGET /xero/api.xro/2.0/PurchaseOrdersGET /xero/api.xro/2.0/OrganisationACCREC- Accounts Receivable (sales invoice)ACCPAY- Accounts Payable (bill)
Xero-Tenant-Idheader is automatically injected by the router- Dates are in
YYYY-MM-DDformat - Multiple records can be created in a single request using arrays
- Updates use POST method with the record ID in the URL
- Draft invoices can be deleted by setting
StatustoDELETED - Use
wherequery parameter for filtering (e.g.,where=Status=="VOIDED")
- API Overview
- List Contacts
- Get Contact
- Create Contact
- Update Contact
- List Invoices
- Get Invoice
- Create Invoice
- Update Invoice
- Email Invoice
- List Accounts
- Get Account
- Create Account
- Update Account
- Delete Account
- List Items
- Get Item
- Create Item
- Update Item
- Delete Item
- List Payments
- Get Payment
- Create Payment
- Update Payment
- List Bank Transactions
- Get Bank Transaction
- Create Bank Transaction
- Update Bank Transaction
- Profit and Loss Report
- Balance Sheet Report
- Trial Balance Report
- Bank Summary Report
- Get Organisation