Self-Service Mapping
Send a list of listings to get the supplier to map them themselves
To use this capability, add octo/mappings to your Octo-Capabilities header.
This capability allows resellers to send a "mapping sheet" of products that you need to map. This is then given to the supplier in a user-friendly form, so they can select which product each item maps to in their Ventrata system.
Once the mapping has been set, a webhook URL is called to notify your system of the change.
The mapping endpoints to be exposed by the Reseller System are:
Gets the current state of all mappings for the connection.
Filter by one mapped option ID (DEFAULT supported).
94cdd032-3d32-416d-b0a4-abf8b7495b8bFilter by one reseller reference.
RES-BOOK-10045Filter by reseller status.
CONFIRMEDFilter by one mapped product ID.
e7cc8bb4-8d1c-4848-8824-5dbedb718681Filter by multiple mapped product IDs.
[{"id":"89fe0192-ddcd-430a-b285-e1396a4725d2","title":"Sample"}]Filter by multiple mapped option IDs (DEFAULT supported).
[{"id":"89fe0192-ddcd-430a-b285-e1396a4725d2","title":"Sample"}]Returns an array of mapping rows.
From capability octo/mappings.
Reseller reference value.
RES-BOOK-10045Reseller status value.
CONFIRMEDReseller product value.
grand-canyon-day-tourProduct identifier.
e7cc8bb4-8d1c-4848-8824-5dbedb718681Option identifier.
94cdd032-3d32-416d-b0a4-abf8b7495b8bUnit identifier.
unit_adultWhether option required is enabled.
trueWhether unit required is enabled.
trueValidity days numeric value.
2Webhook url URL.
https://www.city-sightseeing.comGET /octo/mappings?optionId=text HTTP/1.1
Host: api.ventrata.com
Accept: */*
Returns an array of mapping rows.
[
{
"resellerReference": "RES-BOOK-10045",
"resellerStatus": "CONFIRMED",
"resellerProduct": "grand-canyon-day-tour",
"productId": "e7cc8bb4-8d1c-4848-8824-5dbedb718681",
"optionId": "94cdd032-3d32-416d-b0a4-abf8b7495b8b",
"unitId": "unit_adult",
"optionRequired": true,
"unitRequired": true,
"validityDays": 2,
"webhookUrl": "https://www.city-sightseeing.com"
}
]Send the complete list of mappings for this connection.
The request upserts by resellerReference and removes any existing mappings not included in the payload.
Returns the updated mapping rows.
From capability octo/mappings.
Reseller reference value.
RES-BOOK-10045Reseller status value.
CONFIRMEDReseller product value.
grand-canyon-day-tourProduct identifier.
e7cc8bb4-8d1c-4848-8824-5dbedb718681Option identifier.
94cdd032-3d32-416d-b0a4-abf8b7495b8bUnit identifier.
unit_adultWhether option required is enabled.
trueWhether unit required is enabled.
trueValidity days numeric value.
2Webhook url URL.
https://www.city-sightseeing.comPUT /octo/mappings HTTP/1.1
Host: api.ventrata.com
Content-Type: application/json
Accept: */*
Content-Length: 354
{
"mappings": [
{
"resellerReference": "RES-BOOK-10045",
"resellerStatus": "CONFIRMED",
"resellerProduct": "grand-canyon-day-tour",
"productId": "e7cc8bb4-8d1c-4848-8824-5dbedb718681",
"optionId": "94cdd032-3d32-416d-b0a4-abf8b7495b8b",
"unitId": "unit_adult",
"optionRequired": true,
"unitRequired": true,
"validityDays": 2,
"webhookUrl": "https://www.city-sightseeing.com"
}
]
}Returns the updated mapping rows.
[
{
"resellerReference": "RES-BOOK-10045",
"resellerStatus": "CONFIRMED",
"resellerProduct": "grand-canyon-day-tour",
"productId": "e7cc8bb4-8d1c-4848-8824-5dbedb718681",
"optionId": "94cdd032-3d32-416d-b0a4-abf8b7495b8b",
"unitId": "unit_adult",
"optionRequired": true,
"unitRequired": true,
"validityDays": 2,
"webhookUrl": "https://www.city-sightseeing.com"
}
]Body must be a JSON array of mapping rows.
See the PUT /mappings operation above for request schema examples.
resellerReference is required on each item. Items are upserted by resellerReference, and any existing mappings not included in the array are removed.
Whenever a product in your system for this supplier has been changed, updated or deleted, you should repeat this request with all mappings. PUT synchronizes the full set for the connection.
After you make the request and new mappings are added, Ventrata sends a notification to the supplier to complete them.
Once the supplier chooses a product and option for a mapping, Ventrata sends a POST request to the URL provided in webhookUrl for that mapping row. The webhook body follows the mapping object schema and includes resolved productId, optionId, and unitId values.
The unitId and optionId will be null in the webhook request body if we set unitRequired and optionRequired to false respectively on the original mappings request.
Your response to this request must be 2XX (for example 200 OK), otherwise we retry until we receive a 2XX response.
Query Parameters
If both productId and productIds[] are provided, productId is used. If both optionId and optionIds[] are provided, optionId is used. Use repeated query keys for arrays, for example productIds[]=id1&productIds[]=id2. DEFAULT on optionId/optionIds[] filters for mappings without a stored option.
optionId and unitId may be null when no mapping has been selected yet, or when optionRequired / unitRequired is false.
Booking and Availability Responses
When this capability is enabled, booking and availability responses include a mappings field. The array contains mappings for the response product/option combination.
Booking responses include
booking.mappings.Availability responses include
availability[].mappings.
Each mappings[] item uses the same schema as the mappings list response.
Schema Additions (JSON)
These are additive fragments showing only fields introduced by this capability.
Availability
AvailabilityBatchRow
Booking
MappingUpsertRequest
PackageAvailability
Last updated