v1

latestOpenAPI 3.0.02026-08-0631139237.5 KB
POS Auth Token

Create POS Auth Token

Generates an RS256-signed JWT token for POS terminal authentication.

Use this endpoint to create an auth token that a POS terminal (via MONEI Pay) can use to process payments. This is designed for app-to-app flows where your backend generates the token and passes it to the MONEI Pay app running on a POS device.

Both pointOfSaleId and storeId are optional. When provided, the resulting payments will be associated with the specified terminal and store. If pointOfSaleId is omitted, the terminal will be assigned an identifier automatically.

The token is valid for 24 hours.

post/pos/auth-token

Request body

pointOfSaleIdstring

A unique identifier of the Point of Sale. If specified the payment is attached to this Point of Sale. If there is a QR code attached to the same Point of Sale, this payment will be available by scanning the QR code.

storeIdstring

A unique identifier of the Store. If specified the payment is attached to this Store.

Example request

{
  "pointOfSaleId": "fb269cccfa0cc021f5d0b8eb1421646c696213e1",
  "storeId": "e5f28150d9e8974c58ab5ec9c4a880f8734dcf05"
}

Response

A successful response

tokenstring required

RS256-signed JWT token for POS authentication. Valid for 24 hours.

Example response

{
  "token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}