Availabilities

Get availabilities nearby a given place.

Changed on

Get availabilities nearby a given place.

get/availabilities/nearby

Request

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

Query parameters

pagestring

can be used for pagination

contextIdstring required

denotes the offerId when contextType is OFFER, bookingId when contextType is BOOKING

contextType'OFFER' | 'BOOKING' required
resourceIdstring required

denotes the reservationId wen resourceType is RESERVATION, fareId when resourceType is FARE

resourceType'FARE' | 'RESERVATION' required
coachNumberstring required

coach number of the referenced place

placeNumberstring required

place number of the referenced place

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).

Response

place availabilities found

Example response

{
  "warnings": {
    "warnings": [
      {
        "type": "https://example.com/warns/price-updated",
        "detail": "The price of the given offer part has been updated during the booking operation",
        "instance": "offers/offer1234"
      }
    ]
  },
  "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
        }
      ]
    }
  ],
  "_links": [
    {
      "rel": "self",
      "type": "application/json"
    }
  ]
}

Changes