Skip to main content

Asynchronous Pix QR Code Transaction

Request Qr Code

ENDPOINT
/account/ACCOUNT_KEY/alias/ALIAS_KEY/pix_transfer
METHOD
POST
Request Body
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_transfer_type": "qr_code",
"target_pix_key": "pix@qitech.com.br",
"pix_message": "Bom dia",
"transaction_amount": 500.00,
"end_to_end_id": "E3240250220211022203051750897529",
"schedule_date": "2021-08-04",
"receiver_conciliation_id": "REC00000000000000000000009459463343"
}

Body Param

FieldTypeDescriptionMax. Characters
request_control_key *uuidv4UUID4 for querying about the made request.36
pix_transfer_type *stringPix has different types of initiation: "manual" where the user must send the destination and origin account fields, and "key" where the user must send the recipient's Pix key (destination account) and origin account details.6
target_pix_key *stringPix key that will receive the transaction.200
pix_messagestringOptional message that will accompany the Pix140
transaction_amount *floatValue of the transaction20
end_to_end_idstringUnique identification key of a transaction or query at the Central Bank. Example: E324025022021061513581045032704232
schedule_datedateTransaction scheduling date (If not sent, the transaction is performed at the time of approval).10
receiver_conciliation_id *stringReconciliation ID of the receiver. Generated when decoding a QR code10
HTTP Status 202 Accepted

In asynchronous Pix, every transaction returns http status 202 Accepted, the Pix request should not be retried. In this scenario, the transaction will be executed opportunely and updated through the Transaction Update Webhook. It is also possible to check the transaction status through the endpoint /account/ACCOUNT_KEY/alias/ALIAS_KEY/pix_transfer/PIX_TRANSFER_KEY.

Response

STATUS
202 Accepted
Response Body
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "pending_confirmation",
"created_at": "2021-10-22T20:30:23.459Z"
}

STATUS
400
Response Body: Invalid Request Body
{
"data": {
"title": "Bad Request",
"description": "Invalid request body.",
"translation": "Corpo da requisição inválido.",
"extra_fields": {},
"code": "LEG000069"
}
}

STATUS
202
Response Body: Pending Transfer
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "pending_confirmation",
"created_at": "2021-10-22T20:30:23.459Z"
}
HTTP Status 202

Caso seja retornado http status 202, a solicitação de Pix não deve ser retentada. É preciso checar o status da solicitação de transferência Pix através de um GET na rota /baas/pix/pix_transfer.