Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

XeroAPI/XeroAPI-Schemas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xero API XSD Schemas (deprecated)

Deprecation Notice

As of November 2018, Xero is deprecating support for XSD schemas. We are moving ahead with OpenAPI Spec 3 files which are available on Github.

Overview

This repository contains a set of XSD schemas that can be used with the Xero API. Xero provide online accounting software for businesses. For more information on connecting to the API, see the Xero Developer Centre.

Maven Central

Maven Dependency

Add this dependency to your POM.xml

<dependency>
	<groupId>com.github.xeroapi</groupId>
	<artifactId>xeroapi-schemas</artifactId>
	<version>1.0.0</version>
</dependency>

Generate your own classes

We've added support for maven build automation. A pom.xml file in the root defines how to generate Java classes from the XSD files in this project. To generate you Java classes, open your terminal app and change to the directory containing the pom.xml file and run the following command

mvn clean install 

A new target directory will be created along with subfolders. Look in the generated-source subfolder for your Java classes.

Please Note These XSD schemas are provided as a guide for the XML that is read/written to the Xero API 'as is' for information purposes only.

Xero does not commit to ensuring these schemas are always kept up to date, but does accept contributions and amendments to ensure they are as accurate as possible.

Status

Build Status

Copyright

Copyright (c) 2010 Xero Limited

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Warranty

Xero API Schemas

The Xero API Schemas is provided under the MIT license as described above.

PLEASE NOTE: No warranty is given to the accuracy of the schema files. The Xero API team reserve the right to introduce new elements to the API request and response messages without warning.

The schemas are provided for reference purposes for generating client-side object models. Considering that the schema files may not always match the response from the API, we reccommend that you do NOT validate response xml messages using the xml schemas.

The use of the Xero Developer Platform is bound by the Xero Developer Platform Terms and Conditions, see http://developer.xero.com/xero-developer-platform-terms-conditions/ for more information.