TicketLayoutTemplate

A single ticket layout template.

More info: see the get operation and the ticket layout templates endpoint.

Fields

FieldDescription
id
int 
(required)

Unique ID

Example value:123
typeid
int 
(required)

Type ID

Example value:1
name
string 
(required)

Name for the ticket layout template

Example value:"Print at home"
css
string 
(required)

Css classes for the ticket layout template

Example value:"@page { size: A4; margin: 0; padding: 0; }"
deliveryscenarios
int[] 
(required)

Deliveryscenario’s for which this ticket layout template will be used

Example value:[ 1, 2, 3 ]
htmltemplate
string 
(required)

HTML template containing the definition for the ticket layout template

Example value:"<!doctype html><html><head><meta charset="utf-8"><\/head><body><\/body><\/html>"
ticketsperpage
int 
(required)

Number of tickets to be printed per page

Example value:1
translations
map<string, string> 
(required)

Translations for the ticket layout template

Example value:{ "en": "...", "nl": "..." }
isarchived
bool 
(required)

Whether or not this item is archived

createdts
timestamp 
(required)

Created timestamp

Example value:"2014-09-26 15:24:36"
lastupdatets
timestamp 
(required)

Last updated timestamp

Example value:"2014-09-26 15:24:36"

Example

 1{
 2    "id": 123,
 3    "typeid": 1,
 4    "name": "Print at home",
 5    "css": "@page {
 6    size: A4;
 7    margin: 0;
 8    padding: 0;
 9}",
10    "deliveryscenarios": [ 1, 2, 3 ],
11    "htmltemplate": "<!doctype html><html><head><meta charset="utf-8"><\/head><body><\/body><\/html>",
12    "ticketsperpage": 1,
13    "translations": {
14        "en": "...",
15        "nl": "..."
16    },
17    "isarchived": false,
18    "createdts": "2014-09-26 15:24:36",
19    "lastupdatets": "2014-09-26 15:24:36"
20}