Consult QR Code
It is possible to search for a specific QR Code of the Alias by the qr_code_key generated during its creation. This endpoint will return all its information, such as status, payment, and events.
Request
ENDPOINT
/account/ACCOUNT_KEY/alias/ALIAS_KEY/qrcode/QR_CODE_KEYMETHOD
GETResponse
STATUS
200 OkResponse Body: Geral
{
"request_control_key": "037b46b1-0c67-4c0d-aac3-1e395dfdcb10",
"pix_key": "3d7d6a2b-f72f-44z7-bb20-79a94dff5645",
"receiver_conciliation_id": "01GVGV9NXBCY287Z6CJ4S0ENW9",
"qr_code_key": "d74bf12a-9243-4bfa-9b00-6b63755b6555",
"qr_code_status": "active",
"qr_code_type": "dynamic_instant",
"amount": 22.34,
"expiration_seconds": 864000,
"expiration_date": null,
"max_payment_days": null,
"payer_name": "João da Silva",
"payer_document_number": "00000000000000",
"payer_person_type": "legal",
"payer_request": "Payment for order XXXXXXXXXXXX",
"rebate_amount": 1,
"interest_amount": 2,
"fine_amount": 3,
"discounts": [],
"additional_data": [
{
"key_name": "Juros e Multa",
"value": "Juros 2 ao mes e multa de 1%"
}
],
"pix_transfer_key": null,
"paid_amount": null,
"base_64_payload": "<BASE64 DA URI DO PIX COPIA E COLA>",
"qr_code_events": [
{
"request_control_key": "037b46b1-0c67-4c0d-aac3-1e395dfdcb10",
"event_type": "registration",
"created_at": "2023-03-03T12:04:06.179Z"
},
{
"request_control_key": "cae915c8-1940-43ec-890b-ba1a3a66354c",
"event_type": "payment",
"created_at": "2023-03-03T12:04:06.179Z"
}
],
"created_at": "2023-03-03T12:04:06.179Z"
}
Field | Type | Description | Characters |
---|---|---|---|
request_control_key * | string | Unique UUID4 identifier of the request that originated the QR Code. | - |
pix_key * | string | PIX key representing the destination account of the transaction. | - |
receiver_conciliation_id * | string | QR Code identifier for reconciliation after payment. | - |
qr_code_key * | string | UUID4 key identifying the QR Code. | - |
qr_code_status * | string | QR Code status. | - |
qr_code_type * | string | QR Code type. | "dynamic_term" or "dynamic_instant" |
amount * | float | QR Code amount before calculating discounts or interest and fines. | - |
expiration_seconds | string | Indicates the validity time of the QR Code in seconds, default is 1 day | - |
expiration_date | date | Due date of the charge (in the format "YYYY-MM-DD"). | - |
max_payment_days | int32 | Maximum days for paying the charge after due date. | - |
payer_name * | string | Payer's name. | - |
payer_document_number * | string | Payer's CPF/ CNPJ. | - |
payer_request * | string | Message to the payer. | - |
rebate_amount | float | Absolute rebate amount before payment. | - |
interest_amount | float | Absolute value per day of delay after the due date. | - |
fine_amount | float | Absolute fine amount after the due date. | - |
discounts | array of objects | Discount settings. | - |
additional_data | array of objects | Information to be presented to the payer. | - |
pix_transfer_key | string | UUID4 key identifying the PIX transaction corresponding to the QR Code settlement. | - |
paid_amount | float | Amount of the payment made, considering fines, discounts, and others. | - |
base_64_payload | string | URL of the QR Code for payment in base64. | - |
qr_code_events | array of objects | List of status changes the QR Code has undergone. | - |
created_at | datetime | Date and time the QR Code was created in the system. | - |
Object qr_code_status
Field | Type | Description | Characters |
---|---|---|---|
active | string | QR Code is active and available for payment. | - |
finished | string | QR Code has been paid. | - |
written_off | string | QR Code has been canceled by the client. | - |
bank_written_off | string | QR Code was automatically canceled due to expiration. | - |
Object discount
Field | Type | Description | Characters |
---|---|---|---|
discount_value * | float | Discount amount. | - |
discount_number | int32 | Order in which the discount should be applied. | - |
discount_limit_date | string | Discount limit date. | - |
Object additional_data
Field | Type | Description | Characters |
---|---|---|---|
key_name * | string | Name of the field | - |
value | string | Value of the field | - |
Object qr_code_events
Field | Type | Description | Characters |
---|---|---|---|
request_control_key * | string | Unique UUID4 identifier of the request that originated the event. | - |
event_type * | string | Event type | "registration", "write_off", "payment" |
created_at * | datetime | Date and time the event was created. | - |
STATUS
400Response Body
{
"title": "Bad Request",
"description": "Invalid payload for QR Code creation.",
"translation": "Payload inválido para a criação de QR Code.",
"code": "QRI000003"
}
STATUS
404Response Body: QR Code key not found
{
"title": "Not found",
"description": "No Pix QR Code found for qr_code_key {qr_code_key}.",
"translation": "Não foi encontrado nenhum QR Code com a qr_code_key {qr_code_key}.",
"code": "QRI000005"
}