Skip to main content

Content API (v0)

Download OpenAPI specification:Download

The Content API

Content

Get product content

Authorizations:
SubscriptionKey
query Parameters
page
string

The pagination page from where to start fetching.

maxResults
integer <int32>
Default: 100

The maximum number of results to return.

dateoffset
integer <int32>

Only return products whose display copy was updated within the last N days.

type
string (ProductType)
Enum: "Parent" "Child" "PackageParent"

The type of the product. [Parent=0, Child=1]

source
string (ProductSource)
Enum: "Activity" "Accommodation" "CarRental" "Transport" "Package"

The source from where the product was obtained. [Activity=0, Accommodation=1, CarRental=2]

header Parameters
Cenium-Tenant-Id
required
string <uuid>

Identifier which tenant we are working against.

Responses

Response samples

Content type
No sample

Get products by IDs

Authorizations:
SubscriptionKey
header Parameters
Cenium-Tenant-Id
required
string <uuid>

Identifier which tenant we are working against.

Request Body schema:

List of product IDs to retrieve.

Array
string <uuid>

Responses

Request samples

Content type
[
  • "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]

Response samples

Content type
No sample

Get products by IDs

Authorizations:
SubscriptionKey
header Parameters
Cenium-Tenant-Id
required
string <uuid>

Identifier which tenant we are working against.

Request Body schema:

List of product IDs to retrieve.

Array
string

Responses

Request samples

Content type
[
  • "string"
]

Response samples

Content type
No sample

List products whose display copy changed within a time window

Lets a caller that reads content through byExternalIds (e.g. the Distribution API's incremental activity sync) find content-only edits, which don't touch the Commerce product's own UpdatedAt. Returns ids and timestamps only, never the content.

Authorizations:
SubscriptionKey
query Parameters
since
string <date-time>

Start of the window (UTC, inclusive).

until
string <date-time>

End of the window (UTC, inclusive). Open-ended when omitted.

page
string

The pagination page from where to start fetching.

maxResults
integer <int32>
Default: 1000

The maximum number of results to return (1-1000).

header Parameters
Cenium-Tenant-Id
required
string <uuid>

Identifier which tenant we are working against.

Responses

Response samples

Content type
No sample

Get packaget content by id

Authorizations:
SubscriptionKey
path Parameters
contentId
required
string <uuid>
header Parameters
Cenium-Tenant-Id
required
string <uuid>

Identifier which tenant we are working against.

Responses

Response samples

Content type
No sample

Checks if products have updates from supplier

Authorizations:
SubscriptionKey
header Parameters
Cenium-Tenant-Id
required
string <uuid>

Identifier which tenant we are working against.

Request Body schema:

The request containing product IDs to check

productIds
Array of strings or null <uuid> [ items <uuid > ]

The product IDs to check for updates

Responses

Request samples

Content type
{
  • "productIds": [
    ]
}

Response samples

Content type
No sample