Terminals API
Request terminal pairing code
ℹ️ Test mode
This endpoint currently does not support test mode yet.
Request a pairing code to onboard a point-of-sale terminal.
The response includes a human-readable code for manual entry on the terminal, and a QR Code as a base64 encoded SVG data URI for scanning if you specify the query parameter include with value details.qrCode.
Pairing codes expire after 90 days (see expiresAt) and can be used multiple times.
post/v2/terminals/pairing-codes
Request
- Base URLhttps://api.mollie.com
- URLhttps://api.mollie.com/v2/terminals/pairing-codes
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://my.mollie.com/oauth2/authorizeToken URL: https://api.mollie.com/oauth2/tokens scopes: terminals.write
Query parameters
includestring nullable
This endpoint allows you to include additional information via the include query string parameter.
Headers
idempotency-keystring
Example:123e4567-e89b-12d3-a456-426
A unique key to ensure idempotent requests. This key should be a UUID v4 string.
Request body
Example request
{
"profileId": "pfl_jA9bC4DkFj3G"
}Response
The requested terminal pairing code object.
Example response
{
"resource": "terminal-pairing-code",
"id": "termpc_R7gX5Ea9bC4DkFj3G",
"mode": "live",
"code": "20eb5ca1f78b48ae9e2b",
"profileId": "pfl_jA9bC4DkFj3G",
"status": "active",
"details": {
"qrCode": {
"height": 256,
"width": 256,
"src": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4w..."
}
},
"expiresAt": "2025-12-10T10:15:00+00:00",
"revokedAt": "2025-12-10T10:03:23+00:00",
"createdAt": "2024-03-20T09:13:37+00:00",
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
},
"profile": {
"href": "https://...",
"type": "application/hal+json"
},
"documentation": {
"href": "https://...",
"type": "application/hal+json"
}
}
}