Skip to main content

Create a season

Rate limits

This endpoint does not belong to the priority lane. Do not use it within your ticket sales flow.

POST https://api-{region}.seatsio.net/seasons

Request

// with event keys to create (those events should not yet exist)
{
"chartKey": "4250fffc-e41f-c7cb-986a-2c5e728b8c28",
"key": "aSeason",
"eventKeys": ["event1", "event2"],
"tableBookingConfig": {
"mode": "CUSTOM",
"tables": { "T1": "BY_TABLE", "T2": "BY_SEAT" }
},
"forSaleConfig": {
"forSale": false,
"objects": ["section1", "section2"],
"areaPlaces": {"GA1": 3},
"categories": ["eventCategory1", "eventCategory2"]
}
}

// with number of events
{
"chartKey": "4250fffc-e41f-c7cb-986a-2c5e728b8c28",
"key": "aSeason",
"numberOfEvents": 2,
"tableBookingConfig": {
"mode": "CUSTOM",
"tables": { "T1": "BY_TABLE", "T2": "BY_SEAT" }
}
}
  • chartKey: chart key to which the season will be linked. Required.

  • key: the key of the season. This is the unique identifier of the season in your own database. Optional, if you don't pass in your own season key, Seats.io will generate one.

  • name: a user-friendly name for the season. Optional.

  • eventKeys: array of event keys for events that belong to the season. Those will be created automatically - the events should net yet exist. Cannot be used in combination with numberOfEvents.

  • numberOfEvents: number of events in the season. Those will be created automatically, with random keys. Cannot be used in combination with eventKeys.

  • tableBookingConfig: optional. When not passed in, the season inherits the table booking settings defined on the chart. mode can either be:

    • INHERIT: table booking settings are inherited from the chart (which is the default behavior)
    • CUSTOM: when using this mode, you can pass in a tables object to override the table booking settings of the chart for some tables. The tables object has table labels as its keys, and BY_TABLE or BY_SEAT as values.
    • ALL_BY_SEAT: for this season, all tables are bookable by seat
    • ALL_BY_TABLE: for this season, all tables are bookable as a whole
  • channels: optional list of channels

  • objectCategories allows you to override the categorization (as defined on the chart) of specific objects.

  • categories allows you to specify extra categories on the event level, not present on the chart. You can use these categories in the objectCategories map mentioned above.

  • forSaleConfig: an optional for-sale configuration

  • forSalePropagated: a boolean that indicates whether to propagate for sale configs across the season. If set to true (the default), an object that's not for sale on the season is also not for sale on all events within that season (and vice-versa).

Example request

curl https://api-{region}.seatsio.net/seasons \
-u aSecretKey: -X POST -H 'Content-Type: application/json' -d '{"chartKey": "4250fffc-e41f-c7cb-986a-2c5e728b8c28"}'

Response

{
"id": 169,
"eventKey": "aSeason",
"tableBookingConfig": {
"mode": "CUSTOM",
"tables": { "T1": "BY_TABLE", "T2": "BY_SEAT" }
},
"supportsBestAvailable": true,
"createdOn": "2017-05-05T10:58:44.715Z",
"events": [
{
"id": 170,
"key": "event1",
...
},
...
],
"categories": [
{ "key": 1, "label": "Category 1", "color": "#aaaaaa", "accessible": true},
{ "key": 2, "label": "Category 2", "color": "#bbbbbb", "accessible": false}
],
"partialSeasonKeys": [],
"isSeason": true,
"isTopLevelSeason": true,
"isPartialSeason": false,
"isEventInSeason": false,
"forSaleConfig": {
"forSale": false,
"objects": ["section1", "section2"],
"areaPlaces": {"GA1": 3},
"categories": ["eventCategory1", "eventCategory2"]
}
}