Xero Accounting API
Commercialby Xero
Accounting API for the platform most SG SMEs and accountants run on: invoices, contacts, bank transactions, payroll and reports. Essential for any SG ERP or fintech that syncs books.
How to authenticate
- 1Create a free developer account at developer.xero.com and add an app.
- 2Configure the OAuth 2.0 redirect URI and copy client id/secret.
- 3Run the authorization code flow requesting scopes like accounting.transactions offline_access.
- 4Exchange the code for access + refresh tokens; access tokens last 30 minutes.
- 5Call the API with Authorization: Bearer and the xero-tenant-id header from the connections endpoint.
Example request
curl -H 'Authorization: Bearer ACCESS_TOKEN' -H 'xero-tenant-id: TENANT_ID' -H 'Accept: application/json' 'https://api.xero.com/api.xro/2.0/Invoices?page=1'Example response
{"Invoices":[{"InvoiceID":"...","Type":"ACCREC","Contact":{"Name":"ABC Pte Ltd"},"AmountDue":214.00,"Status":"AUTHORISED"}]}Notes for AI agents
Forgetting the xero-tenant-id header is the classic 403 cause. Refresh tokens rotate on every use; persist the newest one atomically.
Machine-readable version: /api/apis/xero
Related APIs
Aspire API
Aspire
Singapore-headquartered business finance platform offering APIs for payouts, FX conversions, account balances and transaction data on Aspire business accounts. Lets finance teams automate payment operations from their own systems.
DBS Developer APIs
DBS Bank
DBS's corporate API suite (DBS RAPID) covering real-time payments and collections including PayNow, account balances, transaction notifications and FX. The most mature bank API program in Singapore.
Finverse
Finverse
Open-banking aggregation and payments API for Asia, providing linked-account data (balances, transactions, statements) and recurring payment rails. Coverage includes major Singapore banks such as DBS, UOB and Standard Chartered, accessed through a hosted Link flow that end users authorise.
MAS APIs (Exchange Rates and Statistics)
Monetary Authority of Singapore (MAS)
Official MAS data APIs covering daily SGD exchange rates, interest rates (SORA), monthly statistical bulletin tables and financial institution directories. Served from the MAS eservices API gateway.