API reference
Every public endpoint with its parameters, request and response schemas and code samples, generated from the gateway's OpenAPI document.
These pages are generated from the gateway's own OpenAPI document each time the documentation is published, so they describe exactly the endpoints it serves. The guides explain how to use them together; this section is the contract, one endpoint at a time.
Server only
Create an online payment
POST /api/payments/internet/create
Get an online payment
GET /api/payments/internet/{paymentReference}
Refund a payment
POST /api/payments/{paymentReference}/refunds
Get a refund
GET /api/payments/{paymentReference}/refunds/{refundId}
List a payment's refunds
GET /api/payments/{paymentReference}/refunds
Cancel a refund
DELETE /api/payments/{paymentReference}/refunds/{refundId}
Build a request
Build a request and copy it in curl, TypeScript, C#, Python or PHP. Nothing is sent.
Conventions
| Base URL | https://gateway.mps-emi.com. Test keys and live keys use the same host; the key decides. See The hosts. |
| Authentication | Authorization: Bearer mps_test_… on every payment call: your API key (mps_live_… / mps_test_…). A partner key adds x-wallet-number. See Authentication. |
| Request bodies | JSON (Content-Type: application/json). |
| Responses | JSON. A payment endpoint wraps its result in data. |
| Amounts | Integers in euro cents: 1995 is EUR 19.95. |
| Identifiers | paymentReference is an opaque string. Store and compare them exactly as returned. |
| Idempotency | Send an Idempotency-Key on a create, and a retry with the same key and body returns the first payment instead of opening a second one. Without a key every create opens a new payment. See Retrying safely. |
| Webhooks | Signed POST requests to the payment's callbackUrl: payment.received, and refund.refunded / refund.failed / refund.canceled. Documented in the callbacks of Create an online payment; see Webhooks. |
| Errors | 400 is a problem document naming the field. Every problem response of the payments API carries traceId and documentationUrl, a link to the section that resolves it. 401, 403, 404 and 429 carry no body, except the 403 for an x-wallet-number your key does not cover. See Errors and rate limits. |
| Rate limits | 100 requests a minute per API key, across every endpoint. See Rate limits. |
The OpenAPI document
Download the document these pages are built from at /openapi.json. It is OpenAPI
3.0 and loads in Postman, Insomnia, Bruno or any code generator, ready to call
https://gateway.mps-emi.com.
Related
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.
Last updated on
Production checklist
What to check before you switch to a live key, each check linking to the page that explains it.
Get a payment link GET
Reads one payment link of the key's merchant. Answers 404 for a link of another merchant, the same answer as for a link that does not exist. Requires the `payment-links:read` scope.