MPS Documentation
ReferenceAPI referenceRefunds

Cancel a refund

DELETE
/api/payments/{paymentReference}/refunds/{refundId}

Cancels a refund of the payment that has not been sent yet. Every refund waits until its cancelableUntil (4 hours) before it is sent, and can be canceled until then; it then reads canceled, and its amount can be refunded again. Answers 204 when canceled (also for a refund canceled before), 409 once it can no longer be canceled (after cancelableUntil, or once decided) or while other refunds of the payment are being changed (try again), and 404 for a refund of another payment, or of another merchant's.

Requires the payments:refund scope.

Authorization

apiKey
headerAuthorizationBearer <token>

Your API key from the platform's Online screens (mps_live_… or mps_test_…), sent as the bearer on every call. Server to server only: never in a browser or an app.

Path Parameters

paymentReference*string

The paymentReference create returned, exactly as returned.

refundId*string

The refundId the refund request returned.

Header Parameters

x-wallet-number?string

Only with a partner key, on every call: the wallet of the merchant this call acts for, such as BE0000000000. A test key or a merchant key acts for its own wallet and ignores it.

Response Body

No Content

curl -X DELETE 'https://gateway.mps-emi.com/api/payments/00000000-0000-4000-8000-000000000001/refunds/3f2b8c1e-6d4a-4f7e-9b21-5c8d0e7a4b19' \  -H 'Authorization: Bearer <api_key>'
Empty

Need help? Contact MPS at contact@mps-emi.com or +32 55 89 09 77, or the MPS partner you work with. What to include.

Building with an AI assistant? Give it llms.txt, every page in llms-full.txt, this page as Markdown, or the OpenAPI document. See Build with AI.