Skip to main content
Every object has an id and an object field naming its type. Formats are described in Requests and responses.
Money fields are decimal strings with four decimal places. Timestamps are ISO 8601 in UTC. Calendar dates are YYYY-MM-DD in the subscription’s timezone.

Organisation

The organisation the API key belongs to. Retrieve it.

Customer

A customer, synced from a Xero contact. Endpoints.
A customer with no code can’t be found by customer_code. Give the customer a code before your integration needs to look them up.

Plan

A pricing plan. Endpoints. For how each type prices, see Plans explained.

Plan types

Tier


Charge

A one-off fee that can be added to a new subscription. It bills once and doesn’t recur. Endpoints.

Subscription

A customer’s subscription to a plan. Endpoints. For the lifecycle, see Subscriptions explained.

Subscription status

A subscription set to end at period end stays active with cancel_at_period_end: true until its end date.

Invoice

An invoice raised in Xero. Endpoints. Invoices are read-only in the API.

Invoice status

Xero sync

Invoice line

On a subscription created through the API, a charge takes the subscription’s discount only when you set apply_discount to true on that charge.