Creating a Ticket
To create a ticket, send a POST request to/tickets with the required X-Qminder-API-Version header:
lineId- ID of the line to create the ticket infirstName- Visitor’s first name (2-50 characters)
lastName- Visitor’s last name (max 50 characters)phoneNumber- Phone number with optional + prefix (5-20 digits)email- Visitor’s email addresslanguageCode- Language code (default: “en”)source- MANUAL, NAME, or MICROSITE (default: MANUAL)fields- Array of custom input fields withinputFieldId(UUID) andvalueoroptionIdslabels- Array of labels withvalue
Input Fields
To use thefields parameter, you first need to discover the available input field IDs for the location. See the Input Fields query for details.
Fields
Tickets have the following data fields:| Name | Type | Description |
|---|---|---|
| id | string | The ticket’s unique ID. |
| publicId | string | The ticket’s public-facing ID (e.g., “A-42”). |
| status | string | The ticket’s status. “NEW” = The ticket is in the queue. “CALLED” = The ticket is currently being serviced. “SERVED” = The ticket has been marked as served. “CANCELLED_BY_CLERK” = The ticket has been removed from queue. “NOSHOW” = The ticket was marked as no-show. |
| source | string | The ticket’s source. “MANUAL” = The ticket has been created by a clerk. “NAME” = The ticket has been created by iPad Sign-in. “MICROSITE” = The ticket has been created by Visit Planner Remote Sign-in. |
| line | number | The ID of the Line that the ticket has been created into. |
| firstName | string | The visitor’s first name (given name). |
| lastName | string | The visitor’s last name (family name). |
| phoneNumber | string | The visitor’s phone number with optional + prefix. |
| string | The visitor’s email address. | |
| languageCode | string | The visitor’s preferred language code (e.g., “en”, “es”). |
| orderAfter | ISO 8601 | If the visitor has been reordered before another ticket, then this timestamp should be used to chronologically order the ticket. |
| created.date | ISO 8601 | The timestamp when the ticket was created. |
| called.date | ISO 8601 | The timestamp when the ticket was called. This field is only present on tickets with the “CALLED” status. |
| called.caller | number | The ID of the user who called the ticket. This field is only present on tickets with the “CALLED” status. |
| called.desk | number | The ID of the desk where the ticket was called.- *This field is only present if the ticket was called to a desk. This field is only present on tickets with the “CALLED” status.** |
| served.date | ISO 8601 | The timestamp when the ticket was marked as served. This field is only present on tickets with the “SERVED” status. |
| assigned.assigner | number | The ID of the user who assigned the ticket to another user. This field is only present on tickets that have been reassigned. |
| assigned.assignee | number | The ID of the user who was assigned to serve the ticket. This field is only present on tickets that have been reassigned. |
| extra | array | An array of additional data fields. This array is empty when no additional data fields are available. |
| extra[].title | string | The title of an additional data field. |
| extra[].value | string | The value of an additional data field. |
| labels | array | An array of ticket labels. This array is empty when no labels are available. |
| labels[].value | string | The text of the ticket label. |
| labels[].color | string | An RGB hex color of the label. |
| interactions | array | An array of service interactions. One interaction object is added into the array for every time the ticket is called and either returned to queue or serviced. |
| interactions[].start | ISO 8601 | A timestamp of when the interaction with the visitor started. |
| interactions[].end | ISO 8601 | A timestamp of when the interaction with the visitor ended. |
| interactions[].line | number | The ID of the line the visitor was called from, before the interaction started. |
| interactions[].user | number | The ID of the user who serviced the visitor during this interaction. |
| messages | array | An array of SMS messages sent to the visitor or received from the visitor. |
| messages[].created.date | ISO 8601 | A timestamp of when the message was sent or received. |
| messages[].body | string | The text of the message. |
| messages[].type | string | ”OUTGOING” if the message was sent from Qminder to the visitor. “INCOMING” if the message was received from the visitor. |
| messages[].status | string | ”NEW” if the message has been sent, but not yet delivered to the visitor. “DELIVERED” if the message has been delivered to the visitor. |