---
title: "returns a collection of trips for a given OJP trip request"
method: POST
path: "/trips-collections"
tags: ["Trips"]
---

# returns a collection of trips for a given OJP trip request

`POST /trips-collections`

## Request

- Base URL: `https://s3p-osdm.cloud.sqills.com`
- URL: `https://s3p-osdm.cloud.sqills.com/trips-collections`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://login.microsoftonline.com/tbd`

Returns trips for a given trip request based on the OJP specification.

Replaces the deprecated `POST /trips-collection` (singular).

## Query parameters

- `page` string
- `stopBehavior` 'ORIGIN_DESTINATION_ONLY' | 'REAL_BOARDING_ALIGHTING': Influences what stops are to be returned in response (ORIGIN_DESTINATION_ONLY returns no intermediate stops; REAL_BOARDING_ALIGHTING returns all stops except virtual stops). Default value: ORIGIN_DESTINATION_ONLY

## Headers

- `Requestor` string
- `Accept-Language` string
- `traceparent` string
- `tracestate` string
- `x-accept-namespace` string

## Request body

- TripSearchCriteria: Trip request structure. Provided by OJP.
  - `departureTime` string, date-time, nullable: Needs to be in local date time format of the stop. Exactly one of `departureTime` or `arrivalTime` must be provided.
  - `arrivalTime` string, date-time, nullable: Needs to in be local date time format of the stop. Exactly one of `departureTime` or `arrivalTime` must be provided.
  - `origin` PlaceRef2, required
    - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
  - `destination` PlaceRef2, required
    - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
  - `vias` TripVia2[]: Ordered series of points where the journey must pass through. If more than one via point is given all of them must be obeyed - in the correct order. The server is allowed to replace a via stop by equivalent stops. TripDataFilters given at a via apply to the section after that via. To apply a TripDataFilter for the first section (between the origin and the first via), use the TripDataFilter within the TripParameters structure.
    - `viaPlace` PlaceRef2, required
      - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
    - `dwellTime` string, duration, nullable: desired dwell time at the via place
    - `dataFilter` TripDataFilter2: Data to be included/excluded from search, f.e. modes, carriers. Provided by OJP.
      - `ptModeFilter` ModeFilter2: List of public transport modes to include or exclude. Provided by OJP.
        - `exclude` boolean, nullable: Whether modes in list are to include or exclude from search.
        - `transportModes` Mode2[]: List of Transport modes to include/exclude.
          - `ptMode` string, required: TAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the [Transport Mode Code List](https://osdm.io/spec/catalog-of-code-lists/#TransportMode) Listed values here are examples.
          - `name` string, nullable: Name of the mode
          - `shortName` string, nullable: Short name or acronym of the mode
          - `description` string, nullable: Additional text that further describes the mode
      - `carrierFilter` CarrierFilter: Filter for in/exclusion of carriers. Provided by OJP.
        - `exclude` boolean, nullable: Whether carrier in list are to include or exclude from search.
        - `carriers` CompanyRef2[]: Reference to carrier
      - `serviceBrandFilter` ServiceBrandFilter2: Filter for in/exclusion of service brands. Provided by OJP.
        - `exclude` boolean, nullable: Whether service brand in list are to include or exclude from search.
        - `serviceBrands` ServiceBrandCode2[]: Reference to service brand codes
      - `vehicleFilter` VehicleFilter2: Filter for in/exclusion of vehicle based on vehicle number or line number.
        - `exclude` boolean, nullable: Whether vehicle in list is to include or exclude from search.
        - `vehicleNumbers` VehicleNumber2[]
        - `lineNumbers` LineNumber2[]
  - `parameters` TripParameters2: Options to control the search behavior and response contents. number of results > either number of results or number of results before and after are used. Provided by OJP.
    - `dataFilter` TripDataFilter2: Data to be included/excluded from search, f.e. modes, carriers. Provided by OJP.
      - `ptModeFilter` ModeFilter2: List of public transport modes to include or exclude. Provided by OJP.
        - `exclude` boolean, nullable: Whether modes in list are to include or exclude from search.
        - `transportModes` Mode2[]: List of Transport modes to include/exclude.
          - `ptMode` string, required: TAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the [Transport Mode Code List](https://osdm.io/spec/catalog-of-code-lists/#TransportMode) Listed values here are examples.
          - `name` string, nullable: Name of the mode
          - `shortName` string, nullable: Short name or acronym of the mode
          - `description` string, nullable: Additional text that further describes the mode
      - `carrierFilter` CarrierFilter: Filter for in/exclusion of carriers. Provided by OJP.
        - `exclude` boolean, nullable: Whether carrier in list are to include or exclude from search.
        - `carriers` CompanyRef2[]: Reference to carrier
      - `serviceBrandFilter` ServiceBrandFilter2: Filter for in/exclusion of service brands. Provided by OJP.
        - `exclude` boolean, nullable: Whether service brand in list are to include or exclude from search.
        - `serviceBrands` ServiceBrandCode2[]: Reference to service brand codes
      - `vehicleFilter` VehicleFilter2: Filter for in/exclusion of vehicle based on vehicle number or line number.
        - `exclude` boolean, nullable: Whether vehicle in list is to include or exclude from search.
        - `vehicleNumbers` VehicleNumber2[]
        - `lineNumbers` LineNumber2[]
    - `policyFilter` BaseTripPolicyFilter: Policies that control the trip search behavior for both public and individual transport. Provided by OJP.
      - `noSingleStep` boolean, nullable: The user is not able to climb one step, i.e. wheel chair.
      - `noSight` boolean, nullable: The user is not able to see.
    - `mobilityFilter` TripMobilityFilter2: Base mobility options to be applied for both public and individual transport. Provided by OJP.
      - `bikeTransport` boolean, nullable: The user wants to carry a bike on public transport.
      - `walkSpeed` integer, nullable: Deviation from average walk speed in percent. 100% percent is average speed.
      - `additionalTransferTime` string, duration, nullable: Additional time added to all transfers (also to transfers between individual to public transport).
      - `minimalTransferTime` string, duration, nullable
    - `numberOfResults` integer, nullable: Deprecated in 3.7.0 as it is getting removed in OJP to avoid inconsistency.
    - `numberOfResultsBefore` integer, nullable
    - `numberOfResultsAfter` integer, nullable
    - `ignoreRealtimeData` boolean, nullable
    - `transferLimit` integer, nullable: The maximum number of interchanges the user will accept per trip.
    - `itModesToCover` string: Modes which an individual powers themselves (such as walk, cycle). Provided by OJP.
  - `embed` TripsCollectionResponseContent2[]: Influences whether referenced resources are returned in full or as references only. Proposed default ALL
  - `returnSearchParameters` ReturnSearchParameters2: This property can be used in case a return trip is being requested. This will allow to benefit from return-specific fares or product. Only one of `outboundTripIds` or `outwardOfferIds` should be provided. `inwardReturnDate` and `outwardOfferTag` should not be used as they are deprecated in 3.7.0 and will be removed in 4.0.0.
    - `inwardReturnDate` string, date-time, nullable: Needs to be provided when creating the collection of outbound travels so that the provider knows when a inbound travel can be expected and propose appropriate product and fares. Superseded by `OfferSearchCriteria.inboundDate`.
    - `outboundTripIds` string[], nullable: Needs to be provided when creating collection of offers covering both outbound and inbound (return) journey.
    - `outwardOfferIds` string[], nullable: Needs to be provided when creating the collection of inbound travels so that the provider can relate the inbound travels to the outbound travels context.
    - `outwardOfferTag` string, nullable: Needs to be provided when creating the collection of inbound travels so that the provider knows what the outbound offer is and and propose compatible offers only if desired or mandatory.
    - `departureTime` string, date-time, nullable: Needs to be in local date time format of the stop. Exactly one of `departureTime` or `arrivalTime` must be provided.
    - `arrivalTime` string, date-time, nullable: Needs to in be local date time format of the stop. Exactly one of `departureTime` or `arrivalTime` must be provided.
    - `vias` TripVia2[]: Ordered series of points where the journey must pass through. If more than one via point is given all of them must be obeyed - in the correct order. The server is allowed to replace a via stop by equivalent stops. TripDataFilters given at a via apply to the section after that via. To apply a TripDataFilter for the first section (between the origin and the first via), use the TripDataFilter within the TripParameters structure.
      - `viaPlace` PlaceRef2, required
        - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
      - `dwellTime` string, duration, nullable: desired dwell time at the via place
      - `dataFilter` TripDataFilter2: Data to be included/excluded from search, f.e. modes, carriers. Provided by OJP.
        - `ptModeFilter` ModeFilter2: List of public transport modes to include or exclude. Provided by OJP.
          - `exclude` boolean, nullable: Whether modes in list are to include or exclude from search.
          - `transportModes` Mode2[]: List of Transport modes to include/exclude.
            - `ptMode` string, required: TAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the [Transport Mode Code List](https://osdm.io/spec/catalog-of-code-lists/#TransportMode) Listed values here are examples.
            - `name` string, nullable: Name of the mode
            - `shortName` string, nullable: Short name or acronym of the mode
            - `description` string, nullable: Additional text that further describes the mode
        - `carrierFilter` CarrierFilter: Filter for in/exclusion of carriers. Provided by OJP.
          - `exclude` boolean, nullable: Whether carrier in list are to include or exclude from search.
          - `carriers` CompanyRef2[]: Reference to carrier
        - `serviceBrandFilter` ServiceBrandFilter2: Filter for in/exclusion of service brands. Provided by OJP.
          - `exclude` boolean, nullable: Whether service brand in list are to include or exclude from search.
          - `serviceBrands` ServiceBrandCode2[]: Reference to service brand codes
        - `vehicleFilter` VehicleFilter2: Filter for in/exclusion of vehicle based on vehicle number or line number.
          - `exclude` boolean, nullable: Whether vehicle in list is to include or exclude from search.
          - `vehicleNumbers` VehicleNumber2[]
          - `lineNumbers` LineNumber2[]
    - `parameters` TripParameters2: Options to control the search behavior and response contents. number of results > either number of results or number of results before and after are used. Provided by OJP.
      - `dataFilter` TripDataFilter2: Data to be included/excluded from search, f.e. modes, carriers. Provided by OJP.
        - `ptModeFilter` ModeFilter2: List of public transport modes to include or exclude. Provided by OJP.
          - `exclude` boolean, nullable: Whether modes in list are to include or exclude from search.
          - `transportModes` Mode2[]: List of Transport modes to include/exclude.
            - `ptMode` string, required: TAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the [Transport Mode Code List](https://osdm.io/spec/catalog-of-code-lists/#TransportMode) Listed values here are examples.
            - `name` string, nullable: Name of the mode
            - `shortName` string, nullable: Short name or acronym of the mode
            - `description` string, nullable: Additional text that further describes the mode
        - `carrierFilter` CarrierFilter: Filter for in/exclusion of carriers. Provided by OJP.
          - `exclude` boolean, nullable: Whether carrier in list are to include or exclude from search.
          - `carriers` CompanyRef2[]: Reference to carrier
        - `serviceBrandFilter` ServiceBrandFilter2: Filter for in/exclusion of service brands. Provided by OJP.
          - `exclude` boolean, nullable: Whether service brand in list are to include or exclude from search.
          - `serviceBrands` ServiceBrandCode2[]: Reference to service brand codes
        - `vehicleFilter` VehicleFilter2: Filter for in/exclusion of vehicle based on vehicle number or line number.
          - `exclude` boolean, nullable: Whether vehicle in list is to include or exclude from search.
          - `vehicleNumbers` VehicleNumber2[]
          - `lineNumbers` LineNumber2[]
      - `policyFilter` BaseTripPolicyFilter: Policies that control the trip search behavior for both public and individual transport. Provided by OJP.
        - `noSingleStep` boolean, nullable: The user is not able to climb one step, i.e. wheel chair.
        - `noSight` boolean, nullable: The user is not able to see.
      - `mobilityFilter` TripMobilityFilter2: Base mobility options to be applied for both public and individual transport. Provided by OJP.
        - `bikeTransport` boolean, nullable: The user wants to carry a bike on public transport.
        - `walkSpeed` integer, nullable: Deviation from average walk speed in percent. 100% percent is average speed.
        - `additionalTransferTime` string, duration, nullable: Additional time added to all transfers (also to transfers between individual to public transport).
        - `minimalTransferTime` string, duration, nullable
      - `numberOfResults` integer, nullable: Deprecated in 3.7.0 as it is getting removed in OJP to avoid inconsistency.
      - `numberOfResultsBefore` integer, nullable
      - `numberOfResultsAfter` integer, nullable
      - `ignoreRealtimeData` boolean, nullable
      - `transferLimit` integer, nullable: The maximum number of interchanges the user will accept per trip.
      - `itModesToCover` string: Modes which an individual powers themselves (such as walk, cycle). Provided by OJP.
  - `notVias` NotVia2[]
    - `notViaPlace` PlaceRef2[]
      - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.

## Response `200`

trips found

- TripCollectionResponse: Trip response structure. Provided by OJP.
  - `warning` WarningCollection2: List of warnings. This structure has been deprecated and replaced by the problems array.
    - `warnings` Warning2[], required
      - `code` string, required
      - `type` string, uri, nullable: An absolute URI that identifies the warning type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).
      - `detail` string, nullable: A human readable explanation specific to this occurrence of the warning.
      - `instance` string, uri, nullable: An absolute URI that identifies the specific occurrence of the warning.
  - `problems` Problem2[]
    - `code` string, nullable: optional in version 3.1, will be made mandatory in upcoming releases
    - `type` string, uri, nullable: An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).
    - `title` string, nullable: A short, summary of the problem type. Written in English and readable for engineers (usually not suited for non technical stakeholders and not localized);
    - `status` integer, nullable: The HTTP status code generated by the origin server for this occurrence of the problem.
    - `detail` string, nullable: A human readable explanation specific to this occurrence of the problem.
    - `instance` string, uri, nullable: An absolute URI that identifies the specific occurrence of the problem.
    - `pointers` ProblemPointer2[]
      - `code` string, nullable: optional in version 3.1, will be made mandatory in upcoming releases
      - `type` string, uri, nullable: An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).
      - `title` string, nullable: A short, summary of the problem type. Written in English and readable for engineers (usually not suited for non technical stakeholders and not localized);
      - `status` integer, nullable: The HTTP status code generated by the origin server for this occurrence of the problem.
      - `detail` string, nullable: A human readable explanation specific to this occurrence of the problem.
      - `instance` string, uri, nullable: An absolute URI that identifies the specific occurrence of the problem.
      - `requestPointer` string, nullable: A pointer to the attribute in the request for the problem.
      - `responsePointer` string, nullable: A pointer to the attribute in the response for the problem.
      - `originator` string, nullable: Identifier to the origin server for this occurrence of the problem.
    - `alternativeSystemProposals` AlternativeSystemProposal[]
      - `reservationSystemId` integer: The 90918.1 code of the alternative reservation system.
      - `systemOperatorCode` string, required: Identifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: 'urn:uic:rics:1185:000011'
      - `scope` AlternativeSystemProposalScope[]
        - `vehicleNumber` string, required: Vehicle number, such as the train number, for which the alternative system proposal is valid.
        - `travelClass` string: Traditional first and second class.
        - `accommodationType` string: Accommodation type definition out of the [Accommodation Type Code List](https://osdm.io/spec/catalog-of-code-lists/#AccomodationType) Listed values here are examples.
        - `accommodationSubType` string: Accommodation sub type definition out of the [Accommodation Sub Type Code List](https://osdm.io/spec/catalog-of-code-lists/#PlaceProperty) Listed values here are examples.
      - `priority` integer: If multiple alternative system proposals are returned, the provider might define a priority order between them. The requestor should first use the proposal with the lowest priority that matches the requestor's case based on the proposal's scope and problem pointer.
  - `id` string, required
  - `trips` Trip2[]
    - `id` string, required: Id of this trip for referencing purposes. Unique within a trip list.
    - `externalRef` string, nullable: External reference of this trip for referencing purposes.
    - `summary` string, nullable: A human-readable description of the trip.
    - `tripPatternRef` TripPatternRef: Reference to Trip Pattern (Itinerary) external to the provider system.
      - `tripPatternId` string, required: Reference id to Trip Pattern created in external system.
      - `order` integer, nullable: Position of this trip within overall external trip pattern.
    - `duration` string, duration, required: Overall duration of the trip
    - `direction` 'OUT_BOUND' | 'IN_BOUND'
    - `origin` PlaceRef2
      - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
    - `originName` string, nullable: Name of the origin place
    - `destination` PlaceRef2
      - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
    - `destinationName` string, nullable: Name of the destination place
    - `startTime` string, date-time, required: Departure time at origin.
    - `endTime` string, date-time, required: Arrival time at destination
    - `transfers` integer, required: Number of interchanges
    - `distance` integer, nullable: Distance in meters over the the complete trip, i.e., including transfer legs.
    - `legs` TripLeg2[], required: Legs of the trip
      - `id` string, required: Id of this trip leg. Unique within trip result. A seqId is a leg id.
      - `externalRef` string, nullable: External reference of this tripLeg for referencing purposes.
      - `timedLeg` TimedLeg2: A leg which is bound to a timetabled schedule. Corresponds to a ride. Provided by OJP.
        - `start` Board, required: Describes the the situation at a stop or station at which the passenger boards a Leg of a trip including time-related information. Provided by OJP.
          - `stopPlaceRef` StopPlaceRef2, required: Reference to a Stop Place using URNs to define code. For UIC see UIC MERITS/TAP-TSI station codes. Provided by OJP.
            - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
            - `stopPlaceRef` string, required
          - `stopPlaceName` string, required
          - `plannedStopPointName` string, nullable: Name of the bay/quay/terminal where to board/alight from the vehicle. According to planned timetable.
          - `estimatedStopPointName` string, nullable: Name of the bay/quay/terminal where to board the vehicle. As to the latest realtime status.
          - `serviceDeparture` ServiceTime2, required: The time needs to be in Offset Time Format, i.e. 2023-12-03T10:15:30+01:00 as it is important the time zones are important to show in the timetable. Do not use the Coordinated Universal Time (UTC) format, i.e. 2023-12-03T10:15:30Z.
            - `timetabledTime` string, date-time, required
            - `estimatedTime` string, date-time, nullable
            - `observedTime` string, date-time, nullable
          - `status` StopCallStatus2: Status properties for the vehicle call at this stop. Provided by OJP.
            - `order` integer, nullable: Sequence number of this stop in the service pattern of the journey.
            - `requestStop` boolean, nullable: The vehicle journey calls at this stop only on demand.
            - `unplannedStop` boolean, nullable: This stop has not been planned by the planning department.
            - `notServicedStop` boolean, nullable: The vehicle will not call at this stop despite earlier planning.
            - `noBoardingAtStop` boolean, nullable: Boarding will not be allowed at this stop of this journey.
            - `noAlightingAtStop` boolean, nullable: Alighting will not be allowed at this stop of this journey.
            - `isBorderPoint` boolean, nullable: Indicates whether the stop is recognized by the system as a border point between two or more countries.
        - `intermediates` Intermediate2[]
          - `stopPlaceRef` StopPlaceRef2, required: Reference to a Stop Place using URNs to define code. For UIC see UIC MERITS/TAP-TSI station codes. Provided by OJP.
            - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
            - `stopPlaceRef` string, required
          - `stopPlaceName` string, required
          - `plannedStopPointName` string, nullable: Name of the bay/quay/terminal where to board/alight from the vehicle. According to planned timetable.
          - `estimatedStopPointName` string, nullable: Name of the bay/quay/terminal where to board the vehicle. As to the latest realtime status.
          - `serviceArrival` ServiceTime2, required: The time needs to be in Offset Time Format, i.e. 2023-12-03T10:15:30+01:00 as it is important the time zones are important to show in the timetable. Do not use the Coordinated Universal Time (UTC) format, i.e. 2023-12-03T10:15:30Z.
            - `timetabledTime` string, date-time, required
            - `estimatedTime` string, date-time, nullable
            - `observedTime` string, date-time, nullable
          - `serviceDeparture` ServiceTime2, required: The time needs to be in Offset Time Format, i.e. 2023-12-03T10:15:30+01:00 as it is important the time zones are important to show in the timetable. Do not use the Coordinated Universal Time (UTC) format, i.e. 2023-12-03T10:15:30Z.
            - `timetabledTime` string, date-time, required
            - `estimatedTime` string, date-time, nullable
            - `observedTime` string, date-time, nullable
          - `status` StopCallStatus2: Status properties for the vehicle call at this stop. Provided by OJP.
            - `order` integer, nullable: Sequence number of this stop in the service pattern of the journey.
            - `requestStop` boolean, nullable: The vehicle journey calls at this stop only on demand.
            - `unplannedStop` boolean, nullable: This stop has not been planned by the planning department.
            - `notServicedStop` boolean, nullable: The vehicle will not call at this stop despite earlier planning.
            - `noBoardingAtStop` boolean, nullable: Boarding will not be allowed at this stop of this journey.
            - `noAlightingAtStop` boolean, nullable: Alighting will not be allowed at this stop of this journey.
            - `isBorderPoint` boolean, nullable: Indicates whether the stop is recognized by the system as a border point between two or more countries.
        - `end` Alight, required: Describes the situation at a stop or station at which the passenger alights from a Leg of a trip including time-related information. Provided by OJP.
          - `stopPlaceRef` StopPlaceRef2, required: Reference to a Stop Place using URNs to define code. For UIC see UIC MERITS/TAP-TSI station codes. Provided by OJP.
            - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
            - `stopPlaceRef` string, required
          - `stopPlaceName` string, required
          - `plannedStopPointName` string, nullable: Name of the bay/quay/terminal where to board/alight from the vehicle. According to planned timetable.
          - `estimatedStopPointName` string, nullable: Name of the bay/quay/terminal where to board the vehicle. As to the latest realtime status.
          - `serviceArrival` ServiceTime2, required: The time needs to be in Offset Time Format, i.e. 2023-12-03T10:15:30+01:00 as it is important the time zones are important to show in the timetable. Do not use the Coordinated Universal Time (UTC) format, i.e. 2023-12-03T10:15:30Z.
            - `timetabledTime` string, date-time, required
            - `estimatedTime` string, date-time, nullable
            - `observedTime` string, date-time, nullable
          - `status` StopCallStatus2: Status properties for the vehicle call at this stop. Provided by OJP.
            - `order` integer, nullable: Sequence number of this stop in the service pattern of the journey.
            - `requestStop` boolean, nullable: The vehicle journey calls at this stop only on demand.
            - `unplannedStop` boolean, nullable: This stop has not been planned by the planning department.
            - `notServicedStop` boolean, nullable: The vehicle will not call at this stop despite earlier planning.
            - `noBoardingAtStop` boolean, nullable: Boarding will not be allowed at this stop of this journey.
            - `noAlightingAtStop` boolean, nullable: Alighting will not be allowed at this stop of this journey.
            - `isBorderPoint` boolean, nullable: Indicates whether the stop is recognized by the system as a border point between two or more countries.
        - `service` DatedJourney2, required: Vehicle journey that runs at a specific date. Provided by OJP.
          - `operatingDayRef` string, nullable: Reference to an operating day. Provided by OJP.
          - `mode` Mode2: A method of transportation such as bus, rail, etc. Provided by OJP.
            - `ptMode` string, required: TAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the [Transport Mode Code List](https://osdm.io/spec/catalog-of-code-lists/#TransportMode) Listed values here are examples.
            - `name` string, nullable: Name of the mode
            - `shortName` string, nullable: Short name or acronym of the mode
            - `description` string, nullable: Additional text that further describes the mode
          - `productCategory` ProductCategory2: Product category based on NeTEx/SIRI. A product category is a classification for vehicle journeys to express some common properties of journeys for marketing and fare products. Provided by OJP.
            - `name` string, required: Full name of this product category, e.g. 'TGV Lyria' in Switzerland and France. UIC: Long name of Service Brand
            - `shortName` string, required: Short name or acronym of the product category, likely to be published, e.g. 'TGV' UIC: Abbreviation of Service Brand
            - `productCategoryRef` string, nullable, required: Reference to a product category. Product categories should be defined once and used uniformly in all channels (e.g. NeTEx, SIRI, OJP). Provided by OJP.
          - `publishedServiceName` string, nullable: Line name or service description as known to the public, f.e. '512', 'S8' or 'Circle Line' or 'ICE 488'.
          - `vehicleNumbers` VehicleNumber2[], required
          - `lineNumbers` LineNumber2[]
          - `serviceStatus` ServiceStatus2: Parameters which describe the current status of a dated vehicle journey. Provided by OJP.
            - `unplanned` boolean, nullable: Whether this trip is an additional one that has not been planned.
            - `cancelled` boolean, nullable: Whether this trip is cancelled and will not be run.
            - `deviation` boolean, nullable: Whether this trip deviates from the planned service pattern.
            - `occupancy` string, nullable: Passenger load status on vehicle. If omitted, not known. Equivalent to siri:OccupancyEnumeration which describes three values: 'full', 'seatingAvailable' and 'standingAvailable'.
          - `situationFullRefs` SituationFullRef2[]
          - `carriers` NamedCompany2[], required
            - `ref` string, required: Identifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: 'urn:uic:rics:1185:000011'
            - `name` string, nullable: Textual representation of the carrier to be displayed unless the application is able to indicate the name by the carrier references.
          - `attributes` GeneralAttribute2[]
            - `text` string, required
            - `textTranslations` Translation2[]: Translation of the text attribute
              - …
            - `code` string, nullable
            - `url` string, nullable
        - `operatingDays` OperatingDays2: Day of public transport operation of which the characteristics are defined in a specific service calendar and which may last more than 24 hours. Provided by OJP.
          - `from` string, date-time, required: Start date of period
          - `until` string, date-time, required: End date of period
          - `pattern` string, required: Bit pattern for operating days between start date and end date. The length of the pattern is equal to the number of days from start date to end date. A bit value of '1' indicates that an event actually happens on the day that is represented by the bit position.
        - `operatingDaysDescription` string, nullable: Textual description of the operation days, e.g. 'Monday to Friday' or 'not on holidays'.
        - `duration` string, duration, nullable
        - `co2Emission` Quantity2: Generic entity to model a quantity.
          - `value` number, float, required
          - `unit` string, required
        - `attributes` LegAttribute2[]
          - `text` string, required: Text of the attribute to be shown to the user.
          - `code` string, nullable: Internal code of the attribute. Can be used for detection of double occurrences. Refers to Service Facilities / Leg Attributes from the Catalog of Code Lists
          - `fromStopSeqNumber` integer, nullable: The attribute is valid from the stop point with this sequence number within the leg. If missing it is valid from the beginning of the leg.
          - `toStopSeqNumber` integer, nullable: The attribute is valid to the stop point (inclusively) with this sequence number within the leg. If missing it is valid to the end of the leg.
      - `transferLeg` TransferLeg2: A leg which links other legs of a trip where a transfer between different places is required. Provided by OJP.
        - `continuousMode` string: Types of modes that run at any time without a timetable. Provided by OJP.
        - `transferMode` string: Modes dedicated to perform transfers. Provided by OJP.
        - `start` PlaceRef2, required
          - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
        - `end` PlaceRef2, required
          - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
        - `timeWindowStart` string, date-time, nullable: Time at which window begins.
        - `timeWindowEnd` string, date-time, nullable: Time at which window ends.
        - `duration` string, duration, nullable: Overall duration of this interchange.
        - `situationFullRefs` SituationFullRef2[]
        - `co2Emission` Quantity2: Generic entity to model a quantity.
          - `value` number, float, required
          - `unit` string, required
      - `continuousLeg` ContinuousLeg2: A leg of a journey that is not bound to a timetable. Provided by OJP.
        - `start` Place2, required: A geographic place of any type which may be specified as the origin or destination of a trip. Provided by OJP.
          - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
          - `id` string, required: id defining the place. The code is provided as URN, relative URNs are allowed with base path urn:uic:stn '0850000'
          - `alternativeIds` string[], nullable: For a place with ids in different reference systems, the alternative ids can be returned. The reference system is encoded in the string. E.g.: 'urn:uic:std:80000', 'x_swe:stn:10000', 'ch:1:sloid:343434'
          - `geoPosition` GeoPosition2: WGS84 coordinates position. Provided by OJP.
            - `longitude` number, double, required: Longitude from Greenwich Meridian. -180 (West) to +180 (East). Decimal degrees. eg 2.356.
            - `latitude` number, double, required: Latitude from equator. -90 (South) to +90 (North). Decimal degrees. e.g. 56.356.
          - `modes` Mode2[]: List of Transport modes calling the place. This field is added in later OJP 2.0, used here as property for forward compatibility.
            - `ptMode` string, required: TAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the [Transport Mode Code List](https://osdm.io/spec/catalog-of-code-lists/#TransportMode) Listed values here are examples.
            - `name` string, nullable: Name of the mode
            - `shortName` string, nullable: Short name or acronym of the mode
            - `description` string, nullable: Additional text that further describes the mode
          - `ref` PlaceRef2
            - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
          - `_links` object[]: A collection of hypermedia links associated with this resource. These links facilitate navigation and discovery of related resources, following HATEOAS principles.
            - `rel` string, required: the 'rel' field in HATEOAS navigation.
            - `href` string, uri, required: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
            - `type` string, nullable: Hint to indicate the media type expected when dereferencing the target resource.
            - `value` string, nullable: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
        - `end` Place2, required: A geographic place of any type which may be specified as the origin or destination of a trip. Provided by OJP.
          - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
          - `id` string, required: id defining the place. The code is provided as URN, relative URNs are allowed with base path urn:uic:stn '0850000'
          - `alternativeIds` string[], nullable: For a place with ids in different reference systems, the alternative ids can be returned. The reference system is encoded in the string. E.g.: 'urn:uic:std:80000', 'x_swe:stn:10000', 'ch:1:sloid:343434'
          - `geoPosition` GeoPosition2: WGS84 coordinates position. Provided by OJP.
            - `longitude` number, double, required: Longitude from Greenwich Meridian. -180 (West) to +180 (East). Decimal degrees. eg 2.356.
            - `latitude` number, double, required: Latitude from equator. -90 (South) to +90 (North). Decimal degrees. e.g. 56.356.
          - `modes` Mode2[]: List of Transport modes calling the place. This field is added in later OJP 2.0, used here as property for forward compatibility.
            - `ptMode` string, required: TAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the [Transport Mode Code List](https://osdm.io/spec/catalog-of-code-lists/#TransportMode) Listed values here are examples.
            - `name` string, nullable: Name of the mode
            - `shortName` string, nullable: Short name or acronym of the mode
            - `description` string, nullable: Additional text that further describes the mode
          - `ref` PlaceRef2
            - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
          - `_links` object[]: A collection of hypermedia links associated with this resource. These links facilitate navigation and discovery of related resources, following HATEOAS principles.
            - `rel` string, required: the 'rel' field in HATEOAS navigation.
            - `href` string, uri, required: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
            - `type` string, nullable: Hint to indicate the media type expected when dereferencing the target resource.
            - `value` string, nullable: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
        - `service` ContinuousService2, required: A vehicle movement on a continuous, non-timetabled service. Service of this leg. May be 'walk' in most cases, but also cycling or taxi etc. Provided by OJP.
          - `continuousMode` string: Types of modes that run at any time without a timetable. Provided by OJP.
          - `individualMode` string: Modes which an individual powers themselves (such as walk, cycle). Provided by OJP.
          - `operatingDayRef` string, nullable, required: Reference to an operating day. Provided by OJP.
          - `journeyRef` string, nullable, required: Reference to a journey. Provided by OJP.
          - `mode` string, required
          - `publishedServiceName` string, required
          - `originText` string, required
          - `destinationText` string, required
        - `timeWindowStart` string, date-time, nullable: Time at which window begins.
        - `timeWindowEnd` string, date-time, nullable: Time at which window ends.
        - `duration` string, duration, nullable: Duration of this leg according to user preferences like walk speed.
        - `situationFullRefs` SituationFullRef2[]
        - `co2Emission` Quantity2: Generic entity to model a quantity.
          - `value` number, float, required
          - `unit` string, required
    - `operatingDays` OperatingDays2: Day of public transport operation of which the characteristics are defined in a specific service calendar and which may last more than 24 hours. Provided by OJP.
      - `from` string, date-time, required: Start date of period
      - `until` string, date-time, required: End date of period
      - `pattern` string, required: Bit pattern for operating days between start date and end date. The length of the pattern is equal to the number of days from start date to end date. A bit value of '1' indicates that an event actually happens on the day that is represented by the bit position.
    - `operatingDaysDescription` string, nullable: Textual description of the operation days, e.g. 'Monday to Friday' or 'Not on holidays'.
    - `situationFullRefs` SituationFullRef2[]
    - `tripStatus` TripStatus2
      - `unplanned` boolean, nullable: Whether this trip is an additional one that has not been planned.
      - `cancelled` boolean, nullable: Whether this trip is cancelled and will not be run.
      - `deviation` boolean, nullable: Whether this trip deviates from the planned service pattern.
      - `delayed` boolean, nullable: Whether this trip is delayed.
      - `infeasible` boolean, nullable: Whether this trip cannot be used, due to operational delays and impossible transfers.
    - `_links` object[]: A collection of hypermedia links associated with this resource. These links facilitate navigation and discovery of related resources, following HATEOAS principles.
      - `rel` string, required: the 'rel' field in HATEOAS navigation.
      - `href` string, uri, required: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
      - `type` string, nullable: Hint to indicate the media type expected when dereferencing the target resource.
      - `value` string, nullable: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
  - `tripSummaries` TripSummary2[]
    - `id` string, required: Id of this trip for referencing purposes. Unique within trip response.
    - `summary` string, nullable
    - `externalRef` string, nullable
    - `startTime` string, date-time, nullable: Departure time at origin.
    - `endTime` string, date-time, nullable: Arrival time at destination.
    - `duration` string, duration, nullable: Overall duration of the trip.
    - `origin` PlaceRef2
      - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
    - `originName` string, nullable: Name of the origin place
    - `destination` PlaceRef2
      - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
    - `destinationName` string, nullable: Name of the destination place
    - `transfers` integer, nullable
    - `distance` integer, nullable
  - `_links` object[]: A collection of hypermedia links associated with this resource. These links facilitate navigation and discovery of related resources, following HATEOAS principles.
    - `rel` string, required: the 'rel' field in HATEOAS navigation.
    - `href` string, uri, required: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
    - `type` string, nullable: Hint to indicate the media type expected when dereferencing the target resource.
    - `value` string, nullable: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.

## Other responses

- `400`: Bad Request (400)
- `401`: Unauthorized (401)
- `403`: Forbidden (403)
- `404`: Not Found (404)
- `406`: Not Acceptable (406)
- `415`: Unsupported Media Type (415)
- `500`: Internal Server Error (500)
- `501`: Not Implemented (501)
- `503`: Service Unavailable (503)
- `default`: default error response

## Changes

- **2026-10-22** `4b5d9b1df9c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/changes/trips-collections/post.md)

---

[API](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm.md) - [All operations](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/llms.txt) - [OpenAPI document](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/revisions/f2e631e1357c?raw)
