Skip to main content
Create a dynamic PIX QR code for the authenticated target account. Currency is fixed internally to BRL.

Endpoint

POST /v3/qr_code/generate/dynamic

Authentication and target

Use an account credential for its bound account, or a user credential with both X-ISPB and X-Account-Number. If an account credential sends those headers, both must be present and must match its bound account. Platform credentials are not accepted. All requests require the standard HMAC-SHA256 headers. This path also enforces the applicable active-user and PAYIN scene checks. The curl example below uses an ACCOUNT credential bound to the operated account, so it omits X-ISPB and X-Account-Number. If X-Client-ID identifies a USER credential, add both target headers and include their exact trimmed values in the canonical header set before calculating X-Signature.

Request body

Success data

payload_base64, qr_code_id, and merchant_order_id.

Behavior and validation

Payer data may be omitted, but a partial payer pair is rejected. Creation is synchronous from this API’s perspective. The only implementation-backed expiry behavior is the submitted expires value or its 7200-second default.

Errors

Every call can fail for missing or invalid signature headers, an expired timestamp, nonce replay, an invalid body hash or signature, insufficient permission, or a downstream service error. Endpoint-specific errors include:
  • Business code 4000 for a missing merchant order or incomplete payer pair.
  • 4002 for an invalid amount or payer-document length.
  • Current business code 500 for a missing pix_key.
  • 4003008 when account context is unavailable, plus mapped downstream validation/processing errors.

Example request

Example response