# Objects / Shelf Tickets

# Shelf Tickets

**Object**
## AdminTicketTemplatePage

| Fields | Type | Description |
| --- | --- | --- |
| id | *Int!* | The ID of the ticket template |
| name | *String!* | The name of the ticket template |
| folder | *String!* | The folder the ticket template exists in |
| horizontalPanels | *Int!* | The number of ticket template panels horizontally |
| verticalPanels | *Int!* | The number of ticket template panels vertically |
| pageWidth | *Float!* | The width of the page (in millimeters) |
| pageHeight | *Float!* | The height of the template panel on a page (in millimeters) |
| pageMargin | *String!* | The margin of the page (formatted as a CSS margin) |
| horizontalPanelSpacing | *Float!* | The spacing between the panels horizontally (in millimeters) |
| verticalPanelSpacing | *Float!* | The spacing between the panels vertically (in millimeters) |
| cuttingWidth | *Float!* | The width of the cutting line to display (in millimeters), this will be overlaid on the tickets |
| mapped | [ID](/documentation/Types/UUID#UUID) | The id of the mapped ticket template page for this vendor, returns null if not mapped |



**Object**
## AdminTicketTemplate

| Fields | Type | Description |
| --- | --- | --- |
| id | *Int!* | The ID of the ticket template |
| name | *String!* | The name of the ticket template |
| folder | *String!* | The folder the ticket template exists in |
| styles | *String!* | The styles to apply to the ticket template (in CSS) |
| transformationScript | *String!* | The transformation script to use (in JavaScript) |
| width | *Float!* | The width of the template panel on a page (in millimeters) |
| height | *Float!* | The height of the template panel on a page (in millimeters) |
| fonts | [[URL!]!](/documentation/Types/Url#Url) | The fonts used by the template |
| options | [JSON!](/documentation/Types/JSON#JSON) | The options for the templates, this is in the format `key` => `label` |
| fieldsTracked | *[String!]!* | The fields tracked by the template |
| mapped | [ID](/documentation/Types/UUID#UUID) | The id of the mapped ticket template for this vendor, returns null if not mapped |



**Object**
## PrintableTemplate

| Fields | Type | Description |
| --- | --- | --- |
| quantity | *Int!* | The suggested number of tickets to print |
| template | [TicketTemplate!](/documentation/Objects/Shelf-Tickets#TicketTemplate) | The suggested template to print |



**Object**
## ShelfTicket

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the ticket |
| product | [Product!](/documentation/Objects/Products#Product) | The Product this shelf ticket is for |
| outlet | [Outlet](/documentation/Objects/Outlets#Outlet) | The Outlet that this ticket is for |
| user | [User](/documentation/Objects/User#User) | The User that added the ticket |
| createdAt | [DateTime!](/documentation/Types/Date-Time#DateTime) | The time that the ticket was added |



**Object**
## TicketTemplatePage

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the ticket template |
| name | *String!* | The name of the ticket template |
| horizontalPanels | *Int!* | The number of ticket template panels horizontally |
| verticalPanels | *Int!* | The number of ticket template panels vertically |
| pageWidth | *Float!* | The width of the page (in millimeters) |
| pageHeight | *Float!* | The height of the template panel on a page (in millimeters) |
| pageMargin | *String!* | The margin of the page (formatted as a CSS margin) |
| horizontalPanelSpacing | *Float!* | The spacing between the panels horizontally (in millimeters) |
| verticalPanelSpacing | *Float!* | The spacing between the panels vertically (in millimeters) |
| cuttingWidth | *Float!* | The width of the cutting line to display (in millimeters), this will be overlaid on the tickets |
| mapped | [AdminTicketTemplatePage](/documentation/Objects/Shelf-Tickets#AdminTicketTemplatePage) | The ticket template page this is mapped to from the admin interface, if this is a custom page this value will be `null` |



**Object**
## TicketTemplate

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the ticket template |
| name | *String!* | The name of the ticket template |
| styles | *String!* | The styles to apply to the ticket template (in CSS) |
| transformationScript | *String!* | The transformation script to use (in JavaScript) |
| width | *Float!* | The width of the template panel on a page (in millimeters) |
| height | *Float!* | The height of the template panel on a page (in millimeters) |
| fonts | [[URL!]!](/documentation/Types/Url#Url) | The fonts used by the template |
| fieldsTracked | *[String!]!* | The fields tracked by the template |
| mapped | [AdminTicketTemplate](/documentation/Objects/Shelf-Tickets#AdminTicketTemplate) | The ticket template this is mapped to from the admin interface, if this is a custom ticket this value will be `null` |
| options | [JSON!](/documentation/Types/JSON#JSON) | The options this ticket template is using, it's formatted as `option` => `boolean`, with true being enabled. Options will only exist for mapped templates |



**Object**
## Ticket

| Fields | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the ticket |
| outlet | [Outlet](/documentation/Objects/Outlets#Outlet) | The Outlet that this ticket is for |
| user | [User](/documentation/Objects/User#User) | The User that added the ticket |
| queuedAt | [DateTime!](/documentation/Types/Date-Time#DateTime) | The time that the ticket was added to the queue |
| item | [PrintableInterface!](/documentation/Interfaces/Printable-Interface#PrintableInterface) | The item that this ticket is for |
| templates | [[PrintableTemplate!]](/documentation/Objects/Shelf-Tickets#PrintableTemplate) | The suggested templates for this ticket |
| reasons | [[PrintableReasonInterface!]](/documentation/Interfaces/Printable-Reason-Interface#PrintableReasonInterface) | The reasons that this ticket was created |