Search for availability and price for a set of bookable products based on a search specification. Consumption of bookable products will start at some time and continue for a duration. The search specification allows for specifying a time interval for when consumption can start. The duration is of consumption is always specified as a fixed value in the search specification.
Returns a quotation containing information about availability and price for products satisfying the search specification. The returned quotation is valid for a limited period if time, and the response contains the expiration time for the quotation. When the expiration time has passed the client should redo the availability search to ensure that always valid information can be presented to the user.
The response can optionally be paginated through the page and maxresults parameters. The default value for
page returns the first result page. The default value for maxresults returns all results. page can
be set to the value returned in the nextpage property of the response to retrieve the next page of results. There
is no guarantee that maxpage results will be returned even if a sufficient number of items are remaining. The
nextpage property is not present in the response for the last result page.
This method supports grouping of products. Groping is enabled by specifying at least one attribute name in the
GroupProducts field. All products with identical product category and identical values for all of these attributes will be
grouped together. In the response the grouped products will be represented by a single product and one availability map entry
per requested price and start date for consumption. The product returned will only contain the category identifier and the values
of the grouping attributes. Grouping is not supported if pagination is used.
| page | string Token indicating the result page to retrieve, default is first page |
| maxresults | integer <int32> Maximum number of availabilities to return for a result page |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Availability search specification
| productCategoryId required | string <uuid> Products in this category will be considered for a match |
| searchFrom required | string <date-time> non-empty Matching products must be available to start consumption on or after this time |
| searchTo required | string <date-time> non-empty Matching products must be available to start consumption before this time |
| productId | string or null <uuid> Restrict availability search to a specific product. |
| parentProductId | string or null <uuid> Deprecated Obsolete property, do not use |
| parentQuotationId | string or null <uuid> Deprecated Obsolete property, do not use |
| durationCount | integer or null <int32> Used to indicate the length of stay. Size of DurationCount is defined by DurationIncrement, making it possible to book 2 days or 2 hours. |
required | object (AttributeSearchSpecification) Contains search specifications we need to get the correct products. Attributes defined will be used to filter products in commerce as well as in the adapter layer. |
object (GroupAvailability) Specification of how availability should be grouped in the response |
{- "productCategoryId": "1e32231d-b8a1-4145-b539-820301c2af64",
- "searchFrom": "2019-08-24T14:15:22Z",
- "searchTo": "2019-08-24T14:15:22Z",
- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
- "parentProductId": "1ffe8af3-a0f6-480d-b0be-350ab24a5fb9",
- "parentQuotationId": "4261cdd9-02fd-4d98-9a4a-c018d49e36f7",
- "durationCount": 0,
- "searchSpecification": {
- "limitedInformationMode": true,
- "consumerAttributes": [
- {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string",
- "comparisonType": "Equals"
}
]
}
], - "productAttributes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "attributes": [
- {
- "name": "string",
- "value": "string",
- "comparisonType": "Equals"
}
], - "consumerIds": [
- 0
], - "prices": [
- [
- {
- "name": "string",
- "value": "string",
- "comparisonType": "Equals"
}
]
]
}
], - "products": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "attributes": [
- {
- "name": "string",
- "value": null,
- "comparisonType": "Equals"
}
], - "consumerIds": [
- 0
], - "prices": [
- [
- {
- "name": "string",
- "value": "string",
- "comparisonType": "Equals"
}
]
]
}
], - "defaultCurrency": "string",
- "filterQuery": "string",
- "availabilityAttributes": {
- "priceGroups": [
- {
- "code": "string",
- "name": "string",
- "minAge": 0,
- "maxAge": 0,
- "quantity": 0,
- "type": "string"
}
], - "routes": [
- {
- "departureLocationCode": "string",
- "departureLocationName": "string",
- "arrivalLocationCode": "string",
- "arrivalLocationName": "string",
- "allowRoundtrip": true,
- "allowOneWay": true
}
]
}
}, - "groupBy": {
- "attributes": [
- "string"
]
}
}Fetches the full package definition by ID, maps the itinerary into a bulk availability request and returns availability results for every itinerary item.
The caller only needs to supply the package ID, the trip start date, consumer attributes, and a category map that resolves itinerary category names (e.g. "Accommodation", "Activity") to the product category GUIDs used by the availability service. The complex bulk request structure is built server-side.
Accommodation items produce a one-day check-in window search with a duration equal to the number of nights derived from the itinerary DateOffset. Activity items use a single-day window with duration 1.
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Package search specification
| packageId required | string <uuid> Identifier of the package to search availability for. |
| packageStartDate required | string <date-time> The start date of the trip (i.e. the date of day 1 in the itinerary). |
| packageEndDate | string or null <date-time> The end date of the package. Only used when Commerce.Commerce.Controllers.DTO.Availability.PackageSearchRequest.LimitedInformationMode is true. When provided in limited mode, each item's availability is searched using the package start and end dates with a duration count of 1. |
| limitedInformationMode | boolean When true, individual item availability requests are simplified: all items use the package start date, package end date (if provided), and a duration count of 1. Defaults to false. |
Array of objects or null (Consumer) Consumer attributes applied to each availability search item. | |
| defaultCurrency | string or null Currency code used for all availability searches. Defaults to "EUR". |
| maxParallelism | integer or null <int32> Maximum number of concurrent availability searches. Defaults to 2. |
{- "packageId": "471cc1d4-ec27-4504-b7c2-949af95662bc",
- "packageStartDate": "2019-08-24T14:15:22Z",
- "packageEndDate": "2019-08-24T14:15:22Z",
- "limitedInformationMode": true,
- "consumerAttributes": [
- {
- "id": 0,
- "attributes": [
- {
- "name": "string",
- "value": "string",
- "comparisonType": "Equals"
}
]
}
], - "defaultCurrency": "string",
- "maxParallelism": 0
}The shape of the response depends on which filters are supplied:
productId and discountId both set: returns a single assignment, or 404 if no such assignment exists.productId only: returns an array of assignments for that product, or 404 if none exist.supplierId only: returns an array of assignments for that supplier, or 404 if none exist.discountId only: returns an array of assignments for that discount (200 with an empty array if none exist).pageNumber/pageSize). Note that totalCount in this envelope reflects
the number of items on the current page, not the total row count across all pages.Authentication: No OAuth token is required for this endpoint; the gateway subscription key still is.
| productId | string <uuid> Optional. Filter assignments by product identifier. |
| supplierId | string <uuid> Optional. Filter assignments by supplier identifier. |
| discountId | string <uuid> Optional. Filter assignments by discount identifier. |
| includeDisabled | boolean Default: true Optional. When true (default), includes inactive/disabled discounts. |
| pageNumber | integer <int32> Default: 1 Optional. Page number for pagination (1-based). Only used when no productId, supplierId or discountId filter is supplied. Default is 1. |
| pageSize | integer <int32> Default: 50 Optional. Number of items per page. Only used when no productId, supplierId or discountId filter is supplied. Default is 50, max is 100. |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Ties in the updated date are broken by identifier. page is an opaque cursor token; pass the nextPage value
returned by a previous response to retrieve the next page. nextPage is only present in the response when the
returned page is full (i.e. contains maxresults items), and is absent on the last page.
Authentication: No OAuth token is required for this endpoint; the gateway subscription key still is.
| from | string <date-time> Optional. Only return assignments updated or created on or after this date. |
| page | string Optional. Cursor token from the previous response's nextPage field. Omit to retrieve the first page. |
| maxresults | integer <int32> Default: 50 Optional. Maximum number of results per page. Default 50, max 100. |
| discountType | string (DiscountType) Enum: "Atomic" "PromoCode" Optional. Filter assignments by the parent discount's type (Atomic for direct discounts, PromoCode for promo-code discounts). The filter is encoded into the returned nextPage cursor, so it stays in effect on later pages even if this parameter is omitted from the follow-up request. When omitted on the first page, both types are returned. |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
| page | integer <int32> Default: 1 |
| pageSize | integer <int32> Default: 50 |
| keywords | string |
| numberOfDays | integer <int32> |
| numberOfHotels | integer <int32> |
| numberOfActivities | integer <int32> |
| isActive | boolean |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
| id required | string <uuid> |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Returns a single product category related to the supplied id.
| id required | string <uuid> Category identifier. |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Get all products, optionally filtered by a product category.
Results can optionally be paginated by specifying the page and maxresults parameters. The default valye for
page returns the first result page. The default value for maxresults returns all results. page can be
set to the value of the nextpage property fro a response to return the next page of results.
There is no guarantee that maxresults results will be returned even if more results are available, but at least one
result will always be returned. The nextpage property is not defined for the last result page.
| category | string <uuid> Optionally return only products from a product category |
| includeDisabled | boolean Default: false Include products that are currently disabled |
| page | string Token indicating which result page to retrieve, default is first page |
| maxresults | integer <int32> Default: 100 Maximum number of results to return for a result page, default is 100 |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Same filtering and pagination as the :Paged endpoint, but additionally filters out
any product whose ID is in excludedProductIds before pagination is applied. Intended
for callers (e.g. the Distribution API) that need to page through "everything except an
explicit exclusion list" without downloading and filtering the full catalog client-side.
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Paging/filter parameters plus the set of product IDs to exclude
| category | string or null <uuid> |
| includeDisabled | boolean |
| page | string or null |
| maxResults | integer or null <int32> |
| excludedProductIds | Array of strings or null <uuid> [ items <uuid > ] |
{- "category": "86d23d13-9dbb-46f3-82d0-25253c7750c3",
- "includeDisabled": true,
- "page": "string",
- "maxResults": 0,
- "excludedProductIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}Groups a category's products by fulfillment schema and the value of groupAttribute, and pages by
group rather than by product. Built for the Distribution API, which lists hotels: in the catalog a room type
is a product, and a hotel is the set of room products sharing a PROPERTY_CODE. Groups are ordered by
(fulfillmentSchemaId, key). Products without the attribute, or without a fulfillment schema, are not
grouped. Same enabled-adapter, includeDisabled and exclusion filtering as :PagedExcludingIds.
The optional search, supplierId, country and city narrow which groups are listed.
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Category, group attribute, paging, exclusions and optional filters
| category | string or null <uuid> |
| groupAttribute | string or null |
| includeDisabled | boolean |
| page | string or null |
| maxGroups | integer or null <int32> |
| excludedProductIds | Array of strings or null <uuid> [ items <uuid > ] |
| search | string or null Optional. Lists only the groups with a product whose |
| supplierId | string or null <uuid> Optional. Lists only the groups with a product of this supplier. |
| country | string or null Optional. Lists only the groups with a product in this country, by name (e.g. "Norway"). |
| city | string or null Optional. Lists only the groups with a product in this city (e.g. "Bergen"). Exact match, unlike |
{- "category": "86d23d13-9dbb-46f3-82d0-25253c7750c3",
- "groupAttribute": "string",
- "includeDisabled": true,
- "page": "string",
- "maxGroups": 0,
- "excludedProductIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "search": "string",
- "supplierId": "e01eb4c4-8eb9-4fb7-b625-61f58c6148db",
- "country": "string",
- "city": "string"
}Returns the given groups (see :GroupsPaged) in request order. A key that matches no product is left
out. At most 100 keys per request.
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Category, group attribute and the keys to return
| category | string or null <uuid> |
| groupAttribute | string or null |
| includeDisabled | boolean |
Array of objects or null (ProductGroupKeyRequest) |
{- "category": "86d23d13-9dbb-46f3-82d0-25253c7750c3",
- "groupAttribute": "string",
- "includeDisabled": true,
- "keys": [
- {
- "fulfillmentSchemaId": "8f147e3c-8d61-4e66-a5ad-fb49e7377f63",
- "key": "string"
}
]
}The keys of every group (see :GroupsPaged) in a category, disabled products included, without the
products themselves.
| category | string <uuid> Product category |
| groupAttribute | string The attribute whose value groups the products |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
The keys of the groups (see :GroupsPaged) with a product, disabled ones included, that changed between
since and until (inclusive; no until means now): its UpdatedAt is in the window, its
enabled period started or ended in it, or its external id, or its group's key, is in changedExternalIds.
Lets an incremental sync fetch only the changed groups with :GroupsByKeys instead of walking them all.
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Category, group attribute, window and externally changed products
| category | string or null <uuid> |
| groupAttribute | string or null |
| since | string or null <date-time> |
| until | string or null <date-time> |
Array of objects or null (ProductExternalIdRequest) Products changed outside the catalog (e.g. their content), by fulfillment schema and external id. A group counts as changed when one of its products has one of these external ids, or its key is one of them. |
{- "category": "86d23d13-9dbb-46f3-82d0-25253c7750c3",
- "groupAttribute": "string",
- "since": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z",
- "changedExternalIds": [
- {
- "fulfillmentSchemaId": "8f147e3c-8d61-4e66-a5ad-fb49e7377f63",
- "externalId": "string"
}
]
}Same filtering and pagination as the :Paged endpoint, but returns a lightweight response containing
only the total count, next page token, and a list of product identifiers (id and externalId).
| category | string <uuid> Optionally return only products from a product category |
| includeDisabled | boolean Default: false Include products that are currently disabled |
| page | string Token indicating which result page to retrieve, default is first page |
| maxresults | integer <int32> Default: 100 Maximum number of results to return for a result page, default is 100 |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
List of product IDs to retrieve
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]| from | string <date-time> Start of the date range (inclusive, required) |
| to | string <date-time> End of the date range (inclusive). Defaults to current UTC time if not provided. |
| category | string <uuid> |
| page | string |
| maxresults | integer <int32> Default: 100 |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Retrieve a shopping cart based on its identifier.
| cartId required | string <uuid> |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Remove all products in the cart but retains the empty cart.
| cartId required | string <uuid> id of the user |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Create a new empty shopping cart. The shopping cart has an ID that can be used in subsequent calls to the shopping cart APIs to manipulate or inspect the shopping cart. The shopping cart is valid for 6 hours after creation.
| currency required | string |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
| salesChannel | string or null |
[- {
- "salesChannel": "string"
}
]Checking out the shopping cart places orders for all products in the cart.
| cartId required | string <uuid> |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
| profileId | string or null |
| primaryGuestName | string or null Deprecated Deprecated. PrimaryGuestName is misleading. Use CardholderName instead. |
| cardholderName | string or null |
string or null | |
| phone | string or null |
| notes | string or null |
| paymentIsOptional | boolean |
| paymentMethod | string or null <= 50 characters How the customer is paying, if a method was chosen at checkout. Recorded as a payment on the order in Order Management; no money moves here. Deliberately not one of the hard-coded order line attributes noted above — it belongs to the payment, not to a line. |
| createConfirmedBookings | boolean |
| promoCode | string or null A promo code to apply as part of checkout. It is checked again and applied to the cart lines it covers; if it can't be used, checkout stops with a 422 whose title is the PROMO_CODE_* error code. |
Array of objects or null (ConsumerUpdateDTO) | |
Array of objects or null (OrderLineUpdateDto) |
{- "profileId": "string",
- "primaryGuestName": "string",
- "cardholderName": "string",
- "email": "string",
- "phone": "string",
- "notes": "string",
- "paymentIsOptional": true,
- "paymentMethod": "string",
- "createConfirmedBookings": true,
- "promoCode": "string",
- "consumerUpdates": [
- {
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "externalId": 0
}
], - "orderLineUpdates": [
- {
- "attributes": [
- {
- "name": "string",
- "value": "string"
}
], - "cartProductId": "aeadf625-6640-4b8b-a4ed-bc897746fb6c"
}
]
}Cancel the shopping cart and any order that has been placed in the corresponding fulfillment system.
| cartId required | string <uuid> |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
| reason required | string non-empty |
{- "reason": "string"
}Register information about a payment transaction on the cart. Multiple payment transactions can be registered. A payment transaction is uniquely identified by the combination of the fields cardType and reference. The paymentStatus can be updated from Pending to Paid by calling this method again with the same cardType, reference and amount.
No information is sent to fulfillment systems for pending payments. Information about paid payments is sent to the fulfillment system to the extent this is supported by the relevant fulfillment system.
A reseller's cart is refused a payment of less than its resellerPayable, and a direct-transfer portal reseller's cart is refused any payment.
| cartId required | string <uuid> Shopping cart identifier |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Payment to be registered
| amount required | number <double> Payment amount |
| cardType | string or null Card type, not used by the platform except together with Reference as an indeitifer for the payment |
| reference required | string non-empty Payment reference, not used by the platform except together with CardType as an identifier for the payment |
| timestamp required | string <date-time> non-empty Payment information timestamp, not used by the platform |
| paymentStatus required | string (PaymentStatus) Enum: "Pending" "Paid" Status of a payment transaction |
{- "amount": 0.1,
- "cardType": "string",
- "reference": "fulfillmentReference value from /v0/ShoppingCarts/{cartId}/Checkout response",
- "timestamp": "2019-08-24T14:15:22Z",
- "paymentStatus": "Pending"
}Deletes a shopping cart item in the selected cart.
| cartId required | string <uuid> id of the cart |
| cartItemId required | string <uuid> id of the cart item |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Checks whether a promo code can be used on the given cart (exists, active, within its validity window, redemption limits not exceeded, and applicable to at least one product in the cart) without applying it or changing any pricing.
| cartId required | string <uuid> id of the shopping cart |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
the promo code to validate
| code required | string non-empty |
| customerEmail | string or null |
{- "code": "string",
- "customerEmail": "string"
}Clears any promo code applied to the cart: restores original pre-discount pricing on affected products and cancels the associated redemption. No-op if the cart has no applied promo code.
| cartId required | string <uuid> id of the shopping cart |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Adds a product to the cart. The product is identified by an availability price map identifier obtained from a call to availability and price search. See the Availabilities API.
| cartId required | string <uuid> id of the shopping cart |
| availabilityPriceMapId required | string <uuid> Availability price map containing information about what we are adding to the cart |
| qty required | integer <int32> |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
Adds all products in a package to the cart. Quotations must already exist for the products in the package. The correct availability price map for each product and price category is resolved automatically from the package itinerary configuration and the quotation data.
| cartId required | string <uuid> id of the shopping cart |
| tenantId | string Identifier which tenant we are working against. Will be prioritized over the Cenium-Tenant-Id |
| Cenium-Tenant-Id | string Identifier which tenant we are working against. |
package id and list of quotation ids covering the package products
| quotationIds | Array of strings or null <uuid> [ items <uuid > ] |
| packageId | string <uuid> |
| selectedProductIds | Array of strings or null <uuid> [ items <uuid > ] |
object or null |
{- "quotationIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "packageId": "471cc1d4-ec27-4504-b7c2-949af95662bc",
- "selectedProductIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "travelers": {
- "property1": 0,
- "property2": 0
}
}