Developer portal

System API

Get Countries

related DTO

GET /System/Countries

Returns all Countries

Request

URI
GET https://api.londontheatredirect.com/rest/v2/System/Countries
Request Headers
Api-Key: [YOUR API KEY]
Content-Type: application/json
Variables

No variables required

Response

Name Data type Additional information
Countries Collection of Country contains country information
{
  "Countries": [
    {
      "CountryId": 1,
      "CountryName": "Andorra",
      "Ordering": 100,
      "ISO3166": "AD"
    },
    {
      "CountryId": 2,
      "CountryName": "United Arab Emirates",
      "Ordering": 100,
      "ISO3166": "AE"
    },
    {
      "CountryId": 3,
      "CountryName": "Afghanistan",
      "Ordering": 100,
      "ISO3166": "AF"
    },
    {
      "CountryId": 4,
      "CountryName": "Antigua & Barbuda",
      "Ordering": 100,
      "ISO3166": "AG"
    },
	...
    {
      "CountryId": 237,
      "CountryName": "Zimbabwe",
      "Ordering": 100,
      "ISO3166": "ZW"
    },
    {
      "CountryId": 238,
      "CountryName": "Serbia",
      "Ordering": 100,
      "ISO3166": "RS"
    },
    {
      "CountryId": 241,
      "CountryName": "Curaçao",
      "Ordering": 100,
      "ISO3166": "CW"
    }
  ]
}

Get US States

related DTO

GET /System/USStates

Returns all US states

Request

URI
GET https://api.londontheatredirect.com/rest/v2/System/USStates
Request Headers
Api-Key: [YOUR API KEY]
Content-Type: application/json
Variables

No variables required

Response

Name Data type Additional information
USStates Collection of USState contains US state information
{
  "USStates": [
    {
      "StateId": 1,
      "StateName": "Alabama",
      "StateCode": "AL"
    },
    {
      "StateId": 2,
      "StateName": "Alaska",
      "StateCode": "AK"
    },
    {
      "StateId": 3,
      "StateName": "Arizona",
      "StateCode": "AZ"
    },
    {
      "StateId": 4,
      "StateName": "Arkansas",
      "StateCode": "AR"
    },
    {
      "StateId": 5,
      "StateName": "California",
      "StateCode": "CA"
    },
    {
      "StateId": 6,
      "StateName": "Colorado",
      "StateCode": "CO"
    },
	...
    {
      "StateId": 65,
      "StateName": "Virgin Islands",
      "StateCode": "VI"
    }
  ]
}

Get Event Types

related DTO

GET /System/EventTypes

Returns all Event types

Request

URI
GET https://api.londontheatredirect.com/rest/v2/System/EventTypes
Request Headers
Api-Key: [YOUR API KEY]
Content-Type: application/json
Variables

No variables required

Response

Name Data type Additional information
EventTypes Collection of EventType collection of event type information
{
  "EventTypes": [
    {
      "EventTypeId": 1,
      "EventTypeName": "Musical"
    },
    {
      "EventTypeId": 2,
      "EventTypeName": "Play"
    },
    {
      "EventTypeId": 3,
      "EventTypeName": "Attraction"
    },
    {
      "EventTypeId": 4,
      "EventTypeName": "Ballet & Dance"
    },
    {
      "EventTypeId": 5,
      "EventTypeName": "Opera"
    },
    {
      "EventTypeId": 6,
      "EventTypeName": "Comedy"
    },
    {
      "EventTypeId": 7,
      "EventTypeName": "Drama"
    }
	...
  ]
}

Get Delivery Types

related DTO

GET /System/DeliveryTypes

Returns all Delivery types

Request

URI
GET https://api.londontheatredirect.com/rest/v2/System/DeliveryTypes
Request Headers
Api-Key: [YOUR API KEY]
Content-Type: application/json
Variables

No variables required

Response

Name Data type Additional information
DeliveryTypes Collection of DeliveryType collection of delivery type information
{
  "DeliveryTypes": [
    {
      "DeliveryTypeId": 1,
      "DeliveryTypeName": "Box Office Collection",
      "DeliveryTypePrice": 1
    }
  ]
}

Get Ticket plan price

related DTO

GET /TicketPlanPrice

Returns price of TicketPlan refund protection

Request

URI
GET https://api.londontheatredirect.com/rest/v2/TicketPlanPrice
Request Headers
Api-Key: [YOUR API KEY]
Content-Type: application/json
Variables

No variables required

Response

Name Data type Additional information
Price Decimal ticket plan price
{
  "Price": 2.5
}

Get web service availability

GET /System/HeartBeat

Returns true if the web services are available

Request

URI
GET https://api.londontheatredirect.com/rest/v2/System/HeartBeat
Request Headers
Api-Key: [YOUR API KEY]
Content-Type: application/json
Variables

No variables required

Response

Data type Additional information
Boolean if web service is available
{
  true
}