Scenario simulation
Step-by-step guide to simulate the execution of actions performed by external agents. These simulations include: deposit, refund, and IN portability of Pix key.
There is no payload return (response body) in these requests.
ENDPOINT
/mock/pix_transfer/incoming_pix_transfer
Request Body
{
"target_account_key": "<Destination account's unique key>",
"amount": "<Transaction amount>"
}
Body Parameters
Field | Type | Description | Max. Characters | Example | Note |
---|
target_account_key | string | Destination account's unique key | 36 | "41112f46-0034-4007-85687-5e592173db2" | |
amount | number | Transaction amount | 6 | 1000 | Maximum value of 100,000 |
ENDPOINT
/mock/pix_transfer/incoming_pix_qrcode
Request Body
{
"qr_code_key": "41112f46-0034-4007-85687-5e592173db2"
}
Body Parameters
Field | Type | Description | Max. Characters | Example | Note |
---|
qr_code_key | string | Unique identification key of the QR code | 36 | "41112f46-0034-4007-85687-5e592173db2" | |
ENDPOINT
/mock/pix_transfer/chargeback
Request Body
{
"end_to_end_id": "<Transaction's unique key>",
"amount": "<Transaction amount>"
}
Body Parameters
Field | Type | Description | Max. Characters | Example | Note |
---|
amount | number | Transaction amount | 6 | 1000 | Maximum value of 100,000 |
end_to_end_id | string | Unique key of the PIX transaction | 32 | "E3240250220210723142712312751267" | |
ENDPOINT
/mock/pix_keys/key_claim_request/webhook
Request Body
{
"claim_request_key": "<Requester's unique key>",
"claim_request_status": "<Status enumerator>"
}
Body Parameters
Field | Type | Description | Max. Characters | Example | Note |
---|
claim_request_key | string | Requester's unique key | 36 | "ced00dc6-000a-0bd4-a111-85710a46ec05" | |
claim_request_status | enum | Claim Request Status Enumerator | | "concluded" | |
Enumerator | Description |
---|
concluded | Concluded |
cancelled | Cancelled |
failed | Failed |
pending_confirmation | Pending confirmation |
Pix transactions can enter pending_confirmation status when there is a delay in the response from the Banco Central for the Pix transaction.
To simulate this scenario, perform a transaction using the Pix key "target_pix_key": "0476f803-0129-430a-a66c-d2f0d7cf4aaa"
or, for manual Pix transfers, use "owner_document_number": "48094884894"
as the destination account owner's document number.
To update the transaction's status, perform the request below with transaction_status
set to sent to approve the transaction, or rejected to deny it.
ENDPOINT
/mock/pix_transfer/pending_confirmation
Request Body
{
"end_to_end_id": "E32402502202308181802vSHbiqNCk9i",
"transaction_status": "rejected",
"status_reason_information": {
"error_description": "description",
"error_translation": "translation",
"error_short_description": "short_description"
},
"error_code": "test_error"
}
Body Parameters
Enumerator | Description |
---|
sent | Concluded |
rejected | Rejected |
Field | Type | Description | Max. Characters |
---|
error_description | string | Error description in English | 100 |
error_translation | string | Error description in Portuguese | 100 |
error_short_description | string | Short error description in English | 100 |
Pix transactions can enter rejected status when there is an expected return of the Pix transaction refusal by Banco Central or the receiving PSP.
To simulate this scenario, perform a transaction using the Pix key "target_pix_key": "b9380607-dac6-4e17-8ca7-eb761e3aa1dc"
or, for manual Pix transfers, use "owner_document_number": "66972913039"
or "owner_document_number": "50305556000164"
as the destination account owner's document number.
For individual and batch Pix transactions from integrator partners with two-factor authentication configuration, a token
is sent to the account movement approver. Through this endpoint, it is possible to retrieve the sent token for integration testing purposes.
ENDPOINT
/mock/2fa/transaction_request/
TRANSACTION_REQUEST_KEY
Field | Type | Description | Characters |
---|
transaction_request_key | uuid4 | Unique identification key of the transaction. For Pix transactions, it would be pix_transfer_key , and for batch Pix transactions, it would be pix_transfer_batch_key | 36 |
Response Body