Pular para o conteúdo principal
PUT
Update an immediate dynamic PIX QR code

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

documentId
string
obrigatório

The existing charge GUID to update (JDPI idDocumento).

Exemplo:

"52c43361-caa1-4ddb-9152-708426a25db3"

Corpo

application/json
amount
integer<int64>
obrigatório

Amount in centavos (an integer).

Exemplo:

10050

key
string
obrigatório

The recipient PIX key the dynamic QR pays into.

Exemplo:

"recipient@bank.com"

recipientConciliationId
string
obrigatório

Conciliation id (idConciliacaoRecebedor); §8.3.5 mandatory; 26..35 alphanumeric ([a-zA-Z0-9]).

Exemplo:

"JDPI2020010300000000000000000000001"

status
integer<int64>
obrigatório

Charge status: 0=Active, 1=Concluded, 2=Removed by recipient, 3=Removed by PSP.

Exemplo:

0

accountId
string

The Midaz ledger account id of the recipient, a customer of the minting direct participant (sources name + city). REQUIRED on a direct QR (absent or blank is 400 PIX-0061). On a QR carrying indirectId it is DEPRECATED in favour of recipient: an indirect keeps its customers in its own core. accountId is still accepted there, unchanged, when the direct participant's own credential sends the request, and refused 400 PIX-0061 when an Access Manager partner is behind the request. Sending it together with recipient is 400 PIX-0061.

Exemplo:

"019a1b2c-3d4e-7f60-8a9b-0c1d2e3f4a5b"

description
object[] | null

Optional additional-data entries (dadosAdicionais).

expirationTime
integer<int64>

QR expiration in seconds (0 = JDPI default).

Exemplo:

3600

indirectId
string<uuid>

Optional identifier (UUID) of an indirect participant registered here, mirroring the create body. Supply the SAME institution the charge was generated for: a charge records the indirect it was generated for, and naming ANOTHER indirect - or naming one on a charge generated for the direct participant - is refused 404 PIX-0147 before JDPI is called, and the charge is not changed. A charge generated before that record existed counts as the direct participant's own when a partner is behind the request, calling or relayed; for the direct participant's own credential it is not checked. An omitted value is not checked, and re-signs the charge under the DIRECT participant's certificate and moves its location onto the direct participant's domain. Refused 422 PIX-0111, naming the setting to enable, while this tenant's indirect-participants feature is off: routing you supply is never silently dropped.

Exemplo:

"3f2504e0-4f89-41d3-9a0c-0305e82c3301"

ispb
string

The ISPB of the direct participant that mints this QR. This deployment may act as SEVERAL direct SPI participants - one ISPB each, each with its own customers and its own JDPI credential - and this field is the only thing on the request that says which of them acts. OPTIONAL while it acts as a single participant: omit it and that one acts. REQUIRED once it acts as several - omitted is 422 PIX-0127, and an ISPB this deployment does not act as is 422 PIX-0128. It is ROUTING DATA you supply and guarantee, exactly like payerIspb on a transaction: never a credential, never read from a header or a path, and it never widens what your token can reach. The published payloadUrl and its JWKS location are built under this participant's ISPB, so a QR minted as the wrong one points every payer's PSP at a key set that cannot validate its signature. When indirectId is supplied this must be blank or the participant recorded at that indirect's registration, which is NOT necessarily this deployment's default one; naming any other is 422 PIX-0102. Send it as an absent key, not an empty string; an empty value is refused 400 PIX-0061.

Pattern: ^[0-9A-Z]{8}$
Exemplo:

"12345678"

payer
object

Optional payer block.

recipient
object

The customer of the indirect participant who receives this QR, as the indirect declares it. Only with indirectId, and required there unless the legacy accountId is sent instead: an indirect keeps its customers in its own core, so this plugin reads no record of them and sends this name and city to JD as the QR's recipient. Refused 400 PIX-0061 on a direct QR, together with accountId, or with a blank name or city.

zipCode
string

Recipient postal code (cep).

Exemplo:

"01310100"

Resposta

OK

qrCode
string
obrigatório

The updated EMV QR-code payload (base64-decoded, ready to render).

Exemplo:

"00020126..."

revision
integer<int64>
obrigatório

The JDPI-computed charge revision (revisao).

Exemplo:

2

payloadJws
string

The re-signed JWS payload, returned ONLY when the update ran under an indirect participant's own certificate. Absent on the direct path.

Exemplo:

"eyJhbGciOiJFUzI1NiJ9.eyJyZXYiOjJ9.sig"

payloadUrl
string

The resolvable JWS host URL the dynamic QR embeds (urlPayloadJson; schema-less).

Exemplo:

"pix.example.com/qr/cob/fzqRwuXYSweWofLD1OX2Bw"