Making a Full Refund or Void a Transaction

To make a full refund or void a transaction you may use DELETE /payment/{id}?force=true route. If the payment has not been settled it will void the payment. If the payment is settled, it will create a new transaction and refund the same amount.

  • Refund or Void a payment using DELETE /payment/{id}
  • Do a GET /payment/{id} and check if the payment has been refunded for a settled transaction or voided for an unsettled transaction.
DELETE https://sandbox.api.mxmerchant.com/checkout/v3/payment/10000000310103?force=true HTTP/1.1
Authorization: Basic c2FuZGJveHBvc3RtxxxxxxxxxxE1NTE1NTE1NQ==

RESPONSE:
HTTP 204