MPS Documentation
ReferenceAPI referenceRefunds

Refund a payment

POST
/api/payments/{paymentReference}/refunds

Refunds the payment in full or in part, as many times as needed until the paid amount is used up. Omit the amount to refund everything still refundable. Send an Idempotency-Key header so a retry returns the first refund instead of making a second. Answers 404 rather than 403 for a payment belonging to another merchant, and 409 for a payment not yet executed. A refund is answered pending and waits 4 hours (cancelableUntil) before it is sent; it can be canceled until then. In rare cases the 201 already reads failed, with failureReason unknown: it could not be scheduled, nothing is refunded, and the amount can be refunded again with a new Idempotency-Key. Decide on status.

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.

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.

Idempotency-Key?string

One value per refund you intend. Kept with the refund, per payment, and never expires: the same key on the same payment always returns that refund. Letters, digits and punctuation, no spaces.

Match^[!-~]+$
Lengthlength <= 255

Request Body

application/json
  1. body
amount?|

Amount to refund in cents, as a JSON integer. Omit to refund everything still refundable.

Formatint64
Range1 <= value
reason?|

Optional. One of: duplicate, fraudulent, requested_by_customer.

Value in"duplicate""fraudulent""requested_by_customer"null

Response Body

Created

application/json
  1. response
data*
curl -X POST 'https://gateway.mps-emi.com/api/payments/00000000-0000-4000-8000-000000000001/refunds' \  -H 'Authorization: Bearer <api_key>' \  -H 'Content-Type: application/json' \  -d '{  "amount": 500,  "reason": "requested_by_customer"}'

{  "data": {    "refundId": "00000000-0000-4000-8000-000000000004",    "paymentReference": "00000000-0000-4000-8000-000000000001",    "status": "pending",    "amount": 500,    "currency": "EUR",    "reason": "requested_by_customer",    "failureReason": null,    "cancelableUntil": "2026-10-22T13:14:03.0000000+00:00",    "createdAt": "2026-10-22T09:14:03.0000000+00:00"  }}

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.