Schemas
PageInfo
totalCountTotal number of elements matching the query.
pageCurrent zero-based page number.
sizeRequested page size.
LocalizedString
lang^[a-z]{2}-[A-Z]{2}$ · requiredBCP-47 language tag (e.g., 'nb-NO', 'en-GB').
valueThe localized string value for the specified lang.
VersionSummary
versionId^([A-Z]{3}):Version:… · requiredNeTEx id of the version.
startDateFirst day the version is valid.
statusversionNumberSequence number of the version, when assigned.
endDateFirst day the version is no longer valid (optional).
VersionedElementSummary
id^([A-Z]{3}):([A-Za-z… · requiredNeTEx id of the element.
ownerOrganisationIdInternal organisation id owning the element.
PurchaseWindowListResponse
totalCountTotal number of elements matching the query.
pageCurrent zero-based page number.
sizeRequested page size.
The purchase windows on this page, ordered by id.
ProblemDetails
typeA URI reference that identifies the problem type.
titleShort, human-readable summary of the problem type.
statusThe HTTP status code.
detailHuman-readable explanation specific to this occurrence.
instanceA URI reference that identifies the specific occurrence.
PurchaseWhen
When a purchase can be made relative to the time of travel.
- ADVANCE_ONLY - Only in advance of the day of travel.
- UNTIL_PREVIOUS_DAY - Until the end of the day before travel.
- DAY_OF_TRAVEL_ONLY - Only on the day of travel.
- ADVANCE_AND_DAY_OF_TRAVEL - In advance or on the day of travel.
- TIME_OF_TRAVEL_ONLY - Only at the time of travel.
- SUBSCRIPTION_CHARGE_MOMENT - At the charge moment of a subscription.
- OTHER - Other rule.
PurchaseAction
The type of purchase action the window applies to.
PurchaseMoment
A moment at which a purchase can be made.
PurchaseWindowRequest
startDateFirst day this purchase window version is valid.
statusStatus of the purchase window version. Required; on create only DRAFT or PROPOSED is accepted — a new version cannot be published directly.
ownerOrganisationIdInternal id of the organisation that owns this element. Omit it to use the organisation in the access token, which is what a caller acting for itself should do. Supplying a different organisation requires permission to act on behalf of that organisation.
endDateLast day this purchase window version is valid (optional). Omit for an open-ended version.
purchaseWhenWhen a purchase can be made relative to the time of travel.
- ADVANCE_ONLY - Only in advance of the day of travel.
- UNTIL_PREVIOUS_DAY - Until the end of the day before travel.
- DAY_OF_TRAVEL_ONLY - Only on the day of travel.
- ADVANCE_AND_DAY_OF_TRAVEL - In advance or on the day of travel.
- TIME_OF_TRAVEL_ONLY - Only at the time of travel.
- SUBSCRIPTION_CHARGE_MOMENT - At the charge moment of a subscription.
- OTHER - Other rule.
latestTime^([01][0-9]|2[0-3]):…Latest time of day a purchase can be made (NeTEx LatestTime), formatted HH:mm:ss.
minimumPeriodBeforeDepartureMinimum period before departure that a purchase must be made (NeTEx
MinimumPeriodBeforeDeparture). ISO 8601 duration with days, hours, minutes and/or seconds.
maximumPeriodBeforeDepartureMaximum period before departure that a purchase can be made (NeTEx
MaximumPeriodBeforeDeparture). ISO 8601 duration with days, hours, minutes and/or seconds.
Must not be shorter than minimumPeriodBeforeDeparture.
purchaseActionThe type of purchase action the window applies to.
purchaseMomentsThe moments at which a purchase can be made (NeTEx PurchaseMoment, a list).
PurchaseWindowResponse
id^([A-Z]{3}):Purchase… · requiredNeTEx id of the purchase window.
versionId^([A-Z]{3}):Version:… · requiredNeTEx id of this purchase window version.
ownerOrganisationIdInternal organisation id owning this purchase window.
startDateFirst day this purchase window version is valid.
statusversionNumberSequence number of this version, when assigned.
endDateLast day this purchase window version is valid (optional).
purchaseWhenWhen a purchase can be made relative to the time of travel.
- ADVANCE_ONLY - Only in advance of the day of travel.
- UNTIL_PREVIOUS_DAY - Until the end of the day before travel.
- DAY_OF_TRAVEL_ONLY - Only on the day of travel.
- ADVANCE_AND_DAY_OF_TRAVEL - In advance or on the day of travel.
- TIME_OF_TRAVEL_ONLY - Only at the time of travel.
- SUBSCRIPTION_CHARGE_MOMENT - At the charge moment of a subscription.
- OTHER - Other rule.
latestTimeLatest time of day a purchase can be made (NeTEx LatestTime), formatted HH:mm:ss.
minimumPeriodBeforeDepartureMinimum period before departure (NeTEx MinimumPeriodBeforeDeparture). ISO 8601 duration.
maximumPeriodBeforeDepartureMaximum period before departure (NeTEx MaximumPeriodBeforeDeparture). ISO 8601 duration.
purchaseActionThe type of purchase action the window applies to.
purchaseMomentsThe moments at which a purchase can be made (NeTEx PurchaseMoment).
VersionResponse
id^([A-Z]{3}):Version:… · requiredThe netex id reference to the object.
statusstartDateThe start date of the version.
createdCreated datetime
changedChanged datetime
numberVersion number of the version. Only present when versionStatus is VERSIONED. Starts at 1 for a new product and is incremented by 1 for each new version.
endDateThe end date of the version.
publishedTimestamp for when the version was published (set to status VERSIONED).
VersionRequest
statusMust be DRAFT for new versions.
startDateThe start date of the version. Defaults to current date if not provided.
endDateThe end date of the version (optional).
ownerOrganisationIdInternal id of the organisation that owns this element. Omit it to use the organisation in the access token, which is what a caller acting for itself should do. Supplying a different organisation requires permission to act on behalf of that organisation.