You may run into these error codes while using the API:

CodeMeaningDescription
400Bad RequestUser input was invalid and request must be fixed
401UnauthorizedAccess token for request is invalid
403ForbiddenThe associated access token does not have access to the requested endpoint
404Not FoundNo content matching the supplied parameters could be found
500Internal Server ErrorThere was an unhandled exception in Sageworks code. Please report these to Abrigo Support
503Internal Server ErrorThere was an unhandled exception in Sageworks code. Please report these to Abrigo Support

Errors are returned by the API in the following format:

{
  "errorType": "invalidRequest",
  "message": "string",
  "modelErrors": [
    {
      "propertyName": "string",
      "message": "string"
    }
  ]
}