Scenario Simulation
1 - Simulating Payment in Pending Execution State
For payments where QI does not receive a response from CIP within two minutes, the payment will be returned with the status pending_execution
. After QI receives the response from CIP, the pending payment webhook described on the webhooks page will be sent to the client. To simulate this scenario, make a payment with the digitable line "digitable_line": "75691333790100505390300569460017397220000306867"
.
To update the payment status, make the request below with payment_status
as approved to approve the payment, or rejected to reject it.
Request
Request Endpoint
ENDPOINT
/mock/account/ACCOUNT_KEY/payment/PAYMENT_KEY/bank_slip/confirmationMÉTODO
PATCHRequest Path Params
Field | Type | Description | Characters |
---|---|---|---|
account_key * | uuid4 | Unique account identification key. | 36 |
payment_key * | uuid4 | Unique payment identification key. | 36 |
Request Body: Simulating payment confirmation
{
"payment_status": "approved",
}
Body Parameters
Field | Type | Description |
---|---|---|
payment_status * | enum | Payment status |
Enumerators payment_status
Enumerator | Description |
---|---|
approved | Approve and complete the payment |
rejected | Reject and revert the payment |
Response
Success Response
STATUS
204Response Body: Simulation completed
{}