Cancel or Refund a Payment

This service allows you to cancel or refund an existing payment. Our system will identify if a cancellation or a refund is necessary based on the transaction status related to the transaction_id provided on the request. 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.


If you fill out the amount field, the refund will be partial. Otherwise, it will create a complete refund. The funds will be refunded to the payment method that was originally charged.

Note that this request requires an X-Idempotency-Key. Check the Authentication page for more information.

Click Try It! to start a request and see the response here!