A fully featured JSON API, with no XML requirements whatsoever.
Title says it all, pure JSON, nothing else. All the same features as the XML one, but at a different endpoint.
![](https://secure.gravatar.com/avatar/537116d3fc57421930a7f51548370228?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
Hi everyone,
I’m pleased to announce that we now fully support JSON for the accounting API.
https://devblog.xero.com/json-for-the-accounting-api-974a3b8adfb4
You can now use application/json as your content type and send through your PUTs and POSTs with JSON.
Cheers,
Adam
-
Drew G commented
Any update on the progress of this?
Thanks
-
Glenn “devalias” Grant commented
-
Matthew Schinckel commented
I think this works now (it does for me).
Although, if you have a validation error, you currently get a 500, instead of a specific error message.
-
thierry.henrio commented
'Accept' : 'application/json' works for GET (contacts at least)
it does not for POST
posting same xml with accept : json returns empty body, same code !this is terrible...
parsing json is 1,000 better rather than using a xpath query