Prices
Prices in the API are included in two different ways:
Within the
imin:aggregateOffer
object (included in the search results andBy-ID
results); andWithin
subEvent[].offers
array (only included in theBy-ID
results).
Prices and imin:aggregateOffer
imin:aggregateOffer
The imin:aggregateOffer
object, which is included in both the search results and By-ID
results, includes the two most popular price types (where they are included in the open data): adult and junior.
The API search results will not include an offers
array. This can only be found in subEvent[].offers
in the By-ID
search results.
Example
We recommend using the imin:aggregateOffer
object within the search results when you want to show the most common prices to your end user after an initial frontend search. If a person wants to know more about a particular session and any associated concessionary prices, then you can use the By-ID
search to present the prices included within subEvent[].offers
(see below).
Prices and subEvent[].offers
subEvent[].offers
The subEvent[].offers
array, which is only included in the By-ID
results, includes all the price types available within a provider's open data feed, including concessionary prices.
Some objects will include an offers[].ageRange
object, which will provide age restrictions against a particular concessionary price, for example, a price for seniors might have an ageRange
with a minValue
of 50.
Example
Last updated