Cancel a refund
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.
apiKeyAuthorizationBearer <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.
paymentReference*stringThe paymentReference create returned, exactly as returned.
refundId*stringThe refundId the refund request returned.
x-wallet-number?stringOnly 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.
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>'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.
Get a refund GET
Reads one refund of the payment, by the id returned when it was requested. Answers 404 for a refund of another payment, or of another merchant's. Requires the `payments:refund` scope.
List a payment's refunds GET
Lists the refunds of the payment, oldest first. Answers 404 for a payment belonging to another merchant. Requires the `payments:refund` scope.