| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
An OpenAPI (Swagger) specification for the Xero API
This repository holds the official Xero OpenAPI descriptions. We've started with the Accounting API but we'll work on adding more if they prove useful to the community.
There are lots of tools available for viewing OpenAPI descriptions in a nicely formatted way. A popular tool is Swagger UI - a version of which is hosted here. In the URL field just enter the 'raw' URL of the spec file e.g.: https://raw.githubusercontent.com/XeroAPI/Xero-OpenAPI/master/spec/accounting2.yaml
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 Swagger Editor. Just copy the existing definition into the left-hand window and preview the changes on the right.
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.
Thanks very much to @calcinai for contributing the xero-schemas from his xero-php project. It was super useful when creating the official definition. Also check out his definitions for AU Payroll, US Payroll, Assets and Files.
| Back | FazBrowse Home | New Git URL |