Exchange

Returns exchange offers for specified fulfillments

Changed on

Returns exchange offers for specified fulfillments submitted given requested new trip characteristics.

post/bookings/{bookingId}/exchange-offers

Request

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

Path parameters

bookingIdstring required

Query parameters

embed'ALL' | 'EXCHANGEOFFERS' | 'TRIP' | 'PASSENGERS' | 'NONE' required

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

Idempotency-Keystring uuid

The HTTP Idempotency request header field can be used to carry idempotency key in order to make non-idempotent HTTP methods such as POST or PATCH fault-tolerant. Servers should keep the idempotency key for as long as the result of the underlying operation is valid. Idempotency keys should be globally unique.

Request body

fulfillmentIdsstring[] required
overruleCodestring

Reason for and type of an after sale, code list in IRS 90918-10. The PRM_SUPPORT_UNAVAILABLE overrule code shall only be used by the UIC PRM ABT tool. Values from the Overrule Codes Code List Listed values here are examples.

  • 'CONNECTION_BROKEN'
  • 'DEATH'
  • 'EQUIPMENT_FAILURE'
  • 'PAYMENT_FAILURE'
  • 'PRM_SUPPORT_UNAVAILABLE'
  • 'SALES_STAFF_ERROR'
  • 'STOP_NOT_SERVED'
  • 'STRIKE'
  • 'TECHNICAL_FAILURE'
  • 'TICKET_NOT_USED'
  • 'INABILITY_TO_TRAVEL': Inability to travel due to accident or sickness.
  • 'EXTERNAL_COMPENSATION': Offer has been compensated outside of the provider system in another way.
  • 'DISRUPTION': Inability to operate due to disruption.
  • 'JOURNEY_OBSOLETE': Due to external factors it's senseless to start the trip, thus the travel is obsolete.
  • 'CERTIFIED_MEDICAL_CONDITION': A medical certificate certifies that the passenger is unable to travel.
  • 'DELAY_COMPENSATION': Allows to override conditions in context of passenger rights regulation (PRR).
tripIdsstring[] nullable
embedOfferCollectionResponseContent2[]

Response

Collection of exchange offers found

Changes