Skip to content
An OpenAPI specification for the Xero API
Branch: master
Clone or download
Latest commit 8afe0c2 Jun 15, 2019


An OpenAPI (Swagger) specification for the Xero API


This repository holds the official Xero OpenAPI descriptions.

OpenAPI spec 3.0

OpenAPI spec 2.0 (Swagger)


There are lots of tools available for viewing and editing OpenAPI descriptions in a nicely formatted way. A popular tool is SwaggerHub - a version of which is hosted here.

Once you sign up or login, you can create a new API under your account and import a Xero API spec using the 'raw' URL of the spec file e.g.:

SwaggerUI Example


If you find something missing or incorrect then please open an issue or send us a pull request. There are lots of tools for editing OpenAPI definitions including the SwaggerHub. Just use the import instructions above.

Swagger Hub Example


Postman will automatically import OpenAPI definitions but the OpenAPI spec doesn't support OAuth1.0a. To use our OpenAPI definitions to make requests in Postman you will need to also import the Xero OAuth1a Postman collection from our Xero-Postman repo.

Postman Example


Thanks very much to @calcinai for contributing the original swagger 2.0 version of xero-schemas from his xero-php project. It was super useful when creating the official definition.

You can’t perform that action at this time.