Skip to main content
The Caratuva API returns errors with a consistent envelope:
Every error carries statusCode, message, and requestId. Every error code documented below also carries a machine-readable error.

HTTP status mapping

Common error codes

The list below covers the codes you’re most likely to encounter while integrating.

Auth

Validation

Lifecycle

A missing or invalid buyer email surfaces as ValidationError, not a dedicated code. Re-POSTing the same externalId returns the existing intent rather than an error (see Payment intents).

Rate limiting

Server

Retry guidance

What to log

When an API call fails, log:
  • requestId — lets us find your exact request in our logs (also on the x-request-id response header).
  • error — the stable machine code.
  • The endpoint and the request body with secrets redacted (never log the API key secret half or Idempotency-Key headers if they encode user data).
A good support escalation includes the requestId and the error code. With those two we can usually answer in minutes.