Connect a terminal session
Manually connects a terminal session. The read-card and charge-card endpoints connect automatically if no session is active,
so use this endpoint to pre-connect a terminal or force a reconnect.
Authentication
AuthorizationBearer
Use a Payments API key as the bearer token: Authorization: Bearer <api_key>.
Get a fresh key from Refresh API Keys.
Path parameters
device_id
Hardware Serial Number (HSN) of the terminal, provided by your Integration Delivery lead.
Query parameters
mid
Merchant ID. Required when your bearer token is an ISV token acting on behalf of a merchant. If the mid can't be resolved to an authorized account, the request returns 400.
Request
This endpoint expects an object.
force
Force a reconnect even if a session is already active.
Response
Terminal connected
device_id
Hardware Serial Number of the connected terminal.
connected
Connection status. true on success.
session_key
Session token for subsequent terminal operations.
Errors
401
Unauthorized Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error