Skip to main content
Safepay Raast returns structured errors that include an error code and message. Some endpoints wrap the error in an api_version envelope, while others return the error fields at the top level.

Error response formats

Envelope format

Some responses include api_version and an error object.

Flat format

Other responses return code and message at the top level.
Check the API reference for the exact error shape per endpoint.

Common status codes

Handling errors safely

  • Use request_id for idempotent create calls and reuse it only when retrying the same payload.
  • Log code, message, and the HTTP status for support escalations.
  • Prefer webhooks as the source of truth for asynchronous workflows.

Example: unauthorized error

See also