Cancel or Refund a Payment
transaction_id is needed in this case. This service performs the following functions based on the status of the transaction:
- Cancels the payment if it has not been captured.
- Refunds the payment if it has been captured.
X-Idempotency-Key. Check the Authentication page for more information.Authorizations
Path Parameters
The unique identifier of the payment (UUID, 36 chars).
Body
Indicating the reason for the cancellation or refund. If set, possible values are DUPLICATE, FRAUDULENT, REQUESTED_BY_CUSTOMER, and REVERSE. Use REVERSE to request an automatic reverse of the recipient funds when a recipient is involved in the transaction.
DUPLICATE, FRAUDULENT, REQUESTED_BY_CUSTOMER, REVERSE Description of the cancellation or refund. (MAX 255; MIN 3).
Identification of the payment transaction defined by the merchant. If no merchant_reference is defined, the merchant_order_id of the payment will be associated to the transaction. (MAX 255; MIN 3).
Specifies the amount object for refund.
Split marketplace array of objects
Indicates if we should try to refund a payment after an error/declined on the first try. It is false by default. For more information, access the guide [blocked].
Specifies additional data for required the transaction response
Specifies customer object for payments.
Specifies payment method object for payments.
Response
201
- Full Refund
- Partial Refund
- Cancel
"7fd485f3-bd72-45eb-a3fb-774daa3d79b6"
"REFUND"
"REFUNDED"
"CARD"
"0000023"
"2024-06-06T14:06:06.284443Z"
"2024-06-06T14:06:37.984065Z"
"SUCCEEDED"
"Transaction successful"