Skip to main content
Every error response (4xx/5xx) follows RFC 7807 — the same shape, always:
Handle errors by status + type. The messages (title/detail) may improve over time; the codes don’t change.

What to do with each status

Codes you’ll encounter

Special case: HTTP 202 on creation

202 is not an error — it’s a partial success. The PIX was generated, but persistence is pending automatic reconciliation:
  • data.id comes back null; use data.externalId as the reference
  • The pixCode is valid and payable — deliver it to the buyer as usual
  • The transaction appears in the listing within a few minutes, after reconciliation

Timeouts

Transaction creation can take up to 30 seconds in the worst case. Set your HTTP client’s timeout above that (the SDK uses 35s) and, when retrying after a timeout, use the same Idempotency-Key — if creation completed, you get the replay instead of a duplicate payment.

Next steps

Idempotency

Resend creations safely after a timeout.

Configure webhooks

Handle the payment result asynchronously.