Skip to main content

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/confirmation
MÉTODO
PATCH

Request Path Params​

FieldTypeDescriptionCharacters
account_key *uuid4Unique account identification key.36
payment_key *uuid4Unique payment identification key.36
Request Body: Simulating payment confirmation
{
"payment_status": "approved",
}

Body Parameters​

FieldTypeDescription
payment_status *enumPayment status

Enumerators payment_status​

EnumeratorDescription
approvedApprove and complete the payment
rejectedReject and revert the payment

Response​

Success Response​

STATUS
204
Response Body: Simulation completed
{}