Skip to content

Decode PIX QR Code

Decode a PIX QR Code payload.

Endpoint

POST /cashin/pix/decode-qrcode

Authentication

Merchant Credential. See Authentication.

Request headers

NameInTypeRequiredDescriptionExample
Content-TypeheaderstringYesapplication/json
X-NonceheaderstringYesa9f3c1d47e8b9a2c4d1f9e8a7b6c5d4e
X-Merchant-IdheaderstringYes2492265300
X-TimestampheaderstringYes1638123456
DigestheaderstringYesSHA-256=Jr9cX0nM6yT7uF9GQ5G8ZC5M8vRZrQZP9+VbQ8Z8z0Q=
AuthorizationheaderstringYesSignature keyId="m123456",alg="ES256",headers="(request-target) x-timestamp x-nonce digest",signature="MEUCIQD8VxkzR7q5hF3k9dY0v6mKk7K0Nq9nYw+7Ck8LJr9mYAIgC5VQ7J0Z9YqL5F8Wc6E2Yw5qf1z8bYyYcR9kX8pY="

Request body

FieldTypeRequiredDescription
qrcodestringYesMerchant order number — QR code value (maxLength=32; pattern=^[A-Za-z0-9|_|-]{1-32})

Request example

json
{
  "qrcode": "00020101021226840023br.gov.bcb.pix2563qr.iugu.com/public/payload/v2/68A08B21C34E43B398137645AC2BF5E7520400015313986540520.005802BR5912AAAAABB LTDA6009SAO PAULO62070503***63046D60"
}

Response

HTTP 200 — Success

FieldTypeRequiredDescription
statusintegerYes
msgnullYes
dataobjectYes

data fields

FieldTypeRequiredDescription
typestringYesQR type (enum=STATIC, DYNAMIC, DYNAMIC_IMMEDIATE)
amountnumberYesAmount
allowsChangeAmountbooleanYesWhether amount modification is allowed
toPixstringYesPayee Pix key
toPixTypestringYesPayee Pix key type
toIspbstringYesPayee PSP ISPB (8 digits, zero-padded)
toNamestringYesPayee / institution name
toCpfCnpjstringYesCPF or CNPJ
agencystringYesPayee bank branch
toAccountstringYesAccount

Response example

json
{
  "status": 200,
  "msg": null,
  "data": {
    "type": "STATIC",
    "amount": 1200,
    "allowsChangeAmount": true,
    "toPix": "bd1e5560-2ff9-4a82-82b8-000000000000",
    "toPixType": "EVP",
    "agency": "0001",
    "toAccount": "123456",
    "toIspb": "22896431",
    "toName": "SEBASTIAO CONCEICAO SANTOS",
    "toCpfCnpj": "473******53"
  }
}