Skip to main content

Before stop session

GET{{server}}/api/v1/counter/session/beforeStop

You can check if there are any waiting tickets, redirected tickets or tickets on waitlist for the clerk. This endpoint returns these values and you can show a confirmation dialog on the counter before stopping the session.

Response

  • local (number): The number of tickets on clerk's local waitlist.

  • redirected (number): The number of redirected tickets to the clerk.

  • wait (number): The number of waiting tickets what can be handled by this clerk only.

Request​

Authorization​

HeaderValue
AuthorizationBearer {{counterToken}}

Headers​

KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}

Code snippets​

curl -X GET '{{server}}/api/v1/counter/session/beforeStop' \
-H 'Accept: application/json' \
-H 'X-WSID: {{counterWsID}}' \
-H 'Authorization: Bearer {{counterToken}}'

Example​

Example request
GET{{server}}/api/v1/counter/session/beforeStop
Headers (2)
KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}
Example response 200 Ok
Response headers (9)
KeyValue
Access-Control-Expose-Headers*
Cache-Controlno-store, no-cache, must-revalidate
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsPOST, PUT, GET, OPTIONS, DELETE
Access-Control-Allow-Credentialstrue
Content-Length35
Access-Control-Max-Age86400
Access-Control-Allow-HeadersContent-Type, Authorization, X-Requested-With
Content-Typeapplication/json;charset=utf-8
Body
{
"local": 0,
"redirected": 0,
"wait": 0
}