Cancel Payment
Cancel Payment
POST
Cancel Payment
A payment with a PENDING status due to an AUTHORIZE transaction status can be canceled before it is completed if the payment is no longer required. Sending a cancel request will update the payment status to CANCELLED.
If you need a receipt for the canceled transaction, you can retrieve it after it has been created. To do this, use the Retrieve Payment by ID endpoint and check the
Alternative Payment MethodsAlternative payment methods such as PIX also support payment cancellation with a PENDING status. Reach out to your technical account manager for more information.
receipt_url field in the payment.transaction object. See The Payment Object for receipt, receipt_url, and receipt_language.
To use this endpoint, you have to provide an X-Idempotency-Key in your request. Check the Authentication page for more information.Authorizations
Path Parameters
The unique identifier of the payment (UUID, 36 chars).
The unique identifier of the transaction (UUID, 36 chars).
Body
application/json
Identification of the payment transaction defined by the merchant (MAX 255; MIN 3).
Description of the cancellation.(MAX 255; MIN 3)
Reason for the cancellation. Values can be DUPLICATE, FRAUDULENT, and REQUESTED_BY_CUSTOMER.
Available options:
DUPLICATE, FRAUDULENT, REQUESTED_BY_CUSTOMER Specifies additional data for required the transaction response
Response
200
Example:
"438bea6c-9061-4416-b824-469c3c05868d"
Example:
"CANCEL"
Example:
"SUCCEEDED"
Example:
"CARD"
Example:
""
Example:
"2024-06-06T14:03:08.384014Z"
Example:
"2024-06-06T14:03:08.453617Z"
Example:
"SUCCEEDED"
Example:
"Transaction successful"
Example:
false
Example:
false