Skip to main content
Xero

Overview

Supported resources

Connect setup

Xero uses OAuth 2.0 with PKCE. You need an app registered in the Xero Developer Portal.
1

Create a Xero app

Go to Xero Developer PortalNew app. Choose Web app and integration type Accounting. Under Configuration, copy the Client ID and Client Secret.
2

Add the redirect URL

In your app’s OAuth 2.0 redirect URIs list, add:
3

Configure required scopes

Enable the following scopes on your app:
  • openid
  • profile
  • email
  • offline_access
  • accounting.invoices
  • accounting.payments
  • accounting.banktransactions
  • accounting.manualjournals
  • accounting.contacts
  • accounting.settings
  • accounting.reports.balancesheet.read
  • accounting.reports.profitandloss.read
  • accounting.attachments
  • files
4

Connect via the widget

When your end user opens the Connect widget, they will enter the Client ID and Client Secret, then be redirected to Xero to authorize the connection.

Usage

Notes

  • Pass type: "ACCOUNTS_PAYABLE" on invoice create to write a bill. The same pattern applies to credit_note / vendor_credit. For vendor contacts, set is_supplier: true.
  • address and phone_number ids are discoverable inline on contact.addresses[].id and contact.phone_numbers[].id.