iiPayDeveloper portal
Examples OpenAPI Support
Docs/API errors
API reference

API errors

Stable response envelopes, validation errors, and status codes.

Download OpenAPI ↗

Response envelopes

Successful API responses use success: true, a message, a data object, and the incoming X-Request-ID value when supplied. Errors use success: false, a safe message, an error.code, optional error.details, and request_id.

JSON · validation error

{
  "success": false,
  "message": "The given data was invalid.",
  "error": {
    "code": "validation_error",
    "details": {"currency": ["The selected currency is invalid."]}
  },
  "request_id": "request-from-client"
}

Common status codes

HTTPExamplesAction
200Read or idempotent replay.Use the returned resource.
201Payment created.Redirect to checkout.
401invalid_api_key.Rotate/fix server credentials; do not retry blindly.
404payment_not_found.Check merchant scope and ID.
409Idempotency or payment reference conflict.Do not create a second order until reconciled.
402/422Capacity, provider, amount, or validation problem.Fix configuration or wait for evidence.
429Rate limited.Back off and retry with jitter.