Manage PurchaseWindow instances. Defines when a product can be purchased relative to departure (e.g., up to 120 days before, until departure).
List purchase window instances
Returns a paginated list of all PurchaseWindow instances.
query Parameters
pageZero-based page number. Defaults to 0.
sizeNumber of instances per page. Defaults to 100.
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application> for companies, and <personal name>-<application> for individuals.
X-Correlation-IdCorrelation id
List purchase window instances › Responses
Paginated list of PurchaseWindow instances
pageCurrent zero-based page number.
sizeNumber of instances per page.
totalCountTotal number of PurchaseWindow instances.
Create a purchase window instance
Create a new PurchaseWindow instance.
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application> for companies, and <personal name>-<application> for individuals.
X-Correlation-IdCorrelation id
Create a purchase window instance › Request Body
purchaseWhenWhen the product can be purchased relative to departure.
maximumPeriodBeforeDepartureMaximum time before departure that a purchase can be made. ISO 8601 duration.
minimumPeriodBeforeDepartureMinimum time before departure that a purchase can be made. ISO 8601 duration.
Create a purchase window instance › Responses
PurchaseWindow instance created successfully
id^([A-Z]{3}):Purchase… · requiredThe NeTEx ID of this PurchaseWindow.
purchaseWhenWhen the product can be purchased relative to departure.
maximumPeriodBeforeDepartureMaximum time before departure that a purchase can be made. ISO 8601 duration.
minimumPeriodBeforeDepartureMinimum time before departure that a purchase can be made. ISO 8601 duration.
Get a purchase window instance
Retrieve the full detail of a single PurchaseWindow instance.
path Parameters
id^([A-Z]{3}):([A-Za-z… · required · style: simpleThe netex ID of the element to retrieve
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application> for companies, and <personal name>-<application> for individuals.
X-Correlation-IdCorrelation id
Get a purchase window instance › Responses
PurchaseWindow instance found
id^([A-Z]{3}):Purchase… · requiredThe NeTEx ID of this PurchaseWindow.
purchaseWhenWhen the product can be purchased relative to departure.
maximumPeriodBeforeDepartureMaximum time before departure that a purchase can be made. ISO 8601 duration.
minimumPeriodBeforeDepartureMinimum time before departure that a purchase can be made. ISO 8601 duration.
Update a purchase window instance
Update an existing PurchaseWindow instance.
path Parameters
id^([A-Z]{3}):([A-Za-z… · required · style: simpleThe netex ID of the element to retrieve
Headers
ET-Client-NameEntur Client Header.
It is required that all consumers identify themselves by using this header.
Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers.
The structure of ET-Client-Name should be: <company>-<application> for companies, and <personal name>-<application> for individuals.
X-Correlation-IdCorrelation id
Update a purchase window instance › Request Body
purchaseWhenWhen the product can be purchased relative to departure.
maximumPeriodBeforeDepartureMaximum time before departure that a purchase can be made. ISO 8601 duration.
minimumPeriodBeforeDepartureMinimum time before departure that a purchase can be made. ISO 8601 duration.
Update a purchase window instance › Responses
PurchaseWindow instance updated successfully
id^([A-Z]{3}):Purchase… · requiredThe NeTEx ID of this PurchaseWindow.
purchaseWhenWhen the product can be purchased relative to departure.
maximumPeriodBeforeDepartureMaximum time before departure that a purchase can be made. ISO 8601 duration.
minimumPeriodBeforeDepartureMinimum time before departure that a purchase can be made. ISO 8601 duration.