XeroAPI-Schemas icon indicating copy to clipboard operation
XeroAPI-Schemas copied to clipboard

Payroll API

Open khazamov opened this issue 9 years ago • 4 comments

Are there any available schemas for payroll API's, and if not is there a foreseeable plan to have them in place in the near future?

khazamov avatar Jun 15 '16 14:06 khazamov

@khazamov Just want to check if you did come across any other way to get hold of the schemas for Payroll APIs?

pkrajanand avatar Jul 03 '19 02:07 pkrajanand

@pkrajanand - we have moved on from XSD schemas to OpenAPI spec 3.0

https://github.com/XeroAPI/Xero-OpenAPI

We don't have a payroll spec yet, but should have them by the end of the year. Our new SDKs are being built using these new specs.

SidneyAllen avatar Jul 03 '19 13:07 SidneyAllen

Thanks for your response. Great to know that Payroll spec is going to be out with OpenAPI spec 3.0 by year-end. However, as we are currently using Payroll API 1.0, is there any way you can share the Response XSD schema that you(XERO) used for Employees and SuperFunds endpoint development? That will help us to move forward until year-end.

I could have generated the XSD from the sample response from https://app.xero.com/Preview/payroll/Employees endpoint. But as you know, that response wouldn't have the full-coverage, as it's generated based on the sample data exists in the XERO demo organization.

Thanks for your time, again.

pkrajanand avatar Jul 04 '19 00:07 pkrajanand

Hi @pkrajanand

I wish I could help with your request, but these XSD files are not generated but have been hand crafted over the past 9 years.

There are a lot of big changes coming this year. OAuth 2 is a major one and with that new SDKs that will be generated off our OpenAPISpec. This is a massive undertaking and will be taking up all our time.

We are moving on from XML to JSON and no longer working on XSD files. You are welcome to fork this repo and modify as you see fit.

SidneyAllen avatar Jul 05 '19 16:07 SidneyAllen