Conventional HTTP response codes are used to indicate success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g. a required parameter was missing, a charge failed, etc.), and codes in the 5xx range indicate a server error.

Attributes
errorsA array of human-readable message giving more details about the error.

HTTP Status Code Summary

CodeDescription
200 - OKEverything worked as expected.
400 - Bad RequestInvalid request headers.
401 - UnauthorizedNo valid API key provided.
402 - Request FailedNo valid API key provided.
404 - Not FoundNo valid API key provided.
50n - Server ErrorSomething went wrong on server side

Example Error

{
  "errors": [
    "unable to find organization for requested id."
  ]
}
{
  "errors": {
    "type": [
      "invalid source type"
    ]
  }
}