Update an event

Content

Resource URL

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

Example

Request

  1use Ticketmatic\Endpoints\Events;
  2
  3$result = Events::update($client, $id, array(
  4    "name" => "Bonobo Live",
  5    "audiopreviewurl" => "https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg",
  6    "contingents" => array(
  7        array(
  8            "id" => 98,
  9            "name" => "Tickets",
 10            "amount" => 100,
 11            "eventid" => 777701,
 12            "eventspecificprices" => null,
 13            "locks" => array(
 14            ),
 15            "pricelistid" => 6,
 16            "withimportedbarcodes" => false,
 17        ),
 18    ),
 19    "currentstatus" => 19001,
 20    "description" => "Panda Dub, leading man of the french dub scene returns with a new show: Circle Live!",
 21    "endts" => "2014-09-26 15:24:36",
 22    "externalcode" => "56975647832",
 23    "info" => "Lockers available in the basement.",
 24    "locationid" => 125,
 25    "maxnbrofticketsperbasket" => 5,
 26    "previews" => array(
 27        array(
 28            "type" => 30002,
 29            "url" => "https://www.youtube.com/watch?v=RIGgn1s3AvI",
 30        ),
 31        array(
 32            "type" => 30002,
 33            "url" => "https://www.youtube.com/watch?v=6VrqR_GfvzE",
 34        ),
 35        array(
 36            "type" => 30003,
 37            "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",
 38        ),
 39    ),
 40    "productionid" => 1.256975647e+09,
 41    "queuetoken" => 421,
 42    "revenuesplitid" => 125,
 43    "saleendts" => "2014-09-26 15:24:36",
 44    "saleschannels" => array(
 45        array(
 46            "eventid" => 123,
 47            "haswaitinglist" => false,
 48            "isactive" => true,
 49            "saleendts" => "2014-09-26 15:24:36",
 50            "saleschannelid" => 1,
 51            "salestartts" => null,
 52        ),
 53    ),
 54    "salestartts" => "2014-09-26 15:24:36",
 55    "schedule" => "20:00 support act\n21:00 show\n22:30 end",
 56    "seatingplaneventspecificprices" => array(
 57        "prices" => array(
 58            array(
 59                "availabilities" => array(
 60                    true,
 61                ),
 62                "position" => 3,
 63                "prices" => array(
 64                    25,
 65                ),
 66                "pricetypeid" => 1,
 67                "saleschannels" => array(
 68                    1,
 69                    2,
 70                ),
 71            ),
 72            array(
 73                "availabilities" => array(
 74                    true,
 75                ),
 76                "conditions" => array(
 77                    array(
 78                        "type" => "promocode",
 79                        "value" => "UGENT2013",
 80                    ),
 81                ),
 82                "position" => 7,
 83                "prices" => array(
 84                    30,
 85                ),
 86                "pricetypeid" => 2,
 87                "saleschannels" => array(
 88                    1,
 89                    2,
 90                ),
 91            ),
 92        ),
 93        "seatrankids" => null,
 94    ),
 95    "seatingplanid" => 125,
 96    "seatingplanlocktemplate" => "Default",
 97    "seatingplanpricelistid" => 125,
 98    "seatselection" => false,
 99    "startts" => "2014-09-26 15:24:36",
100    "subtitle" => "With live band",
101    "subtitle2" => "Exclusive concert",
102    "ticketfeeid" => 125,
103    "ticketlayoutid" => 125,
104    "translations" => array(
105        "nameen" => "English name",
106        "namefr" => "Nom francais",
107    ),
108    "waitinglisttype" => 29001,
109    "webremark" => "Age will be checked at the entrance",
110));

Response

  1object(\Ticketmatic\Model\Event) (40) {
  2  ["id"]=>
  3  int(0)
  4  ["name"]=>
  5  string(11) "Bonobo Live"
  6  ["audiopreviewurl"]=>
  7  string(92) "https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg"
  8  ["availability"]=>
  9  array(1) {
 10    [0]=>
 11    object(\Ticketmatic\Model\EventContingentAvailability) (10) {
 12      ["complimentary"]=>
 13      int(0)
 14      ["free"]=>
 15      int(0)
 16      ["locked_hard"]=>
 17      int(0)
 18      ["locked_soft"]=>
 19      int(0)
 20      ["reserved"]=>
 21      int(0)
 22      ["sold_paid"]=>
 23      int(0)
 24      ["sold_unpaid"]=>
 25      int(0)
 26      ["tickettypeid"]=>
 27      int(0)
 28      ["total"]=>
 29      int(0)
 30      ["lastupdatets"]=>
 31      object(\DateTime) (3) {
 32        ["date"]=>
 33        string(26) "2015-05-29 09:21:10.38252.000000"
 34        ["timezone_type"]=>
 35        int(3)
 36        ["timezone"]=>
 37        string(3) "UTC"
 38      }
 39    }
 40  }
 41  ["code"]=>
 42  string(12) "864056970700"
 43  ["contingents"]=>
 44  array(1) {
 45    [0]=>
 46    object(\Ticketmatic\Model\EventContingent) (8) {
 47      ["id"]=>
 48      int(0)
 49      ["name"]=>
 50      string(7) "Tickets"
 51      ["amount"]=>
 52      int(0)
 53      ["eventid"]=>
 54      int(0)
 55      ["eventspecificprices"]=>
 56      NULL
 57      ["locks"]=>
 58      array(0) {
 59      }
 60      ["pricelistid"]=>
 61      int(0)
 62      ["withimportedbarcodes"]=>
 63      bool(false)
 64    }
 65  }
 66  ["currentstatus"]=>
 67  int(0)
 68  ["description"]=>
 69  string(84) "Panda Dub, leading man of the french dub scene returns with a new show: Circle Live!"
 70  ["endts"]=>
 71  object(\DateTime) (3) {
 72    ["date"]=>
 73    string(26) "2014-09-26 15:24:36.000000"
 74    ["timezone_type"]=>
 75    int(3)
 76    ["timezone"]=>
 77    string(3) "UTC"
 78  }
 79  ["externalcode"]=>
 80  string(11) "56975647832"
 81  ["image"]=>
 82  string(92) "https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg"
 83  ["info"]=>
 84  string(34) "Lockers available in the basement."
 85  ["locationid"]=>
 86  int(0)
 87  ["locationname"]=>
 88  string(12) "Concert hall"
 89  ["maxnbrofticketsperbasket"]=>
 90  int(0)
 91  ["previews"]=>
 92  array(3) {
 93    [0]=>
 94    object(\Ticketmatic\Model\EventPreview) (2) {
 95      ["type"]=>
 96      int(0)
 97      ["url"]=>
 98      string(43) "https://www.youtube.com/watch?v=RIGgn1s3AvI"
 99    }
100    [1]=>
101    object(\Ticketmatic\Model\EventPreview) (2) {
102      ["type"]=>
103      int(0)
104      ["url"]=>
105      string(43) "https://www.youtube.com/watch?v=6VrqR_GfvzE"
106    }
107    [2]=>
108    object(\Ticketmatic\Model\EventPreview) (2) {
109      ["type"]=>
110      int(0)
111      ["url"]=>
112      string(215) "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"
113    }
114  }
115  ["prices"]=>
116  object(\Ticketmatic\Model\EventPrices) (1) {
117    ["contingents"]=>
118    array(1) {
119      [0]=>
120      object(\Ticketmatic\Model\EventPricesContingent) (2) {
121        ["contingentid"]=>
122        int(0)
123        ["pricetypes"]=>
124        array(1) {
125          [0]=>
126          object(\Ticketmatic\Model\EventPricesPricetype) (2) {
127            ["pricetypeid"]=>
128            int(0)
129            ["saleschannels"]=>
130            array(1) {
131              [0]=>
132              object(\Ticketmatic\Model\EventPricesSaleschannel) (5) {
133                ["costs"]=>
134                array(1) {
135                  [0]=>
136                  object(\Ticketmatic\Model\EventPricesCost) (2) {
137                    ["cost"]=>
138                    float(5.000000)
139                    ["costid"]=>
140                    int(0)
141                  }
142                }
143                ["price"]=>
144                float(30.500000)
145                ["saleschannelid"]=>
146                int(0)
147                ["servicecharge"]=>
148                float(1.500000)
149                ["tickettypepriceid"]=>
150                int(0)
151              }
152            }
153          }
154        }
155      }
156    }
157  }
158  ["productionid"]=>
159  int(0)
160  ["publishedts"]=>
161  object(\DateTime) (3) {
162    ["date"]=>
163    string(26) "2014-09-26 15:24:36.000000"
164    ["timezone_type"]=>
165    int(3)
166    ["timezone"]=>
167    string(3) "UTC"
168  }
169  ["queuetoken"]=>
170  int(0)
171  ["revenuesplitid"]=>
172  int(0)
173  ["saleendts"]=>
174  object(\DateTime) (3) {
175    ["date"]=>
176    string(26) "2014-09-26 15:24:36.000000"
177    ["timezone_type"]=>
178    int(3)
179    ["timezone"]=>
180    string(3) "UTC"
181  }
182  ["saleschannels"]=>
183  array(1) {
184    [0]=>
185    object(\Ticketmatic\Model\EventSalesChannel) (6) {
186      ["eventid"]=>
187      int(0)
188      ["haswaitinglist"]=>
189      bool(false)
190      ["isactive"]=>
191      bool(true)
192      ["saleendts"]=>
193      object(\DateTime) (3) {
194        ["date"]=>
195        string(26) "2014-09-26 15:24:36.000000"
196        ["timezone_type"]=>
197        int(3)
198        ["timezone"]=>
199        string(3) "UTC"
200      }
201      ["saleschannelid"]=>
202      int(0)
203      ["salestartts"]=>
204      NULL
205    }
206  }
207  ["salestartts"]=>
208  object(\DateTime) (3) {
209    ["date"]=>
210    string(26) "2014-09-26 15:24:36.000000"
211    ["timezone_type"]=>
212    int(3)
213    ["timezone"]=>
214    string(3) "UTC"
215  }
216  ["schedule"]=>
217  string(38) "20:00 support act
21821:00 show
21922:30 end"
220  ["seatingplancontingents"]=>
221  array(2) {
222    [0]=>
223    object(\Ticketmatic\Model\EventSeatingplanContingent) (5) {
224      ["id"]=>
225      int(0)
226      ["name"]=>
227      string(6) "Name A"
228      ["amount"]=>
229      int(0)
230      ["eventid"]=>
231      int(0)
232      ["seatrankid"]=>
233      int(0)
234    }
235    [1]=>
236    object(\Ticketmatic\Model\EventSeatingplanContingent) (5) {
237      ["id"]=>
238      int(0)
239      ["name"]=>
240      string(6) "Name B"
241      ["amount"]=>
242      int(0)
243      ["eventid"]=>
244      int(0)
245      ["seatrankid"]=>
246      int(0)
247    }
248  }
249  ["seatingplaneventspecificprices"]=>
250  object(\Ticketmatic\Model\PricelistPrices) (2) {
251    ["prices"]=>
252    array(2) {
253      [0]=>
254      object(\Ticketmatic\Model\PricelistPrice) (5) {
255        ["availabilities"]=>
256        array(1) {
257          [0]=>
258          bool(true)
259        }
260        ["position"]=>
261        int(0)
262        ["prices"]=>
263        array(1) {
264          [0]=>
265          float(25.000000)
266        }
267        ["pricetypeid"]=>
268        int(0)
269        ["saleschannels"]=>
270        array(2) {
271          [0]=>
272          int(0)
273          [1]=>
274          int(0)
275        }
276      }
277      [1]=>
278      object(\Ticketmatic\Model\PricelistPrice) (6) {
279        ["availabilities"]=>
280        array(1) {
281          [0]=>
282          bool(true)
283        }
284        ["conditions"]=>
285        array(1) {
286          [0]=>
287          object(\Ticketmatic\Model\PricelistPriceCondition) (2) {
288            ["type"]=>
289            string(9) "promocode"
290            ["value"]=>
291            string(9) "UGENT2013"
292          }
293        }
294        ["position"]=>
295        int(0)
296        ["prices"]=>
297        array(1) {
298          [0]=>
299          float(30.000000)
300        }
301        ["pricetypeid"]=>
302        int(0)
303        ["saleschannels"]=>
304        array(2) {
305          [0]=>
306          int(0)
307          [1]=>
308          int(0)
309        }
310      }
311    }
312    ["seatrankids"]=>
313    NULL
314  }
315  ["seatingplanid"]=>
316  int(0)
317  ["seatingplanpricelistid"]=>
318  int(0)
319  ["seatselection"]=>
320  bool(false)
321  ["startts"]=>
322  object(\DateTime) (3) {
323    ["date"]=>
324    string(26) "2014-09-26 15:24:36.000000"
325    ["timezone_type"]=>
326    int(3)
327    ["timezone"]=>
328    string(3) "UTC"
329  }
330  ["subtitle"]=>
331  string(14) "With live band"
332  ["subtitle2"]=>
333  string(17) "Exclusive concert"
334  ["ticketfeeid"]=>
335  int(0)
336  ["ticketlayoutid"]=>
337  int(0)
338  ["translations"]=>
339  array(2) {
340    ["nameen"]=>
341    string(12) "English name"
342    ["namefr"]=>
343    string(12) "Nom francais"
344  }
345  ["waitinglisttype"]=>
346  int(0)
347  ["webremark"]=>
348  string(35) "Age will be checked at the entrance"
349  ["createdts"]=>
350  object(\DateTime) (3) {
351    ["date"]=>
352    string(26) "2014-09-26 15:24:36.000000"
353    ["timezone_type"]=>
354    int(3)
355    ["timezone"]=>
356    string(3) "UTC"
357  }
358  ["lastupdatets"]=>
359  object(\DateTime) (3) {
360    ["date"]=>
361    string(26) "2014-09-26 15:24:36.000000"
362    ["timezone_type"]=>
363    int(3)
364    ["timezone"]=>
365    string(3) "UTC"
366  }
367}
368

Request

  1import (
  2    "github.com/ticketmatic/tm-go/ticketmatic"
  3    "github.com/ticketmatic/tm-go/ticketmatic/events"
  4)
  5
  6result, err := events.Update(client, id, &ticketmatic.Event{
  7    Name: "Bonobo Live",
  8    Audiopreviewurl: "https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg",
  9    Contingents: []*ticketmatic.EventContingent{
 10        &ticketmatic.EventContingent{
 11            Id: 98,
 12            Name: "Tickets",
 13            Amount: 100,
 14            Eventid: 777701,
 15            Eventspecificprices: nil,
 16            Locks: []*ticketmatic.EventContingentLock{
 17            },
 18            Pricelistid: 6,
 19            Withimportedbarcodes: false,
 20        },
 21    },
 22    Currentstatus: 19001,
 23    Description: "Panda Dub, leading man of the french dub scene returns with a new show: Circle Live!",
 24    Endts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 25    Externalcode: "56975647832",
 26    Info: "Lockers available in the basement.",
 27    Locationid: 125,
 28    Maxnbrofticketsperbasket: 5,
 29    Previews: []*ticketmatic.EventPreview{
 30        &ticketmatic.EventPreview{
 31            Type: 30002,
 32            Url: "https://www.youtube.com/watch?v=RIGgn1s3AvI",
 33        },
 34        &ticketmatic.EventPreview{
 35            Type: 30002,
 36            Url: "https://www.youtube.com/watch?v=6VrqR_GfvzE",
 37        },
 38        &ticketmatic.EventPreview{
 39            Type: 30003,
 40            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",
 41        },
 42    },
 43    Productionid: 1256975647,
 44    Queuetoken: 421,
 45    Revenuesplitid: 125,
 46    Saleendts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 47    Saleschannels: []*ticketmatic.EventSalesChannel{
 48        &ticketmatic.EventSalesChannel{
 49            Eventid: 123,
 50            Haswaitinglist: false,
 51            Isactive: true,
 52            Saleendts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 53            Saleschannelid: 1,
 54            Salestartts: ticketmatic.NewTime(ticketmatic.MustParseTime(<nil>)),
 55        },
 56    },
 57    Salestartts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 58    Schedule: "20:00 support act\n21:00 show\n22:30 end",
 59    Seatingplaneventspecificprices: &ticketmatic.PricelistPrices{
 60        Prices: []*ticketmatic.PricelistPrice{
 61            &ticketmatic.PricelistPrice{
 62                Availabilities: []bool{
 63                    true,
 64                },
 65                Position: 3,
 66                Prices: []float64{
 67                    25,
 68                },
 69                Pricetypeid: 1,
 70                Saleschannels: []int64{
 71                    1,
 72                    2,
 73                },
 74            },
 75            &ticketmatic.PricelistPrice{
 76                Availabilities: []bool{
 77                    true,
 78                },
 79                Conditions: []*ticketmatic.PricelistPriceCondition{
 80                    &ticketmatic.PricelistPriceCondition{
 81                        Type: "promocode",
 82                        Value: "UGENT2013",
 83                    },
 84                },
 85                Position: 7,
 86                Prices: []float64{
 87                    30,
 88                },
 89                Pricetypeid: 2,
 90                Saleschannels: []int64{
 91                    1,
 92                    2,
 93                },
 94            },
 95        },
 96        Seatrankids: nil,
 97    },
 98    Seatingplanid: 125,
 99    Seatingplanlocktemplate: "Default",
100    Seatingplanpricelistid: 125,
101    Seatselection: false,
102    Startts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
103    Subtitle: "With live band",
104    Subtitle2: "Exclusive concert",
105    Ticketfeeid: 125,
106    Ticketlayoutid: 125,
107    Translations: map[string]string{
108        "nameen": "English name",
109        "namefr": "Nom francais",
110    },
111    Waitinglisttype: 29001,
112    Webremark: "Age will be checked at the entrance",
113})

Response

  1result := &ticketmatic.Event{
  2    Id: 1269434,
  3    Name: "Bonobo Live",
  4    Audiopreviewurl: "https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg",
  5    Availability: []*ticketmatic.EventContingentAvailability{
  6        &ticketmatic.EventContingentAvailability{
  7            Complimentary: 0,
  8            Free: 815,
  9            LockedHard: 10,
 10            LockedSoft: 15,
 11            Reserved: 0,
 12            SoldPaid: 0,
 13            SoldUnpaid: 0,
 14            Tickettypeid: 89,
 15            Total: 840,
 16            Lastupdatets: ticketmatic.NewTime(ticketmatic.MustParseTime("2015-05-29 09:21:10.38252")),
 17        },
 18    },
 19    Code: "864056970700",
 20    Contingents: []*ticketmatic.EventContingent{
 21        &ticketmatic.EventContingent{
 22            Id: 98,
 23            Name: "Tickets",
 24            Amount: 100,
 25            Eventid: 777701,
 26            Eventspecificprices: nil,
 27            Locks: []*ticketmatic.EventContingentLock{
 28            },
 29            Pricelistid: 6,
 30            Withimportedbarcodes: false,
 31        },
 32    },
 33    Currentstatus: 19001,
 34    Description: "Panda Dub, leading man of the french dub scene returns with a new show: Circle Live!",
 35    Endts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 36    Externalcode: "56975647832",
 37    Image: "https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg",
 38    Info: "Lockers available in the basement.",
 39    Locationid: 125,
 40    Locationname: "Concert hall",
 41    Maxnbrofticketsperbasket: 5,
 42    Previews: []*ticketmatic.EventPreview{
 43        &ticketmatic.EventPreview{
 44            Type: 30002,
 45            Url: "https://www.youtube.com/watch?v=RIGgn1s3AvI",
 46        },
 47        &ticketmatic.EventPreview{
 48            Type: 30002,
 49            Url: "https://www.youtube.com/watch?v=6VrqR_GfvzE",
 50        },
 51        &ticketmatic.EventPreview{
 52            Type: 30003,
 53            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",
 54        },
 55    },
 56    Prices: &ticketmatic.EventPrices{
 57        Contingents: []*ticketmatic.EventPricesContingent{
 58            &ticketmatic.EventPricesContingent{
 59                Contingentid: 1,
 60                Pricetypes: []*ticketmatic.EventPricesPricetype{
 61                    &ticketmatic.EventPricesPricetype{
 62                        Pricetypeid: 2,
 63                        Saleschannels: []*ticketmatic.EventPricesSaleschannel{
 64                            &ticketmatic.EventPricesSaleschannel{
 65                                Costs: []*ticketmatic.EventPricesCost{
 66                                    &ticketmatic.EventPricesCost{
 67                                        Cost: 5,
 68                                        Costid: 0,
 69                                    },
 70                                },
 71                                Price: 30.5,
 72                                Saleschannelid: 3,
 73                                Servicecharge: 1.5,
 74                                Tickettypepriceid: 4,
 75                            },
 76                        },
 77                    },
 78                },
 79            },
 80        },
 81    },
 82    Productionid: 1256975647,
 83    Publishedts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 84    Queuetoken: 421,
 85    Revenuesplitid: 125,
 86    Saleendts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 87    Saleschannels: []*ticketmatic.EventSalesChannel{
 88        &ticketmatic.EventSalesChannel{
 89            Eventid: 123,
 90            Haswaitinglist: false,
 91            Isactive: true,
 92            Saleendts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 93            Saleschannelid: 1,
 94            Salestartts: ticketmatic.NewTime(ticketmatic.MustParseTime(<nil>)),
 95        },
 96    },
 97    Salestartts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
 98    Schedule: "20:00 support act\n21:00 show\n22:30 end",
 99    Seatingplancontingents: []*ticketmatic.EventSeatingplanContingent{
100        &ticketmatic.EventSeatingplanContingent{
101            Id: 99,
102            Name: "Name A",
103            Amount: 50,
104            Eventid: 777702,
105            Seatrankid: 1,
106        },
107        &ticketmatic.EventSeatingplanContingent{
108            Id: 100,
109            Name: "Name B",
110            Amount: 50,
111            Eventid: 777702,
112            Seatrankid: 2,
113        },
114    },
115    Seatingplaneventspecificprices: &ticketmatic.PricelistPrices{
116        Prices: []*ticketmatic.PricelistPrice{
117            &ticketmatic.PricelistPrice{
118                Availabilities: []bool{
119                    true,
120                },
121                Position: 3,
122                Prices: []float64{
123                    25,
124                },
125                Pricetypeid: 1,
126                Saleschannels: []int64{
127                    1,
128                    2,
129                },
130            },
131            &ticketmatic.PricelistPrice{
132                Availabilities: []bool{
133                    true,
134                },
135                Conditions: []*ticketmatic.PricelistPriceCondition{
136                    &ticketmatic.PricelistPriceCondition{
137                        Type: "promocode",
138                        Value: "UGENT2013",
139                    },
140                },
141                Position: 7,
142                Prices: []float64{
143                    30,
144                },
145                Pricetypeid: 2,
146                Saleschannels: []int64{
147                    1,
148                    2,
149                },
150            },
151        },
152        Seatrankids: nil,
153    },
154    Seatingplanid: 125,
155    Seatingplanpricelistid: 125,
156    Seatselection: false,
157    Startts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
158    Subtitle: "With live band",
159    Subtitle2: "Exclusive concert",
160    Ticketfeeid: 125,
161    Ticketlayoutid: 125,
162    Translations: map[string]string{
163        "nameen": "English name",
164        "namefr": "Nom francais",
165    },
166    Waitinglisttype: 29001,
167    Webremark: "Age will be checked at the entrance",
168    Createdts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
169    Lastupdatets: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
170}

Request

  1PUT /api/1/{accountname}/events/{id} HTTP/1.1
  2Content-Type: application/json
  3
  4{
  5    "name": "Bonobo Live",
  6    "audiopreviewurl": "https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg",
  7    "contingents": [
  8        {
  9            "id": 98,
 10            "name": "Tickets",
 11            "amount": 100,
 12            "eventid": 777701,
 13            "eventspecificprices": null,
 14            "locks": [],
 15            "pricelistid": 6,
 16            "withimportedbarcodes": false
 17        }
 18    ],
 19    "currentstatus": 19001,
 20    "description": "Panda Dub, leading man of the french dub scene returns with a new show: Circle Live!",
 21    "endts": "2014-09-26 15:24:36",
 22    "externalcode": "56975647832",
 23    "info": "Lockers available in the basement.",
 24    "locationid": 125,
 25    "maxnbrofticketsperbasket": 5,
 26    "previews": [
 27        {
 28            "type": 30002,
 29            "url": "https://www.youtube.com/watch?v=RIGgn1s3AvI"
 30        },
 31        {
 32            "type": 30002,
 33            "url": "https://www.youtube.com/watch?v=6VrqR_GfvzE"
 34        },
 35        {
 36            "type": 30003,
 37            "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"
 38        }
 39    ],
 40    "productionid": 1256975647,
 41    "queuetoken": 421,
 42    "revenuesplitid": 125,
 43    "saleendts": "2014-09-26 15:24:36",
 44    "saleschannels": [
 45        {
 46            "eventid": 123,
 47            "haswaitinglist": false,
 48            "isactive": true,
 49            "saleendts": "2014-09-26 15:24:36",
 50            "saleschannelid": 1,
 51            "salestartts": null
 52        }
 53    ],
 54    "salestartts": "2014-09-26 15:24:36",
 55    "schedule": "20:00 support act
 5621:00 show
 5722:30 end",
 58    "seatingplaneventspecificprices": {
 59        "prices": [
 60            {
 61                "availabilities": [
 62                    true
 63                ],
 64                "position": 3,
 65                "prices": [ 25.000000 ],
 66                "pricetypeid": 1,
 67                "saleschannels": [ 1, 2 ]
 68            },
 69            {
 70                "availabilities": [
 71                    true
 72                ],
 73                "conditions": [
 74                    {
 75                        "type": "promocode",
 76                        "value": "UGENT2013"
 77                    }
 78                ],
 79                "position": 7,
 80                "prices": [ 30.000000 ],
 81                "pricetypeid": 2,
 82                "saleschannels": [ 1, 2 ]
 83            }
 84        ],
 85        "seatrankids": null
 86    },
 87    "seatingplanid": 125,
 88    "seatingplanlocktemplate": "Default",
 89    "seatingplanpricelistid": 125,
 90    "seatselection": false,
 91    "startts": "2014-09-26 15:24:36",
 92    "subtitle": "With live band",
 93    "subtitle2": "Exclusive concert",
 94    "ticketfeeid": 125,
 95    "ticketlayoutid": 125,
 96    "translations": {
 97        "nameen": "English name",
 98        "namefr": "Nom francais"
 99    },
100    "waitinglisttype": 29001,
101    "webremark": "Age will be checked at the entrance"
102}

Response

  1HTTP/1.1 200 OK
  2Content-Type: application/json
  3
  4{
  5    "id": 1269434,
  6    "name": "Bonobo Live",
  7    "audiopreviewurl": "https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg",
  8    "availability": [
  9        {
 10            "complimentary": 0,
 11            "free": 815,
 12            "locked_hard": 10,
 13            "locked_soft": 15,
 14            "reserved": 0,
 15            "sold_paid": 0,
 16            "sold_unpaid": 0,
 17            "tickettypeid": 89,
 18            "total": 840,
 19            "lastupdatets": "2015-05-29 09:21:10.38252"
 20        }
 21    ],
 22    "code": "864056970700",
 23    "contingents": [
 24        {
 25            "id": 98,
 26            "name": "Tickets",
 27            "amount": 100,
 28            "eventid": 777701,
 29            "eventspecificprices": null,
 30            "locks": [],
 31            "pricelistid": 6,
 32            "withimportedbarcodes": false
 33        }
 34    ],
 35    "currentstatus": 19001,
 36    "description": "Panda Dub, leading man of the french dub scene returns with a new show: Circle Live!",
 37    "endts": "2014-09-26 15:24:36",
 38    "externalcode": "56975647832",
 39    "image": "https://s3-eu-west-1.amazonaws.com/filestore-ticketmatic-com/test/9876/events/1234/image.jpg",
 40    "info": "Lockers available in the basement.",
 41    "locationid": 125,
 42    "locationname": "Concert hall",
 43    "maxnbrofticketsperbasket": 5,
 44    "previews": [
 45        {
 46            "type": 30002,
 47            "url": "https://www.youtube.com/watch?v=RIGgn1s3AvI"
 48        },
 49        {
 50            "type": 30002,
 51            "url": "https://www.youtube.com/watch?v=6VrqR_GfvzE"
 52        },
 53        {
 54            "type": 30003,
 55            "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"
 56        }
 57    ],
 58    "prices": {
 59        "contingents": [
 60            {
 61                "contingentid": 1,
 62                "pricetypes": [
 63                    {
 64                        "pricetypeid": 2,
 65                        "saleschannels": [
 66                            {
 67                                "costs": [
 68                                    {
 69                                        "cost": 5.000000,
 70                                        "costid": 0
 71                                    }
 72                                ],
 73                                "price": 30.500000,
 74                                "saleschannelid": 3,
 75                                "servicecharge": 1.500000,
 76                                "tickettypepriceid": 4
 77                            }
 78                        ]
 79                    }
 80                ]
 81            }
 82        ]
 83    },
 84    "productionid": 1256975647,
 85    "publishedts": "2014-09-26 15:24:36",
 86    "queuetoken": 421,
 87    "revenuesplitid": 125,
 88    "saleendts": "2014-09-26 15:24:36",
 89    "saleschannels": [
 90        {
 91            "eventid": 123,
 92            "haswaitinglist": false,
 93            "isactive": true,
 94            "saleendts": "2014-09-26 15:24:36",
 95            "saleschannelid": 1,
 96            "salestartts": null
 97        }
 98    ],
 99    "salestartts": "2014-09-26 15:24:36",
100    "schedule": "20:00 support act
10121:00 show
10222:30 end",
103    "seatingplancontingents": [
104        {
105            "id": 99,
106            "name": "Name A",
107            "amount": 50,
108            "eventid": 777702,
109            "seatrankid": 1
110        },
111        {
112            "id": 100,
113            "name": "Name B",
114            "amount": 50,
115            "eventid": 777702,
116            "seatrankid": 2
117        }
118    ],
119    "seatingplaneventspecificprices": {
120        "prices": [
121            {
122                "availabilities": [
123                    true
124                ],
125                "position": 3,
126                "prices": [ 25.000000 ],
127                "pricetypeid": 1,
128                "saleschannels": [ 1, 2 ]
129            },
130            {
131                "availabilities": [
132                    true
133                ],
134                "conditions": [
135                    {
136                        "type": "promocode",
137                        "value": "UGENT2013"
138                    }
139                ],
140                "position": 7,
141                "prices": [ 30.000000 ],
142                "pricetypeid": 2,
143                "saleschannels": [ 1, 2 ]
144            }
145        ],
146        "seatrankids": null
147    },
148    "seatingplanid": 125,
149    "seatingplanpricelistid": 125,
150    "seatselection": false,
151    "startts": "2014-09-26 15:24:36",
152    "subtitle": "With live band",
153    "subtitle2": "Exclusive concert",
154    "ticketfeeid": 125,
155    "ticketlayoutid": 125,
156    "translations": {
157        "nameen": "English name",
158        "namefr": "Nom francais"
159    },
160    "waitinglisttype": 29001,
161    "webremark": "Age will be checked at the entrance",
162    "createdts": "2014-09-26 15:24:36",
163    "lastupdatets": "2014-09-26 15:24:36"
164}

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