Create an online payment
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.
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.
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.
Idempotency-Key?stringOne 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.
^[!-~]+$length <= 255X-Idempotency-Key?stringThe same key under another name, supported alongside Idempotency-Key. Send one of the two; sent together, they must carry the same key.
^[!-~]+$length <= 255application/json- body
amount*integerAmount to collect, in cents, as a JSON integer. 1995 means EUR 19.95. At least 1 and at most 5000000 (EUR 50,000).
int641 <= value <= 5000000reference?|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.
^[A-Za-z0-9 ._:/#+-]*$length <= 64successUrl*stringAbsolute HTTPS URL the shopper returns to after a successful payment. http:// is accepted only on a loopback host (localhost), for local development.
urifailureUrl*stringAbsolute HTTPS URL the shopper returns to after a failed or cancelled payment. http:// is accepted only on a loopback host (localhost).
uricancelUrl?|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).
uricallbackUrl?|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.
urilength <= 2048locale?|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.
^([Ee][Nn]|[Nn][Ll]|[Ff][Rr])(-[A-Za-z0-9]{1,8})*$Success.
application/json- response
data*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.
Create a payment link POST
Makes a single-use payment link for a fixed amount and returns the address to send the shopper to. The link is test or live as the key is: a test key makes test links, a live key makes live links. A partner's key makes test links only, and a link with no shop name on record is a 409 naming payment_link_unnamed. A link stops opening payments once it is paid, canceled or expired. Requires the `payment-links:create` scope.
Get an online payment GET
Reports a payment's outcome from stored state. Reads count toward the 100 requests a minute; poll at most every 2 seconds. Answers 404 for a reference not found for the API key's wallet. Requires the `internet:read` scope.