JMServices changelog

Improved API Errors - V3.4P

This update brings our new API Error Format, previously we used to use the format of { error: true, message: "There was an error" }. Now, our new and improved errors have more information than ever before and will be seen in the format of:

{
type: 'error.unauthorized',
request_id: "REQUEST_ID_HERE",
errors: [{
code: '403',
message: 'You are not authorized to perform this action.',
}]
}

Error codes

  • 403 - Unauthorised API transaction, usually seen whenever you try to access a route without the correct permissions or being logged in.