Understanding the response codes for the Essentials API
Success
This is the standard success response code when you request something from the API.
Created OK
This is the standard success response code when you POST to the API.
Updated OK
This is the standard success response code when you PUT to the API.
Bad Request
This is the standard success response code when the API hasn't recognised your request.
When seeing this error, check you are setting all the required headers correctly.
Unauthorised
This is the standard 'blocked' response code from the API service.
To resolve this we recommend you check your Authentication Token is correct.
Forbidden
This is the standard success response code when an item you have attempted a request that is not allowed.
Resource not found
This is the standard success response code when an item you have requested can't be found.
When seeing this error, check any uid that is carried in the api call you are making, to ensure it is valid.
I'm a teapot
This is the standard response code when an Essentials file has been upgraded to new Essentials and the file is locked.
Locked
This is the standard response code when an Essentials file is being upgraded to new Essentials and the file is locked.
Internal Server Error
This is the standard success response code when the server is miss-behaving.
Copyright © 2020 MYOB Technology Pty Ltd