Bookings

Updates a booking but does *not* confirm the booking.

Changed on

Updates fulfillment types, place selection and add payment. Does not confirm the booking. The booking is confirmed by calling 'POST /bookings/{bookingId}/fulfillments'.

patch/bookings/{bookingId}

Request

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

Path parameters

bookingIdstring required

id of the booking to be patched

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

x-accept-namespacestring

The x-accept-namespace HTTP header indicates the URN namespace that the client prefers. The provider uses content-negotiation to apply the corresponding namespace(s) where applicable.

Request body

externalRefstring nullable

The unique booking reference in the distributor/retailer system. Usually refers to an order number or PNR.

requestedFulfillmentTypestring

DEPRECATED — will be removed in 4.0.0. Express the fulfillment type where the document is produced: on POST/PATCH /bookings/{bookingId}/fulfillments, or as a query parameter on GET /fulfillments/{fulfillmentId}.

preferredFulfillmentMediastring

DEPRECATED — will be removed in 4.0.0. Express the preferred media where the document is produced: on POST/PATCH /bookings/{bookingId}/fulfillments, or as a query parameter on GET /fulfillments/{fulfillmentId}.

Example request

{
  "usedPaymentMethods": [
    {
      "remainingVoucherAmount": {
        "currency": "CHF",
        "vats": [
          {
            "countryCode": "DE",
            "amount": 5,
            "netAmount": 5,
            "grossAmount": 5
          }
        ],
        "appliedCurrencyConversion": {
          "originalCurrency": "CHF",
          "originalVats": [
            {
              "countryCode": "DE",
              "amount": 5,
              "netAmount": 5,
              "grossAmount": 5
            }
          ]
        }
      },
      "appliedVoucherAmount": {
        "currency": "CHF",
        "vats": [
          {
            "countryCode": "DE",
            "amount": 5,
            "netAmount": 5,
            "grossAmount": 5
          }
        ],
        "appliedCurrencyConversion": {
          "originalCurrency": "CHF",
          "originalVats": [
            {
              "countryCode": "DE",
              "amount": 5,
              "netAmount": 5,
              "grossAmount": 5
            }
          ]
        }
      }
    }
  ]
}

Response

booking fulfillment type updated

Changes