MPS Documentation
ReferenceAPI referencePayment links

Cancel a payment link

DELETE
/api/payments/payment-links/{id}

Stops an open payment link opening payments. Canceling a canceled link answers 204 again. Answers 409 with code payment_link_not_open once the link is paid or expired: a payment already on its checkout can still be paid, and a paid link stays paid. Answers 404 for a link of another merchant.

Requires the payment-links:create 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

id*string

The link's id, exactly as create returned it. An opaque string: never parse it.

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/payment-links/k3Qz9aVbN2xR7wYc1dFgHw' \  -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.