Promotions / Offers
Adds the ability to apply offer codes, automatic public offers, comparisons, and combination discounts
To use this capability, add octo/offers to your Octo-Capabilities header.
This capability depends on octo/pricing.
Related capabilities:
octo/cartis required forofferCombinationson order responses.octo/giftsis required for gift offer endpoints/fields.octo/extrasis required for offer fields onextraItems.
All routes below are under the /octo prefix.
The offers capability lets you apply promotion codes to bookings/gifts, automatically apply eligible public offers, return upsell comparisons, and return discounted product combinations.
Combination Product Discovery
This capability extends product routes documented in Products:
GET /productsGET /products/{productId}
When offerCode is a combination code (combination_<...>), product scope is expanded to include the combination target product, so you can fetch product/options/availability for that target using the same code.
Offer Object
The same offer object is used in:
offers[]andofferon availability responsesofferandoffers[]on booking/gift/extra-item responsesofferinofferCombinations[]
List supplier promotions serialized as offer objects.
Successful response
From capability octo/offers.
Unique identifier for this resource.
89fe0192-ddcd-430a-b285-e1396a4725d2List of tag values.
["vip","partner"]Public title of the offer.
Summer PromotionDiscount label shown to customers.
Save 20%Offer code identifier.
SUMMER25Offer description shown to the customer.
20% off selected departures this month.How the discount is applied to net pricing.
FULLPossible values: Whether the offer is currently usable in the given context.
trueReason the offer cannot be applied in the current context.
Offer is not valid for the selected date.GET /octo/offers HTTP/1.1
Host: api.ventrata.com
Accept: */*
Successful response
[
{
"id": "89fe0192-ddcd-430a-b285-e1396a4725d2",
"tags": [
"vip",
"partner"
],
"title": "Summer Promotion",
"label": "Save 20%",
"code": "SUMMER25",
"description": "20% off selected departures this month.",
"netDiscount": "FULL",
"restrictions": {
"minUnits": 1,
"maxUnits": 10,
"minTotal": 0,
"maxTotal": 50000,
"unitIds": [
"3d6f0a3a-59d4-4b16-a0c5-11d2d8a4e6b7",
"6b65fd83-4a1f-4744-8f4a-c24d8d770f29"
]
},
"usable": true,
"unusableReason": "Offer is not valid for the selected date.",
"membershipBenefit": {
"id": "e7cc8bb4-8d1c-4848-8824-5dbedb718681",
"title": "Summer Promotion",
"description": "Morning departure with central pickup included."
}
}
]Pricing Field Added By Offers
Offers adds offerDiscount to pricing fragments emitted through pricing serializers, including:
availability
pricing/pricingFromavailability
unitPricing[]/unitPricingFrom[]booking/gift/order
pricingunit item / purchase item / extra item
pricing
Get Available Offers
This capability extends availability routes documented in Availability:
POST /availabilityPOST /availability/calendarPOST /availability/batchPOST /availability/calendar/batch
Response Additions Per Availability Object
If no offerCode is sent, new booking/gift flows auto-select the first eligible public offer.
Discount Booking
Offer code can be sent on these booking write routes:
POST /bookingsPATCH /bookings/{uuid}POST /bookings/{uuid}/confirm
Base booking schema: Bookings.
It can also be sent inside order payloads on:
bookings[].offerCodeinPOST /orders,PATCH /orders/:orderId,PATCH /orders/:orderId/preview,POST /orders/:orderId/confirm
Booking Response Additions
These fields are present on any serialized booking response, including:
GET /bookings/{uuid}GET /bookingsbooking write responses
bookings embedded in serialized order responses
Product Comparisons
Comparisons are exposed on serialized booking objects from base booking routes (see Bookings).
offerComparisons[] is returned on booking objects (including booking responses embedded in order responses).
Comparisons are returned only for persisted, active, standalone, non-combination bookings; otherwise the field is [].
Product Combinations
Combinations are exposed on serialized order objects from base cart routes (see Multi-Booking Cart).
Combinations are returned on order objects as offerCombinations[] (requires octo/cart). They are also present on other order responses that serialize an order (POST/PATCH /orders, GET /orders, etc.).
To apply a combination, create/update a booking with the returned offerCode and matching productId/optionId.
Gift Offers
Requires octo/gifts.
Offer code can be sent on:
POST /giftsPATCH /gifts/{uuid}PATCH /gifts/{uuid}/previewPOST /gifts/{uuid}/confirmgifts[].offerCodein order create/update payloads
These fields are present on:
GET /gifts/{uuid}GET /giftsgift write responses
gifts embedded in serialized order responses
offerCodeofferTitleofferComparisons(always[])offerIsCombination(alwaysfalse)offeroffers[]pricing.offerDiscount
Base gift schema: Gift Vouchers.
Extra Item Offers
Requires octo/extras.
Each serialized extra item (booking.extraItems[] and booking.unitItems[].extraItems[]) includes:
offerCodeofferTitleofferComparisons(always[])offerIsCombination(alwaysfalse)offeroffers[]pricing.offerDiscount
List supplier promotions serialized as offer objects.
Successful response
From capability octo/offers.
Unique identifier for this resource.
89fe0192-ddcd-430a-b285-e1396a4725d2List of tag values.
["vip","partner"]Public title of the offer.
Summer PromotionDiscount label shown to customers.
Save 20%Offer code identifier.
SUMMER25Offer description shown to the customer.
20% off selected departures this month.How the discount is applied to net pricing.
FULLPossible values: Whether the offer is currently usable in the given context.
trueReason the offer cannot be applied in the current context.
Offer is not valid for the selected date.GET /octo/offers HTTP/1.1
Host: api.ventrata.com
Accept: */*
Successful response
[
{
"id": "89fe0192-ddcd-430a-b285-e1396a4725d2",
"tags": [
"vip",
"partner"
],
"title": "Summer Promotion",
"label": "Save 20%",
"code": "SUMMER25",
"description": "20% off selected departures this month.",
"netDiscount": "FULL",
"restrictions": {
"minUnits": 1,
"maxUnits": 10,
"minTotal": 0,
"maxTotal": 50000,
"unitIds": [
"3d6f0a3a-59d4-4b16-a0c5-11d2d8a4e6b7",
"6b65fd83-4a1f-4744-8f4a-c24d8d770f29"
]
},
"usable": true,
"unusableReason": "Offer is not valid for the selected date.",
"membershipBenefit": {
"id": "e7cc8bb4-8d1c-4848-8824-5dbedb718681",
"title": "Summer Promotion",
"description": "Morning departure with central pickup included."
}
}
]Returns paginated supplier promotions serialized as the offer object above.
GET /offers returns supplier promotions sorted by position. Usability in this endpoint is not availability-specific; contextual usability is returned on availability/booking/gift/extra responses.
Schema Additions (JSON)
These are additive fragments showing only fields introduced by this capability.
Availability
AvailabilityBatchRequest
AvailabilityBatchRow
AvailabilityCalendar
AvailabilityCalendarBatchRequest
AvailabilityCalendarBatchRow
AvailabilityCalendarRequest
AvailabilityRequest
Booking
BookingUnitItem
BookingWriteRequest
ExtraPricing
Gift
GiftCreateRequest
Money
Offer
Order
OrderUpdateRequest
PackageAvailability
Pricing
UnitPricing
Last updated