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:
-
In header in
X-WSIDheader key (preferred way). -
In cookie with
qnet7-wsidname. -
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 |
Authentication
2 items
Session
6 items
Get main data
4 items
Status
2 items
Alarm
3 items
Calling
12 items
Transaction
13 items