Access the Xero API with managed OAuth authentication. Manage contacts, invoices, payments, bank transactions, and run financial reports.
Reference
List Contacts
GET /xero/api.xro/2.0/ContactsGet Contact
GET /xero/api.xro/2.0/Contacts/{contactId}Create Contact
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"}]
}]
}List Invoices
GET /xero/api.xro/2.0/InvoicesCreate Invoice
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"
}]
}]
}List Accounts
GET /xero/api.xro/2.0/AccountsList Payments
GET /xero/api.xro/2.0/PaymentsList Bank Transactions
GET /xero/api.xro/2.0/BankTransactionsProfit and Loss
GET /xero/api.xro/2.0/Reports/ProfitAndLoss?fromDate=2024-01-01&toDate=2024-12-31Balance Sheet
GET /xero/api.xro/2.0/Reports/BalanceSheet?date=2024-12-31Trial Balance
GET /xero/api.xro/2.0/Reports/TrialBalance?date=2024-12-31Organisation
GET /xero/api.xro/2.0/Organisation