Organizer repertoire

The following Public API route is intended to retrieve organizer repertoire by organizer unique identifier,  please ensure you have fulfilled the required prerequisites before using this endpoint.

Prerequisites

  • Organizer unique identifier

Call

GET https://www.piletitasku.ee/api/organizer/{your-organizer-unique-identifier}/repertoire

*Please replace {your-organizer-unique-identifier} with an actual value

Response

Please treat all response data types as is, unless footnote is specified with additional information about the data type.

For example:

  • "id": 12345 - treat it as a number
  • "id": 12345 //*.key seek information about the data type at the bottom of this section

JSON Array of events

[
  {
    "id": 12345,
    "urls": {
      "lv": "https://www.piletitasku.ee/et/event/12345",
      "en": "https://www.piletitasku.ee/en/event/12345",
      "ru": "https://www.piletitasku.ee/ru/event/12345" 
    },
    "dateTime": "YYYY-MM-DDThh:mm:ss", //*.dateTime
    "sales": {
      "start": "YYYY-MM-DDThh:mm:ss", //*.sales.start
      "end": "YYYY-MM-DDThh:mm:ss" //*.sales.end
    },
    "organizer": {
      "id": 12,
      "name": "Example organizer",
      "urls": {
        "lv": "https://www.piletitasku.ee/et/organizer/12",
        "en": "https://www.piletitasku.ee/en/organizer/12", 
        "ru": "https://www.piletitasku.ee/ru/organizer/12"
      },
      "registrationNumber": "123456789",
      "externalUrl": "http://example.com" //*.organizer.externalUrl
    },
    "performance": {
      "id": 1234,
      "urls": {
        "lv": "https://www.piletitasku.ee/et/performance/1234",
        "en": "https://www.piletitasku.ee/en/performance/1234",
        "ru": "https://www.piletitasku.ee/ru/performance/1234"
      },
      "titles": {
        "lv": "Example performance",
        "ru": "Example performance",
        "en": "Example performance"
      }
    },
    "hall": {
      "id": 321,
      "address": "Rīga, Duntes iela 3",
      "titles": {
        "lv": "Example hall",
        "ru": "Example hall",
        "en": "Example hall"
      }
    },
    "venue": {
      "id": 21,
      "urls": {
        "lv": "https://www.piletitasku.ee/et/location/21",
        "en": "https://www.piletitasku.ee/en/location/21",
        "ru": "https://www.piletitasku.ee/ru/location/21"
      },
      "titles": {
        "lv": "Example venue",
        "ru": "Example venue",
        "en": "Example venue"
      },
      "geo": { // *.venue.geo
        "lat": 90, //*.venue.geo.lat
        "long": 0 //*.venue.geo.long
      }
    },
    "prices": [
      {
        "price": 10, //*.prices.*.price
        "count": 0,
        "types": [ "seat", "entrance"] //*.prices.*.types
      }
    ]
  },
  ...
]

*.dateTime, *.sales.start, *.sales.end - string, date formatted in ISO 8601 format YYYY-MM-DDThh:mm:ss, for example 2020-12-31T23:59:59

*.organizer.externalUrl - string|null - If organizer url is not present this key will be null

*.venue.geo - Object|null, if venue has not specified latitude and/or longitute instead of object "geo" key will be null

*.venue.geo.lat, *.venue.geo.long, *.prices.*.price - number, should be treated as floating point

*.prices.*.types - array of available ticket types for price, possible values "seat", "entrance"