Errors

EdiNation uses conventional HTTP response codes to indicate the 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 failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with EdiNation's servers (these are rare).

When a request fails, the response body is still JSON, but always contains a code field with the error id and details field with an array of error descriptions, which you can inspect for debugging.

{
  "Code": 0,
  "Details": [
    "string"
  ]
}

  NOTE:

When the quota limit is reached, the caller will receive a 403 Forbidden response status code.

Was this article helpful?
0 out of 0 found this helpful