SmartGare
API referenceEndpoints

Pair a counter terminal

Pairs the terminal the supervisor stands at with a declared counter in service, and answers the terminal's secret, once, with the counter's printer as it answers now: READY, NOT_READY or NOT_CHECKED with the reason. The terminal keeps the secret and sends it in SmartGare-Counter-Terminal. **Required permission:** `ticketing.counter-terminal:pair`

POST/ticketing/v1/counter-terminals

Pairs the terminal the supervisor stands at with a declared counter in service, and answers the terminal's secret, once, with the counter's printer as it answers now: READY, NOT_READY or NOT_CHECKED with the reason. The terminal keeps the secret and sends it in SmartGare-Counter-Terminal.

Required permission: ticketing.counter-terminal:pair

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*PairCounterTerminalRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/ticketing/v1/counter-terminals" \  -H "Content-Type: application/json" \  -d '{    "counter_code": "string"  }'
{  "counter_code": "string",  "id": "string",  "label": "string",  "paired_at": "2019-08-24T14:15:22Z",  "paired_by": "string",  "printer": {    "bridge": true,    "reason": "string",    "state": "READY",    "workstation": "string"  },  "secret": "string"}