Content
Adds extra content fields to products, options and units.
To use this capability add ventrata/content
to your Octo-Capabilities
header.
This capability extends the Product, Option and Unit schemas to add extra content. Below is a summary of the fields that were added:
{
// ...rest of the Supplier object
"country": "US",
"destinations": [
{
"id": "b1cb75fe-299c-4f0e-8630-bcc02c1c7cd0",
"name": "San Francisco",
"country": "US",
"contact": {
"website": "https://www.example.com/san-fran",
"email": "[email protected]",
"telephone": "+447840000000",
"address": "99 Jefferson St, San Francisco, CA, USA"
},
"categories": [
{
"id": "c82fedd0-9032-45de-83cb-fbc8f05183fe",
"title": "Hop-on Hop-off Tours",
"shortDescription": "All our hop-on hop-off double decker sightseeing tours",
"coverImageUrl": "https://example.com/cover.jpg",
"bannerImageUrl": "https://example.com/banner.jpg",
"productIds": [
"3236e9d7-5001-4e92-947b-a63cc042d20c",
"789e52b2-6a61-450f-989b-5d74c6424081",
"03e43d66-d005-4814-9bcd-abab4bef4d05",
"f0065abc-77e0-4c13-bbd6-4385000f3e75"
]
},
{
"id": "7e226b54-f15c-4418-b3c5-8d57772df893",
"title": "Attraction Tickets",
"shortDescription": "All our hop-on hop-off double decker sightseeing tours",
"coverImageUrl": "https://example.com/cover.jpg",
"bannerImageUrl": "https://example.com/banner.jpg",
"productIds": [
"fa20b40b-a17b-4273-b63b-40211753d07b",
"8df3ad36-dc23-4a8e-8616-13e59816d502",
"adb54d3c-f7f6-44b3-b33b-153b6ac0b7cc"
]
}
]
},
{
"id": "f9d97f82-e797-4642-84f1-c4f25222cac2",
"name": "New York",
"country": "US",
"contact": {
"website": "https://www.example.com/nyc",
"email": "[email protected]",
"telephone": "+447840000000",
"address": "117 West St, New York, NY 10006, USA"
},
"categories": [
{
"id": "c82fedd0-9032-45de-83cb-fbc8f05183fe",
"title": "Hop-on Hop-off Tours",
"shortDescription": "All our hop-on hop-off double decker sightseeing tours",
"coverImageUrl": "https://example.com/cover.jpg",
"bannerImageUrl": "https://example.com/banner.jpg",
"productIds": [
"e1911cba-7a09-466c-a429-2dc49a57f717",
"6d095658-1ea9-43e5-97db-0cae0d38a5a5",
"03e731fb-1740-4d6a-80a1-c4aa7810cf76",
"1c5b8fce-6423-41f4-a8c3-3a5887ad223d",
"ff8919af-69da-4d83-bad7-40882ee1ed2a"
]
},
{
"id": "7e226b54-f15c-4418-b3c5-8d57772df893",
"title": "Attraction Tickets",
"shortDescription": "All our hop-on hop-off double decker sightseeing tours",
"coverImageUrl": "https://example.com/cover.jpg",
"bannerImageUrl": "https://example.com/banner.jpg",
"productIds": [
"99ba5af6-71cc-4c1f-ac96-8f07d02c2ee0",
"fc4559cd-018a-438a-a7c4-6c2cdd0f945a",
"80150865-de34-4cf7-a7b2-fd0b66feac4e",
"772ab190-d49b-4971-8399-794cdcdb2bde",
"2adb0466-3804-43ea-8bf8-42683dd7e16b",
"ddecce88-6948-46e3-a2c0-755071fd1950"
]
}
]
},
]
}
The content provided by this endpoint belongs to the supplier, so please make sure you have their express permission before using it online.
All fields should be self explanatory based on their name, with the exception of options.itinerary
which is defined by:
Field
Description
itinerary.type
This is an enum field with one of the following values:
START
The starting/meeting location
POI
A point of interest that's visited en-route
EVENT
A event that happens e.g. "Lunch" or "Shopping Break"
END
The ending/final location
itinerary.travelTime
The travel time to get to this location
itinerary.duration
How much time is spent on this itinerary item
Products
GET
https://api.ventrata.com/octo/products
This capability extends the GET /products endpoint described here to allow you to pass a destinatonId which will filter the list of products returned by that destination.
Query Parameters
destinationId
string
The destination ID you want to filter the product list by,
... the list of products in that destination
Last updated
Was this helpful?