post https://api-sandbox.y.uno/v1/payments//cancel-or-refund
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 payment, no 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.
Refunds
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.