Skip to main content
POST
/
tickets
/
count
Counting tickets
curl --request POST \
  --url https://api.qminder.com/v1/tickets/count \
  --header 'X-Qminder-REST-API-Key: <api-key>'
"{\n    \"statusCode\": 200,\n    \"count\": 59\n}"

Authorizations

X-Qminder-REST-API-Key
string
header
default:yourbusinessapikey
required

Query Parameters

location
integer<int32>

Count tickets only in the given Location.

line
integer<int32>

Count tickets only in the given Line.

status
string

Count tickets with only the given status. Multiple statuses can be searched by separating them with a comma. "NEW" will return tickets that are in queue, and have not been called. "CALLED" will return tickets that are currently being served. "SERVED" will return tickets that have been served. "CANCELLED_BY_CLERK" will return tickets that have been removed from queue.

caller
string

Count tickets that have been called by the given user ID. Both "CALLED" and "SERVED" tickets will be returned, unless status is also specified.

minCreated
string<date-time>

Count tickets which have been created after the given timestamp. The timestamp can be in ISO 8601 format, eg "2020-05-03T00:00:00Z". Alternatively, the timestamp can be a Unix timestamp, eg 1588767798.

maxCreated
string<date-time>

Count tickets which have been created before the given timestamp. The timestamp can be in ISO 8601 format, eg "2020-05-03T00:00:00Z". Alternatively, the timestamp can be a Unix timestamp, eg 1588767798.

minCalled
string<date-time>

Count tickets which have been called before the given timestamp. The timestamp can be in ISO 8601 format, eg "2020-05-03T00:00:00Z". Alternatively, the timestamp can be a Unix timestamp, eg 1588767798.

maxCalled
string<date-time>

Count tickets which have been called before the given timestamp. The timestamp can be in ISO 8601 format, eg "2020-05-03T00:00:00Z". Alternatively, the timestamp can be a Unix timestamp, eg 1588767798.

Response

200 - application/json

200

statusCode
integer
default:0
Example:

200

count
integer
default:0
Example:

59