Skip to main content

Counter

This collection contains all Calling Unit REST API endpoints.

Authentication

For authentication & authorization, you should call the login endpoint and store the received token to "Authorization" header as bearer token.

Example

Authorization: Bearer eyJhbGciOi...

WebsocketID

The counter WSID should be passed to all endpoints (except login). There are 3 ways to pass it in requests:

  1. In header in X-WSID header key (preferred way).

  2. In cookie with qnet7-wsid name.

  3. In URL variables as wsid.

Constant values

Ticket statuses

Value Description
10 Reserved.
20 Waiting for call.
21 Not callable.
30 Under calling.
40 Missing.
50 Definitive missing.
60 Under transaction.
70 On waiting list.
80 Deleted.
90 Closed.
100 Waiting for afterwork.
110 Under afterwork.

Stop transaction results

Value Description
1 Ticket closed
2 No more service for this clerk, this ticket will be called by other clerk
3 There are still services on the ticket for this clerk.
4 No more services, but there has afterwork

Stop afterwork results

Value Description
1 Ticket closed
2 There is also afterwork on the ticket
3 No more afterwork for this user, this ticket will be called by other clerk