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.
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