MyNearStoresPartners
QR sessions

Open a session for a scanned QR code

GET
/qr-session/scan

Records a scan and returns a new active session that expires after QR_SESSION_EXPIRY_MINUTES (30 by default). Note that this GET creates a record and answers 201.

Query Parameters

store_id*integer
terminal_id*integer
qr_id*string

The value encoded in the shopper's QR code.

Lengthlength <= 255

Response Body

Session opened.

application/json
  1. response
success*unknown
data*
curl -X GET "https://example.com/qr-session/scan?store_id=0&terminal_id=0&qr_id=string"
{  "success": true,  "data": {    "id": 0,    "storeId": 0,    "terminalId": 0,    "qrId": "string",    "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459",    "status": "active",    "expiresAt": "2019-08-24T14:15:22Z",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}