Skip to main content

Decode QR Code for Automatic PIX

Request

ENDPOINT
/account/ACCOUNT_KEY/qrcode/decode
METHOD
POST

Request Path Params

FieldTypeDescriptionCharacters
account_key *uuid4Unique account identification key.36

Request Body

Request Body: Decode QR Code
{
"qr_code_payload": "00020101021226840014br.gov.bcb.pix2562invoice.starkbank.com/v2/cobv/8b434df48c30482a81f7c936ae35cc87080400005303986540555.595802BR5925Stark Bank S.A.6015Sao Caetano do Sul62070503***80740014br.gov.bcb.pix2552pix.example.com/rec/2353c790eefb11eaadc10242ac120002630411FC"
}

Body Params

FieldTypeDescriptionCharacters
qr_code_payload *stringPIX Copy and Paste URL-

Response

STATUS
200
Response Body: Decoded QR
{
"end_to_end_id": "E32402502202303101532yCipbxgUnUj",
"qr_code_payload": "00020101021226840014br.gov.bcb.pix2562invoice.starkbank.com/v2/cobv/8b434df48c30482a81f7c936ae35cc87080400005303986540555.595802BR5925Stark Bank S.A.6015Sao Caetano do Sul62070503***80740014br.gov.bcb.pix2552pix.example.com/rec/2353c790eefb11eaadc10242ac120002630411FC",
"qr_code_key": "8c2c19bd-f260-4714-955c-956f3eaa30ca",
"qr_code_type": "dynamic_composed",
"qr_code_data": {
"incoming_recurrence": {
"incoming_recurrence_key": "67abc123-4567-89ab-cdef-1234567890ab",
"journey_type": "j2_recurrence_only_qrcode",
"incoming_recurrence_type": "variable_amount",
"incoming_recurrence_status": "pending_confirmation",
"start_date": "2024-08-01",
"end_date": null,
"periodicity": "weekly",
"target_pix_key": "teste.recorrencia@email.com.br",
"minimum_transaction_amount": "100.00",
"maximum_transaction_amount": "500.00",
"transaction_amount": null,
"is_retry_allowed": true,
"created_at": "2024-07-23T14:30:45.123Z",
"payer_document_number": "12345678901",
"payer_name": "João da Silva",
"payer_account_key": "a5d7e60f-1c9b-4b8a-9de7-6f3b919cc45d",
"request_control_key": "c7d7e60f-1c9b-4b8a-9de7-6f3b919cc45f",
"receiver_conciliation_id": "RRAUTOTESTE001",
"pix_message": "Autorização de débito mensal"
},
"payment_data": {
"request_control_key": "c7d7e60f-1c9b-4b8a-9de7-6f3b919cc45f",
"transaction_amount": "150.75",
"target_pix_key": "teste.recorrencia@email.com.br",
"target_account": null,
"receiver_conciliation_id": "fgnb4NTt7pOUBGfrcporERwVVqr0f8PWRfK",
"pix_message": "Assinatura mensal do serviço"
}
}
}
FieldTypeDescriptionMax. Characters
end_to_end_idstringIdempotency key for a PIX transaction within the SPI (Instant Payment System). This key is returned when querying PIX keys.32
qr_code_payloadstringPIX Copy and Paste URL
qr_code_keyuuid4Unique QR code identification key36
qr_code_dataObjectQR code dataqr_code_data Object

qr_code_data Object

FieldTypeDescriptionCharacters
incoming_recurrenceobjectRecurrence identification objectincoming_recurrence Object
payment_dataobjectObject with payment information for journey_types: j3_payment_and_recurrence_qrcode, j4_recurrence_offer_post_paymentpayment_data Object

incoming_recurrence Object

FieldTypeDescriptionCharacters
incoming_recurrence_keyuuid4Unique authorization identification key36
incoming_recurrence_statusstringRecurrence status identifierincoming_recurrence_status Enumerator
request_control_keyuuid4Unique request identification key used by the client36
transaction_amountnumberTransfer amount for fixed value occurrence.10
minimum_transaction_amountnumberMinimum transfer amount for variable value occurrence.10
maximum_transaction_amountnumberMaximum transfer amount for variable value occurrence.10
periodicityenumeratorType of periodicity associated with the paymentperiodicity Enumerators
journey_typeenumeratorType of request journeyjourney_type Enumerators
end_to_end_idstringIdempotency key for a PIX transaction within the SPI (Instant Payment System). This key is returned when querying PIX keys.32
start_datestringRecurrence start date-
end_datestringRecurrence end date, for indefinite time cases, send as null
next_execution_datestringExecution date for the next recurrence transaction-
receiver_conciliation_idstringReceiver reconciliation identification.35
target_pix_keystringPIX key for the transaction account.100
is_retry_allowedbooleanPermission for PIX transaction retry.-
payer_document_numberstringTransaction payer document number.14
payer_namestringTransaction payer name.-
payer_account_keystringTransaction payer account identifier.-
pix_messagestringMessage to be sent along with the PIX transfer.140
created_atstringRecurrence request creation time-

payment_data Object

FieldTypeDescriptionCharacters
request_control_keyuuid4Unique request identification key used by the client36
transaction_amountnumberTransfer amount for fixed value occurrence.10
target_pix_keystringPIX key for the transaction account.100
target_accountObjectDestination account for manual transfers.target_account Object
receiver_conciliation_idstringReceiver reconciliation identification.35
pix_messagestringMessage to be sent along with the PIX transfer.140

target_account Object

FieldTypeDescriptionCharacters
account_branchstringAccount branch.6
account_digitstringAccount digit.1
account_numberstringAccount number.20
owner_document_numberstringCPF or CNPJ (numbers only) of the account holder.14
owner_namestringAccount holder name.150
account_typeenumeratorAccount type.account_type Enumerator
ispbstringBased on the financial institution's CNPJ (8 digits).8
info

Different enumerators may represent the same account type due to information returned by different institutions.

account_type Enumerator

EnumeratorDescription
checking_accountChecking Account
salary_accountSalary Account
saving_accountSavings Account
payment_accountPayment Account

incoming_recurrence_status Enumerator

EnumeratorDescription
pending_confirmationRecurrence pending confirmation
activeActive recurrence
cancelledCancelled recurrence
suspendedSuspended recurrence
expiredExpired recurrence

periodicity Enumerators

EnumeratorDescription
weeklyWeekly recurrence
monthlyMonthly recurrence
quarterlyQuarterly recurrence
semiannualSemiannual recurrence
annualAnnual recurrence

journey_type Enumerators

EnumeratorDescription
j1_in_app_only_recurrenceAuthorization request through an in-app notification
j2_recurrence_only_qrcodeAuthorization request through QR Code reading
j3_payment_and_recurrence_qrcodeRecurrence authorization through an immediate PIX by reading a QR Code
j4_recurrence_offer_post_paymentPIX payment or scheduling with a subsequent recurrence authorization request

pix_transfer_type Enumerators

EnumeratorDescription
manualPIX using destination account data
keyPIX using a PIX key
static_qr_codePIX using a static QR code
dynamic_qr_codePIX using a dynamic QR code
STATUS
4XX
Response Body
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo"
}
HTTP CodeQI Code
code
Title
title
Description (eng)
Description
Description (ptbr)
translation
400QIT000001Bad RequestSchema ErrorErro de Schema
403APX000025User is not allowed to do this transactionUser is not allowed to do this transactionUsuário não tem autorização para fazer essa transação
403APX000017Requester not allowed to access this endpointRequester has no permission to perform pix transfers on this endpointRequester não possui permissão de realizar transações pix através deste endpoint
404APX000020Account not FoundAccount was not foundConta {account_key} não foi encontrada.