MPS Documentation
Build an integration

Create a registration link

Send a company to MPS's signup with a personal registration link, as a live partner, and follow whether it was used.

A registration link sends one company to the MPS signup, with your partner reference on it. You make it with the API for one company and one e-mail address, send the returned url to that company's contact, and read the link to see whether they signed up. Only a live partner's key can do this.

Live partners only

The live key you make for yourself as a live partner holds the registration-links:manage scope from the start. A merchant's key, a key you make for one of your merchants, and a test key never hold it. A registration link names a real company and a real e-mail address and sends a real signup, so there is no test mode. A key without the scope, or a partner that is not live, is refused.

Server only

The API cannot be called from a browser. The gateway answers no cross-origin (CORS) requests, and the API key must never reach a browser. Call it from your server.

Before you start

  • A live key of your own as a live partner, made on the MPS platform under Online › API keys. It holds registration-links:manage from the start.
  • The company's country, company number and name, and the e-mail address of the person who signs up.

No shop name needed

A partner usually has no shop, so its own live key needs no shop name. Such a key takes no payments: an online payment made with it answers 403, and a payment link answers 409 with code payment_link_unnamed.

A return is not proof

The return address the signup sends the company back to is not proof that the company signed up. It can be reached without finishing the signup, and it can be missed. Read the link's status from the API to find out whether the signup was completed.

# Make a registration link for one company
# Prerequisite: export MPS_API_KEY=mps_live_…
curl -sS --fail-with-body -X POST "https://gateway.mps-emi.com/api/partners/registration-links" \
  -H "Authorization: Bearer $MPS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country": "BE", "companyNumber": "0123456749", "companyName": "Bakkerij De Molen BV", "email": "contact@example.com", "language": "nl", "partnerReference": "CRM-1042"}'

The gateway answers 201 Created with the link in data. The Location header points at the link. Send the company url: it is the address the company opens to sign up, and it already carries the link's code. Store id and url with the company's record.

201 Created
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
    "code": "K7mQ2xP9wRtN4bZc",
    "status": "open",
    "country": "BE",
    "companyNumber": "0123456749",
    "companyName": "Bakkerij De Molen BV",
    "email": "contact@example.com",
    "language": "nl",
    "partnerReference": "CRM-1042",
    "createdAt": "2026-11-18T09:14:03Z",
    "expiresAt": "2026-11-28T09:14:03Z",
    "revokedAt": null,
    "usedAt": null,
    "completedAt": null,
    "returnUrl": null,
    "url": "https://main.mps-emi.com/signup?partner=K7mQ2xP9wRtN4bZc"
  }
}

Request body

FieldTypeRequiredDescription
countrystringYesThe company's country, as ISO 3166-1 alpha-2, such as BE.
companyNumberstringYesThe company's number in its register.
companyNamestringYesThe company's name, as the signup shows it.
emailstringYesThe e-mail address of the person who signs up.
languagestringYesen, nl or fr: the language of the signup.
partnerReferencestringNoYour reference for the company, kept with the link.
expiresInDaysintegerNoDays the link stays open, from 1 to 90. Defaults to 30.

The company is looked up in the register when the register answers, and the link is made either way. A company that already has an open registration link cannot get a second one: revoke the first.

# List your registration links that are still open
curl -sS --fail-with-body "https://gateway.mps-emi.com/api/partners/registration-links?status=open" \
  -H "Authorization: Bearer $MPS_API_KEY"

The list answers the links in data, newest first, with totalCount, page and pageSize beside them. Filter with status: open, used, completed, expired or revoked. Ask for another page with page (from 1) and pageSize (25 by default, 100 at most). Read one link with GET https://gateway.mps-emi.com/api/partners/registration-links/{id}: it answers the link in data.

# Revoke a link nobody has signed up with yet
curl -sS --fail-with-body -X DELETE "https://gateway.mps-emi.com/api/partners/registration-links/6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b" \
  -H "Authorization: Bearer $MPS_API_KEY"

Revoking answers 204. Once someone has signed up with the link, it can no longer be revoked and the answer is 409.

Response

A link in data:

FieldTypeDescription
idstringThe link's identifier. Opaque: never parse it.
urlstringThe address the company opens to sign up, with the link's code. Send this to the company. Null when MPS has not configured the signup address, which the gateway refuses on create rather than returning a link without it.
codestringThe code in the url.
statusstringopen, used, completed, expired or revoked.
countrystringThe company's country.
companyNumberstringThe company's number.
companyNamestringThe company's name.
emailstringThe e-mail address the link was made for.
languagestringThe signup's language.
partnerReferencestring or nullYour reference.
createdAtstringWhen the link was made.
expiresAtstringWhen the link stops working.
revokedAtstring or nullWhen the link was revoked.
usedAtstring or nullWhen somebody first used the link.
completedAtstring or nullWhen the signup was completed.

Errors

StatusCodeCauseResolution
400—A field is missing or invalid, or status is not one of the values above. The body names the field.Fix the field the error names.
401—No API key, or an unknown one.Send a valid key as Authorization: Bearer.
403—The key does not carry registration-links:manage, or its partner is not live.Use the live key you made for yourself as a live partner. A merchant's key and a test key never hold the scope.
404—No such link for this partner.The same answer as for a link that does not exist.
409—The link has been used, so it cannot be revoked.Nothing to revoke. Read the link's status.
429—More than 100 requests a minute from this key.Wait for the Retry-After seconds.

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

On this page