Skip to content

Errors

Partner and merchant API errors use a consistent JSON envelope.

Error Envelope

json
{
  "statusCode": 400,
  "message": "Validation failed",
  "error": "Bad Request"
}

Field Meaning

FieldTypeDescription
statusCodenumberHTTP status code returned by the endpoint.
messagestringHuman-readable error message.
errorstringStandard HTTP error label, for example Bad Request or Conflict.

Common Status Codes

CodeMeaning
400Invalid body, invalid path parameter, or missing/invalid required header (for example Idempotency-Key).
401Missing or invalid authentication headers (X-API-Key, X-Timestamp, or X-Signature).
403API key is not allowed for the caller IP or the operation is blocked by policy.
404Requested resource was not found.
409Idempotency conflict (same key with different payload) or request already in progress for that key.
422Business rule rejection, such as partner limit checks.
500Unexpected server error.

Validation Notes

  • Validation failures may return message: "Validation failed" when multiple field errors are present.
  • Treat message as the primary troubleshooting signal and statusCode as the handling branch.