Skip to content

Errors ​

Rexel uses standard HTTP status codes. Error bodies carry a trace ID for support.

Error format ​

json
{
  "isSuccess": false,
  "title": "Access Denied!",
  "status": 401,
  "detail": "Access Denied! You do not have the necessary permissions to perform this action. Please contact the Rexel team for assistance.",
  "traceId": "00-b5aa368c66bff0279d7162dbc184a747-c971865180e32372-00"
}
FieldTypeDescription
isSuccessbooleanAlways false for errors
titlestringShort summary
statusintegerHTTP status code
detailstringExplanation and suggested fix
traceIdstringRequest ID; give it to support

Status codes ​

CodeMeaningRetry?
200OKn/a
202Accepted (payout queued)n/a
400Bad request / invalid paramsNo; fix the request
401Missing or invalid keyNo
404Resource not foundNo
409Duplicate referenceNo; query status first
500Internal server errorYes, with exponential backoff
503Service unavailableYes, with exponential backoff

Best practices ​

  1. Check both the HTTP status and the body's success flag.
  2. Log the code, message, status, traceId and request context.
  3. Retry only 500 and 503, with exponential backoff.
  4. Validate input before sending to avoid 400s.

Need help? ​

  1. Check the detail and any failures / errors array.
  2. Confirm you are using the right key prefix for the environment.
  3. Reproduce with test keys first.
  4. Contact Rexel support with the traceId.

Rexel Limited