Create a new event

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/events

Examples

Creating a draft event

A draft event can be created by supplying just it’s name and dates.

You’ll need to add contingents and pricing configuration later on to make this event usable.

Request

1use Ticketmatic\Endpoints\Events;
2
3$result = Events::create($client, array(
4    "name" => "Marco Bailey",
5    "endts" => "2016-09-26 22:00:00",
6    "startts" => "2016-09-26 20:00:00",
7));

Response

 1object(\Ticketmatic\Model\Event) (6) {
 2  ["id"]=>
 3  int(0)
 4  ["name"]=>
 5  string(12) "Marco Bailey"
 6  ["code"]=>
 7  string(12) "314099548201"
 8  ["currentstatus"]=>
 9  int(0)
10  ["createdts"]=>
11  object(\DateTime) (3) {
12    ["date"]=>
13    string(26) "2016-08-04 10:45:03.645922.000000"
14    ["timezone_type"]=>
15    int(3)
16    ["timezone"]=>
17    string(3) "UTC"
18  }
19  ["lastupdatets"]=>
20  object(\DateTime) (3) {
21    ["date"]=>
22    string(26) "2016-08-04 10:45:03.645922.000000"
23    ["timezone_type"]=>
24    int(3)
25    ["timezone"]=>
26    string(3) "UTC"
27  }
28}
29

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/events"
 4)
 5
 6result, err := events.Create(client, &ticketmatic.Event{
 7    Name: "Marco Bailey",
 8    Endts: ticketmatic.NewTime(ticketmatic.MustParseTime("2016-09-26 22:00:00")),
 9    Startts: ticketmatic.NewTime(ticketmatic.MustParseTime("2016-09-26 20:00:00")),
10})

Response

1result := &ticketmatic.Event{
2    Id: 56718984,
3    Name: "Marco Bailey",
4    Code: "314099548201",
5    Currentstatus: 19001,
6    Createdts: ticketmatic.NewTime(ticketmatic.MustParseTime("2016-08-04 10:45:03.645922")),
7    Lastupdatets: ticketmatic.NewTime(ticketmatic.MustParseTime("2016-08-04 10:45:03.645922")),
8}

Request

1POST /api/1/{accountname}/events HTTP/1.1
2Content-Type: application/json
3
4{
5    "name": "Marco Bailey",
6    "endts": "2016-09-26 22:00:00",
7    "startts": "2016-09-26 20:00:00"
8}

Response

 1HTTP/1.1 200 OK
 2Content-Type: application/json
 3
 4{
 5    "id": 56718984,
 6    "name": "Marco Bailey",
 7    "code": "314099548201",
 8    "currentstatus": 19001,
 9    "createdts": "2016-08-04 10:45:03.645922",
10    "lastupdatets": "2016-08-04 10:45:03.645922"
11}

Creating an unseated event

Unseated events contain one or more contingents of tickets.

You only need to specify the amount of tickets, the actual tickets will be generated automatically.

Request

 1use Ticketmatic\Endpoints\Events;
 2
 3$result = Events::create($client, array(
 4    "name" => "Marco Bailey",
 5    "contingents" => array(
 6        array(
 7            "name" => "Tickets",
 8            "amount" => 100,
 9        ),
10    ),
11    "endts" => "2016-09-26 22:00:00",
12    "startts" => "2016-09-26 20:00:00",
13));

Response

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/events"
 4)
 5
 6result, err := events.Create(client, &ticketmatic.Event{
 7    Name: "Marco Bailey",
 8    Contingents: []*ticketmatic.EventContingent{
 9        &ticketmatic.EventContingent{
10            Name: "Tickets",
11            Amount: 100,
12        },
13    },
14    Endts: ticketmatic.NewTime(ticketmatic.MustParseTime("2016-09-26 22:00:00")),
15    Startts: ticketmatic.NewTime(ticketmatic.MustParseTime("2016-09-26 20:00:00")),
16})

Response

Request

 1POST /api/1/{accountname}/events HTTP/1.1
 2Content-Type: application/json
 3
 4{
 5    "name": "Marco Bailey",
 6    "contingents": [
 7        {
 8            "name": "Tickets",
 9            "amount": 100
10        }
11    ],
12    "endts": "2016-09-26 22:00:00",
13    "startts": "2016-09-26 20:00:00"
14}

Response

Creating a seated event

Send the seating plan ID to create a seated event.

Request

1use Ticketmatic\Endpoints\Events;
2
3$result = Events::create($client, array(
4    "name" => "Marco Bailey",
5    "endts" => "2016-09-26 22:00:00",
6    "seatingplanid" => 10023,
7    "startts" => "2016-09-26 20:00:00",
8));

Response

Request

 1import (
 2    "github.com/ticketmatic/tm-go/ticketmatic"
 3    "github.com/ticketmatic/tm-go/ticketmatic/events"
 4)
 5
 6result, err := events.Create(client, &ticketmatic.Event{
 7    Name: "Marco Bailey",
 8    Endts: ticketmatic.NewTime(ticketmatic.MustParseTime("2016-09-26 22:00:00")),
 9    Seatingplanid: 10023,
10    Startts: ticketmatic.NewTime(ticketmatic.MustParseTime("2016-09-26 20:00:00")),
11})

Response

Request

1POST /api/1/{accountname}/events HTTP/1.1
2Content-Type: application/json
3
4{
5    "name": "Marco Bailey",
6    "endts": "2016-09-26 22:00:00",
7    "seatingplanid": 10023,
8    "startts": "2016-09-26 20:00:00"
9}

Response

Request body fields

FieldDescription
name
mlstring 
(required)

Event name

Example value:"Bonobo Live"
audiopreviewurl
string

The audio preview url for the event

Example value:"https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg"
contingents

Information about the contingents in the Event that are not in the seatingplan

Example value:[ { "id": 98, "name": "Tickets", "amount": 100, "eventid": 777701, "eventspecificprices": null, "locks": [], "pricelistid": 6, "withimportedbarcodes": false } ]
currentstatus
int

Event status

The available values for this field can be found on the Event page.

Example value:19001
description

Description of the event, visible for ticket buyers

Example value:"Panda Dub, leading man of the french dub scene returns with a new show: Circle Live!"
endts
timestamp 
(required)

Event end time

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

External event code.

This field is typically set when importing data from other systems.

Example value:"56975647832"
info

Practical info for the event, visible for ticket buyers

Example value:"Lockers available in the basement."
locationid
int

Event location ID

See event locations for more information.

Example value:125
maxnbrofticketsperbasket
int

Maximum number of tickets for this event that can be added to a basket

Example value:5
previews

Preview urls for the event.

Example value:[ { "type": 30002, "url": "https://www.youtube.com/watch?v=RIGgn1s3AvI" }, { "type": 30002, "url": "https://www.youtube.com/watch?v=6VrqR_GfvzE" }, { "type": 30003, "url": "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/356544932&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true" } ]
productionid
int

Production ID

Example value:1256975647
queuetoken
int

Queue ID

See rate limiting for more information.

Example value:421
revenuesplitid
int

DEPRECATED

Example value:125
saleendts
timestamp

Time of end of sales.

Used for all sales channels for which no specific sales period has been defined.

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

Per-sales channel information about when this event is for sale.

Example value:[ { "eventid": 123, "haswaitinglist": false, "isactive": true, "saleendts": "2014-09-26 15:24:36", "saleschannelid": 1, "salestartts": null } ]
salestartts
timestamp

Time of start of sales.

Used for all sales channels for which no specific sales period has been defined.

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

Schedule for the event, visible for ticket buyers

Example value:"20:00 support act 21:00 show 22:30 end"
seatingplaneventspecificprices

Event specific prices in addition to the prices defined in the field seatingplanpricelistid. Prices from the pricelist and the event specific prices are combined in one pricelist for the event. The optional position attribute defines where the event specific prices will be positioned in the resulting pricelist

Example value:{ "prices": [ { "availabilities": [ true ], "position": 3, "prices": [ 25.000000 ], "pricetypeid": 1, "saleschannels": [ 1, 2 ] }, { "availabilities": [ true ], "conditions": [ { "type": "promocode", "value": "UGENT2013" } ], "position": 7, "prices": [ 30.000000 ], "pricetypeid": 2, "saleschannels": [ 1, 2 ] } ], "seatrankids": null }
seatingplanid
int

Seating plan ID

Only set for events with fixed seats.

Example value:125
seatingplanlocktemplate
string

Name of the seatingplanlocktemplate to apply linking a seatingplanid to this event. This is not a numeric id but the name of the lock template as specified in the seatingplan’s logicalplan.

Example value:"Default"
seatingplanpricelistid
int

Price list ID for fixed seats.

Only set for events with fixed seats. See price lists for more information.

Example value:125
seatselection
bool

Enable or disable seat selection for customers.

        </td>
    </tr><tr>
        <td class="field">
            <div class="name">startts</div>
            <div class="type">timestamp&nbsp;<div class="required">(required)</div></div>
        </td>
        <td class="description">
            <p>Event start time</p> 
            <strong>Example value:</strong><code>&#34;2014-09-26 15:24:36&#34;</code>
        </td>
    </tr><tr>
        <td class="field">
            <div class="name">subtitle</div>
            <div class="type"><a href="api/coreconcepts/translations">mlstring</a></div>
        </td>
        <td class="description">
            <p>Event subtitle</p> 
            <strong>Example value:</strong><code>&#34;With live band&#34;</code>
        </td>
    </tr><tr>
        <td class="field">
            <div class="name">subtitle2</div>
            <div class="type"><a href="api/coreconcepts/translations">mlstring</a></div>
        </td>
        <td class="description">
            <p>Event subtitle (2)</p> 
            <strong>Example value:</strong><code>&#34;Exclusive concert&#34;</code>
        </td>
    </tr><tr>
        <td class="field">
            <div class="name">ticketfeeid</div>
            <div class="type">int</div>
        </td>
        <td class="description">
            <p>Ticket fee ID</p>  <p>Determines which ticket fee rules are used for this event. See <a href="api/settings/pricing/ticketfees">ticket fees</a> for more information.</p> 
            <strong>Example value:</strong><code>125</code>
        </td>
    </tr><tr>
        <td class="field">
            <div class="name">ticketlayoutid</div>
            <div class="type">int</div>
        </td>
        <td class="description">
            <p>Ticket layout ID</p>  <p>See <a href="api/settings/communicationanddesign/ticketlayouts">ticket layouts</a> for more information.</p> 
            <strong>Example value:</strong><code>125</code>
        </td>
    </tr><tr>
        <td class="field">
            <div class="name">translations</div>
            <div class="type">map&lt;string, string&gt;</div>
        </td>
        <td class="description">
            <p>Translation of event fields</p> 
            <strong>Example value:</strong><code>{ &#34;nameen&#34;: &#34;English name&#34;, &#34;namefr&#34;: &#34;Nom francais&#34; }</code>
        </td>
    </tr><tr>
        <td class="field">
            <div class="name">waitinglisttype</div>
            <div class="type">int</div>
        </td>
        <td class="description">
            <p>The type of the waiting list the event uses</p> 
            <strong>Example value:</strong><code>29001</code>
        </td>
    </tr><tr>
        <td class="field">
            <div class="name">webremark</div>
            <div class="type"><a href="api/coreconcepts/translations">mlstring</a></div>
        </td>
        <td class="description">
            <p>Small description that will be shown on the sales pages of this event</p> 
            <strong>Example value:</strong><code>&#34;Age will be checked at the entrance&#34;</code>
        </td>
    </tr>
</tbody>

Type reference: Event

Result fields

FieldDescription
id
int

Event ID

Example value:1269434
name

Event name

Example value:"Bonobo Live"
audiopreviewurl
string

The audio preview url for the event

Example value:"https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg"
availability

Information on the availability of tickets per contingent. Read-only.

Example value:[ { "complimentary": 0, "free": 815, "locked_hard": 10, "locked_soft": 15, "reserved": 0, "sold_paid": 0, "sold_unpaid": 0, "tickettypeid": 89, "total": 840, "lastupdatets": "2015-05-29 09:21:10.38252" } ]
code
string

Event code.

Used as a unique identifier in web sales.

Example value:"864056970700"
contingents

Information about the contingents in the Event that are not in the seatingplan

Example value:[ { "id": 98, "name": "Tickets", "amount": 100, "eventid": 777701, "eventspecificprices": null, "locks": [], "pricelistid": 6, "withimportedbarcodes": false } ]
currentstatus
int

Event status

The available values for this field can be found on the Event page.

Example value:19001
description

Description of the event, visible for ticket buyers

Example value:"Panda Dub, leading man of the french dub scene returns with a new show: Circle Live!"
endts
timestamp

Event end time

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

External event code.

This field is typically set when importing data from other systems.

Example value:"56975647832"
image
string

The image url for the event display image

Example value:"https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg"
info

Practical info for the event, visible for ticket buyers

Example value:"Lockers available in the basement."
locationid
int

Event location ID

See event locations for more information.

Example value:125
locationname
string

Event location name

Automatically derived using locationid.

Example value:"Concert hall"
maxnbrofticketsperbasket
int

Maximum number of tickets for this event that can be added to a basket

Example value:5
previews

Preview urls for the event.

Example value:[ { "type": 30002, "url": "https://www.youtube.com/watch?v=RIGgn1s3AvI" }, { "type": 30002, "url": "https://www.youtube.com/watch?v=6VrqR_GfvzE" }, { "type": 30003, "url": "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/356544932&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true" } ]
prices

Information on the available prices for the event

Example value:{ "contingents": [ { "contingentid": 1, "pricetypes": [ { "pricetypeid": 2, "saleschannels": [ { "costs": [ { "cost": 5.000000, "costid": 0 } ], "price": 30.500000, "saleschannelid": 3, "servicecharge": 1.500000, "tickettypepriceid": 4 } ] } ] } ] }
productionid
int

Production ID

Example value:1256975647
publishedts
timestamp

Event publish time

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

Queue ID

See rate limiting for more information.

Example value:421
revenuesplitid
int

DEPRECATED

Example value:125
saleendts
timestamp

Time of end of sales.

Used for all sales channels for which no specific sales period has been defined.

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

Per-sales channel information about when this event is for sale.

Example value:[ { "eventid": 123, "haswaitinglist": false, "isactive": true, "saleendts": "2014-09-26 15:24:36", "saleschannelid": 1, "salestartts": null } ]
salestartts
timestamp

Time of start of sales.

Used for all sales channels for which no specific sales period has been defined.

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

Schedule for the event, visible for ticket buyers

Example value:"20:00 support act 21:00 show 22:30 end"
seatingplancontingents

Information about the contingents defined in the seatingplan. Read-only.

Example value:[ { "id": 99, "name": "Name A", "amount": 50, "eventid": 777702, "seatrankid": 1 }, { "id": 100, "name": "Name B", "amount": 50, "eventid": 777702, "seatrankid": 2 } ]
seatingplaneventspecificprices

Event specific prices in addition to the prices defined in the field seatingplanpricelistid. Prices from the pricelist and the event specific prices are combined in one pricelist for the event. The optional position attribute defines where the event specific prices will be positioned in the resulting pricelist

Example value:{ "prices": [ { "availabilities": [ true ], "position": 3, "prices": [ 25.000000 ], "pricetypeid": 1, "saleschannels": [ 1, 2 ] }, { "availabilities": [ true ], "conditions": [ { "type": "promocode", "value": "UGENT2013" } ], "position": 7, "prices": [ 30.000000 ], "pricetypeid": 2, "saleschannels": [ 1, 2 ] } ], "seatrankids": null }
seatingplanid
int

Seating plan ID

Only set for events with fixed seats.

Example value:125
seatingplanpricelistid
int

Price list ID for fixed seats.

Only set for events with fixed seats. See price lists for more information.

Example value:125
seatselection
bool

Enable or disable seat selection for customers.

startts
timestamp

Event start time

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

Event subtitle

Example value:"With live band"
subtitle2

Event subtitle (2)

Example value:"Exclusive concert"
ticketfeeid
int

Ticket fee ID

Determines which ticket fee rules are used for this event. See ticket fees for more information.

Example value:125
ticketlayoutid
int

Ticket layout ID

See ticket layouts for more information.

Example value:125
translations
map<string, string>

Translation of event fields

Example value:{ "nameen": "English name", "namefr": "Nom francais" }
waitinglisttype
int

The type of the waiting list the event uses

Example value:29001
webremark

Small description that will be shown on the sales pages of this event

Example value:"Age will be checked at the entrance"
createdts
timestamp

Created timestamp

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

Last updated timestamp

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

Type reference: Event