Data Formats

  Date Updated: Oct 2021

JSON

JSON (javascript object notation)

The MYOB Business API v2 by default returns JSON and you don't need to explicitly tell the API to return in this format.

However if you like to be sure you are receiving JSON you can pass the ?format=json flag in the URL.


{domain}/accountright/?format=json

Note if you are passing data back to the MYOB Business API using PUT or POST format you must set 'Content-Type: application/json' in your header.

HTML

HTML

It some cases it makes sense to be able to return the data in a HTML format. If you browse the local URL eg: http://localhost:8080/ in a web browser you are returned a simple webpage allowing you to navigate through the MYOB Business API. To force this format you simply pass the ?format=html flag in the URL.


{domain}/accountright/?format=html