English
Xero
Your contacts, sales invoices and bills — to record the invoice received by email with its PDF, find a customer or send an invoice.
A Xero connection lets the Xero node record a bill with the PDF received by email, find a contact or an invoice, create a contact, issue a sales invoice, fetch its PDF and have Xero send it.
Xero has no API key for this kind of use: the connection comes from an OAuth consent. You click Sign in with Xero, choose the organisation and approve the access. Loop & Roll never sees your password; tokens are encrypted at rest and renewed automatically (Xero rotates them on each renewal).
At a glance
- Identifier:
xero - Family: Service
- Set up by: A member (personal) or an administrator (shared with the organisation)
- Authentication: Sign in with the service (OAuth)
- Credential type:
service:xero - Official API documentation: https://developer.xero.com/documentation/api/accounting/overview
- API base URL:
https://api.xero.com - Rate limit applied by Loop & Roll: 60 requests per minute and per connection; up to 3 attempts on a 429 or a 5xx
- Connection test: Yes
Step by step
The same steps are shown in the connection form of the app.
- Click “Sign in with Xero” and log in with a user who has the “Standard” or “Advisor” role on the organisation.
- Choose the organisation to connect (one per connection) and approve the access.
- You come back here, connected: the organisation’s name shows next to the connection.
Connection fields
| Field | Kind | Required | Notes |
|---|
Before you start
- A Xero organisation and a user with the Standard or Adviser role.
- One organisation per connection: Loop & Roll keeps the first organisation granted. To automate two, create two connections.
- An OAuth application: your instance’s one, or an app your administrator creates in the Xero developer portal — see OAuth application.
Permissions
| Permission | Why |
|---|---|
offline_access | Keep access without asking you to sign in again. |
accounting.contacts | Read and create contacts. |
accounting.invoices | Read and create sales invoices and bills, send an invoice. |
accounting.attachments | Attach a PDF to an invoice. |
These are the “granular” permissions Xero requires from apps created since 2 March 2026.
Add the connection
- Connections → Add a connection → Xero card.
- Give it a Name and a Scope, then click Sign in with Xero.
- Log in, choose the organisation, approve: you come back on Connections, with the organisation’s name next to the connection.
- Configure → Test the connection calls
GET /api.xro/2.0/Organisation.
If Xero refuses to renew access (access removed in Xero, sixty days unused), the connection turns to Reconnect and you are notified. Deleting the connection revokes its tokens at Xero.
OAuth application
In the Xero developer portal, create a Web app and declare the redirect URL <PUBLIC_BASE_URL>/api/v1/integrations/oauth/callback. In the connection window, OAuth application panel, paste its client ID and client secret.
Common errors
| Message or code | Cause | What to do |
|---|---|---|
integration_oauth.app_not_configured | No OAuth application. | An administrator declares it under OAuth application. |
integration_oauth.invalid_context | No organisation granted during the consent. | Reconnect and pick an organisation. |
integration_oauth.exchange_failed (invalid_scope) | App created before March 2026 without the granular permissions. | Enable them on the app, or create a new one. |
integration.rejected | Xero refused the invoice (unknown account, archived contact, invalid date). | The step detail quotes Xero’s answer. |
integration.rate_limited | 60 calls per minute or 5,000 per day for the organisation. | Temporary: the engine retries the step later. |
Nodes that use this connection
- Xero —
xero.api