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.idcomes backnull; usedata.externalIdas the reference- The
pixCodeis 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 sameIdempotency-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.