Decode a Pix EMV payload
Parses a Pix EMV payload and returns the structured payment details. Third-party payloads are accepted, so decoding is more permissive than BR Code creation: a payload without a Point of Initiation method is decoded as STATIC. keyType is inferred from the key value and omitted when no key type defined by the BCB both matches the value and passes validation. A dynamic payload is resolved at the provider, which supplies its key, amount and txId. amountChangeAllowed is true when the immediate charge lets the payer change the amount; the amount is then only a suggestion. hasRecurrence is true when the payload is a composed QR Code that also offers Pix Automático. type describes only the payment part, so a recurrence-only QR Code decodes as STATIC with no keyValue and no amount, and cannot be paid. To authorize the recurrence, send the same payload to Create authorization request from QR code. See the response schema for the rules that apply to each field.
Cuerpo
Respuesta
OK
Type embedded in the payload. A payload that names NO Point of Initiation method (EMV tag 01 absent) is reported as STATIC: EMVCo makes the element optional and defines its absence as static, and BACEN's own composed QR Code examples omit it.
STATIC, DYNAMIC_IMMEDIATE, DYNAMIC_DUEDATE "STATIC"
True only for an immediate charge (cob) whose receiver allows the payer to change the amount (BACEN valor.modalidadeAlteracao 1). The amount is then only a suggestion; zero means the payer types it. False for a static QR Code and for every due-date charge.
false
Whether the QR Code is a composed QR Code that also offers Pix Automático. It is independent of type, which describes only the payment part: a recurrence-only QR Code is reported as STATIC with no keyValue and no amount, and cannot be paid. To authorize the recurrence, send the same payload as qrCodePayload to the Pix Automático operation that creates an authorization request from a QR code.
true
Pix key type inferred from keyValue, ABSENT when no type both matches and validates. A CPF/CNPJ must satisfy its Modulo 11 check digits — a document that does not is unregistrable at DICT, so no type is reported. A masked document ("529.982.247-25") IS recognised. A phone is any E.164 number, not only "+55".
CPF, CNPJ, PHONE, EMAIL, EVP "EVP"
Location of the recurrence-parameters payload, exactly as the payload carries it, without a protocol. Present only when hasRecurrence is true. It is informational: do not fetch it to authorize the recurrence. Send the payload to the Pix Automático API instead.
"pix.example.com/rec/2353c790eefb11eaadc10242ac120002"

