Signing up for a Xero account is free. Once you have done that, you have two options as to how you can begin development without incurring any cost:
The demo company is the best way to learn how Xero works & to test an integration or add-on. If you have never used Xero before you should go through the Xero demo company guide in order to become familiar with some of the basic Xero features.
Below is a rundown of the key differences between the demo company and a Xero trial organisation.
Xero trial organisation
Xero demo company
To activate the demo company register or login to your Xero account and navigate to My Xero. From the My Xero screen you can enter the demo company, reset the demo company & change the region of the demo company.
The demo company can be reset at any time. To reset the demo company visit My Xero and click the reset button. From My Xero the country of a demo company can also be changed. Changing the country of the demo company will also result in the demo company being reset.
Payroll is not enabled by default. When the demo company is created (or reset) you will need to enable payroll. Payroll is not available in all regions, you may need to change the country of the demo company in order to get access to payroll.
If you have not enabled payroll you will receive the following error when using the API:
<ApiException xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ErrorNumber>0</ErrorNumber> <Type>Error</Type> <Message>Payroll has not been provisioned</Message> </ApiException>
To enable payroll simply navigate to the payroll screen and click "Get Started".
The demo company can be connected to the API Explorer. Using the API Explorer and the demo company is a great way to learn how to use the API, debug & test. To connect the demo company to the API Explorer click here and select the demo company.
The process for connecting a demo company to an API application is the same as with any other Xero organisation. When the demo company resets (after 28 days) you will need to reconnect your app to the demo company.