Extras
Extras are up-sell items that can be added to unit items
To use this capability add octo/extras
to your Octo-Capabilities
header.
Extras are up-sell items that can be added to unit items. An example of an extra could be a "Lunch Package" or a "Fast Track Entrance".
Product Extras
GET
https://api.ventrata.com/octo/products/:id
Extra items must be purchased within a unit item, therefore a list of available extras will be contained within the unit object, like so:
The example above includes the octo/pricing
and octo/content
capabilities which will add the pricing
and pricingFrom
keys to the response. The values will be identical to the pricing fields on unit
so read the documentation on the pricing capability to learn more.
id
The ID of the extra
internalName
The internal name of the extra
title
The public title of the extra.
This is provided by the octo/content
capability.
description
The public description of the extra.
This is provided by the octo/content
capability.
reference
The internal reference/SKU
restrictions.minQuantity
The minimum quantity that can be bought of this extra per unit item.
restrictions.maxQuantity
The maximum quantity that can be bought of this extra per unit item. If this value is 1 then it can only be bought once per unit item.
pricingFrom
/ pricing
Extras don't require vacancies and aren't affected by availability, so any extra you see on the product can be purchased without needing to check availability.
Extra Availability
POST
https://api.ventrata.com/octo/availability
Extras themselves don't require availability as they belong to units that do, however you may find it helpful to query extras as part of an availability request to get total pricing. For example:
Which shows how 2 adult tickets with 2 extras are queried. When used with the pricing capability this would result in the following:
Booking Reservation
POST
https://api.ventrata.com/octo/bookings
The uuid
and resellerReference
fields are optional and you can include as many extras (even the same extra more than once - if it's allowed) to the unit item.
The unit item object will contain the extraItems
array which will look like this:
When using the octo/pricing
capability, the pricing of the unit item will always include the sum of the extra items that it has.
Last updated