MPS Documentation
ReferenceAPI referenceOnline payments

Create an online payment

POST
/api/payments/internet/create

Opens an online payment and returns the page to send the shopper to. Every call opens a new payment unless it carries an Idempotency-Key (or X-Idempotency-Key): a retry with the same key and the same body returns the payment the first call made, for 24 hours. The same key with a different body is a 400 naming Idempotency-Key; a retry while the first call is still running is a 409.

Requires the internet: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.

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 checkout attempt, stored with the order before the call. A retry with the same key and body within 24 hours returns the payment the first call made. Scoped to your merchant and mode.

Match^[!-~]+$
Lengthlength <= 255
X-Idempotency-Key?string

The same key under another name, supported alongside Idempotency-Key. Send one of the two; sent together, they must carry the same key.

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

Request Body

application/json
  1. body
amount*integer

Amount to collect, in cents, as a JSON integer. 1995 means EUR 19.95. At least 1 and at most 5000000 (EUR 50,000).

Formatint64
Range1 <= value <= 5000000
reference?|

Your own order reference, shown to the shopper and echoed back. At most 64 characters: letters A-Z, digits, spaces and . _ : / # + -. Never required to be unique, and never a lookup key.

Match^[A-Za-z0-9 ._:/#+-]*$
Lengthlength <= 64
successUrl*string

Absolute HTTPS URL the shopper returns to after a successful payment. http:// is accepted only on a loopback host (localhost), for local development.

Formaturi
failureUrl*string

Absolute HTTPS URL the shopper returns to after a failed or cancelled payment. http:// is accepted only on a loopback host (localhost).

Formaturi
cancelUrl?|

Absolute HTTPS URL the shopper goes to when they choose to leave the checkout without paying, such as your basket. Optional: without it the way back is failureUrl. http:// is accepted only on a loopback host (localhost).

Formaturi
callbackUrl?|

Absolute HTTPS URL MPS posts this payment's webhooks to: payment.received once the payment is received, and refund.refunded, refund.failed or refund.canceled when a refund of it ends. Signed; see the webhook documentation. https only, on a publicly routable host, with no user name or password in it; a private or loopback address is refused.

Formaturi
Lengthlength <= 2048
locale?|

Language the checkout opens in: en, nl or fr. A language tag with a region, such as nl-BE, is accepted and stored as its language (nl). Optional: without it, the checkout follows the language of the shopper's browser, and English when the browser asks for none of these.

Match^([Ee][Nn]|[Nn][Ll]|[Ff][Rr])(-[A-Za-z0-9]{1,8})*$

Response Body

Success.

application/json
  1. response
data*

Callbacks

curl -X POST 'https://gateway.mps-emi.com/api/payments/internet/create' \  -H 'Authorization: Bearer <api_key>' \  -H 'Content-Type: application/json' \  -d '{  "amount": 1995,  "reference": "order-1234",  "successUrl": "https://example.test/paid",  "failureUrl": "https://example.test/failed",  "callbackUrl": "https://example.test/payment-received"}'
{  "data": {    "paymentReference": "00000000-0000-4000-8000-000000000001",    "checkoutUrl": "https://pay.mps-emi.com/00000000-0000-4000-8000-000000000001"  }}

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.