Offer Overview

Returns an overview of prices based on route

Changed on

Returns an overview of prices for a given route search and criteria. The overview does not contain detailed offer information, but only the prices.

post/offer-overview-route

Request

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

Headers

Requestorstring

The requestor header contains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred.

Accept-Languagestring

Describes the set of natural languages that are preferred for localized text in the response to the request (see RFC9110). Supporting English (en) is a must.

traceparentstring

The traceparent header describes the position of the incoming request in its trace graph in a portable, fixed-length format. Its design focuses on fast parsing. Every tracing tool MUST properly set traceparent even when it only relies on vendor-specific information in tracestate (see W3C Trace Context).

tracestatestring

The tracestate extends traceparent with vendor-specific data represented by a set of name/value pairs. Storing information in tracestate is optional (see W3C Trace Context).

Request body

startDateTimestring date-time required
endDateTimestring date-time required
timeFrameSegmentation'HOUR' | 'DAY'

Defines the segmentation of the time frame for the offer overview. The default is DAY, which means that one price offer overview is given for each day of the requested time frame (provided there aren't more than one travel classes or flexibilities for one time segment).

travelClassstring

Traditional first and second class.

flexibilitystring

Example request

{
  "passengerSpecifications": [
    {
      "residency": "DE"
    }
  ]
}

Response

overview of prices found

Example response

{
  "problems": [
    {
      "type": "https://example.com/probs/passenger-too-young",
      "title": "Service Unavailable",
      "status": 503,
      "detail": "Connection to database timed out",
      "pointers": [
        {
          "type": "https://example.com/probs/passenger-too-young",
          "title": "Service Unavailable",
          "status": 503,
          "detail": "Connection to database timed out",
          "requestPointer": "#/offers[1]/placeSelections[1]/reservationId",
          "responsePointer": "#/booking/bookedOffers[4]/reservations[1]/id",
          "originator": "IMS1"
        }
      ],
      "alternativeSystemProposals": [
        {
          "reservationSystemId": 80,
          "scope": [
            {
              "vehicleNumber": "462"
            }
          ],
          "priority": 1
        }
      ]
    }
  ],
  "offerOverviews": [
    {
      "price": {
        "currency": "CHF",
        "vats": [
          {
            "countryCode": "DE",
            "amount": 5,
            "netAmount": 5,
            "grossAmount": 5
          }
        ],
        "appliedCurrencyConversion": {
          "originalCurrency": "CHF",
          "originalVats": [
            {
              "countryCode": "DE",
              "amount": 5,
              "netAmount": 5,
              "grossAmount": 5
            }
          ]
        }
      }
    }
  ]
}

Changes