Skip to content


API Guides

Below is a collection of guides aimed at making it easier to get started with our API.

How-to Guides

Video Guides

Part one of a series of tutorial videos on using the Xero API.

Basic Sample Code

The code from this screencast is available for download. This gives a basic example of using OAuth with our API. The .zip file contains a Visual Studio 2008 solution written in C#.

A slightly more complex example is available to download. This contains an example of GET, PUT and POST methods.

Each of these samples use an OAuth library written in C#. The OAuth.Web.dll source code can be downloaded from the authors github repository.

Advanced Sample Code

A more advanced sample application has been developed that shows how to connect to the Xero API as a public, private and partner applications (with tokens renewal). The .zip file contains a Visual Studio 2008 solution written in C#.

As private applications must use the RSA-SHA1 signing method, this sample uses a custom version of the DevDefined OAuth library, which contains an implementation of PLAINTEXT, HMAC-SHA1 and RSA-SHA1 signing methods.