Passengers

Allows updating a passenger's information at booking step.

Changed on
patch/bookings/{bookingId}/passengers/{passengerId}

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 the passenger is in.

passengerIdstring required

id of the passenger

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

idstring required
summarystring nullable

A human-readable description of the passenger.

externalRefstring required

A stable reference to a passenger from other elements, or from caller system. When passed in passenger specification in an offer request, it must be echoed back in the response.

dateOfBirthstring date nullable

date of birth of the passenger

ageinteger nullable
typestring required

Passenger type according to UIC passenger, i.e. passenger type list. Values from the Passenger Type Code List Listed values here are examples.
Proposed default PERSON

gender'MALE' | 'FEMALE' | 'X' nullable

The gender of the passenger, which is important in the case of night trains. Values from the Gender Code List

prmNeedsPRMNeedType2[]

For the persons with reduced mobility (PRMs) its specific needs for support are expressed.

Example request

{
  "detail": {
    "lastName": "Diaz Lopez",
    "firstFamilyName": "Diaz",
    "secondFamilyName": "Lopez",
    "address": {
      "id": "urn:uic:stn:8500000",
      "geoPosition": {
        "longitude": 8.54021,
        "latitude": 47.37818
      },
      "modes": [
        {
          "name": "rail",
          "shortName": "S"
        }
      ],
      "_links": [
        {
          "rel": "self",
          "type": "application/json"
        }
      ],
      "name": "Oude Trambaan 7, 2265CA Leidschendam, Nederland",
      "code": "NL:1916200000022621",
      "countryName": "The Netherlands",
      "countryCode": "DE",
      "postCode": "2265CA",
      "city": "Leidschendam",
      "topographicPlaceName": "Leidschendam",
      "street": "Oude Trambaan"
    },
    "postalAddress": {
      "countryName": "The Netherlands",
      "countryCode": "DE",
      "postCode": "2265CA",
      "city": "Leidschendam",
      "street": "Oude Trambaan"
    },
    "contact": {
      "postalAddress": {
        "countryName": "The Netherlands",
        "countryCode": "DE",
        "postCode": "2265CA",
        "city": "Leidschendam",
        "street": "Oude Trambaan"
      }
    },
    "taxId": "CZ1234567890"
  },
  "identificationCard": {
    "birthCountryCode": "DE",
    "issuingCountryCode": "DE",
    "residenceCountryCode": "DE"
  },
  "transportableDetails": {
    "car": {
      "contactDetail": {
        "postalAddress": {
          "countryName": "The Netherlands",
          "countryCode": "DE",
          "postCode": "2265CA",
          "city": "Leidschendam",
          "street": "Oude Trambaan"
        }
      }
    },
    "motorCycle": {
      "contactDetail": {
        "postalAddress": {
          "countryName": "The Netherlands",
          "countryCode": "DE",
          "postCode": "2265CA",
          "city": "Leidschendam",
          "street": "Oude Trambaan"
        }
      }
    },
    "trailer": {
      "contactDetail": {
        "postalAddress": {
          "countryName": "The Netherlands",
          "countryCode": "DE",
          "postCode": "2265CA",
          "city": "Leidschendam",
          "street": "Oude Trambaan"
        }
      }
    }
  },
  "_links": [
    {
      "rel": "self",
      "type": "application/json"
    }
  ]
}

Response

passenger successfully patched

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
        }
      ]
    }
  ],
  "passenger": {
    "detail": {
      "lastName": "Diaz Lopez",
      "firstFamilyName": "Diaz",
      "secondFamilyName": "Lopez",
      "address": {
        "id": "urn:uic:stn:8500000",
        "geoPosition": {
          "longitude": 8.54021,
          "latitude": 47.37818
        },
        "modes": [
          {
            "name": "rail",
            "shortName": "S"
          }
        ],
        "_links": [
          {
            "rel": "self",
            "type": "application/json"
          }
        ],
        "name": "Oude Trambaan 7, 2265CA Leidschendam, Nederland",
        "code": "NL:1916200000022621",
        "countryName": "The Netherlands",
        "countryCode": "DE",
        "postCode": "2265CA",
        "city": "Leidschendam",
        "topographicPlaceName": "Leidschendam",
        "street": "Oude Trambaan"
      },
      "postalAddress": {
        "countryName": "The Netherlands",
        "countryCode": "DE",
        "postCode": "2265CA",
        "city": "Leidschendam",
        "street": "Oude Trambaan"
      },
      "contact": {
        "postalAddress": {
          "countryName": "The Netherlands",
          "countryCode": "DE",
          "postCode": "2265CA",
          "city": "Leidschendam",
          "street": "Oude Trambaan"
        }
      },
      "taxId": "CZ1234567890"
    },
    "identificationCard": {
      "birthCountryCode": "DE",
      "issuingCountryCode": "DE",
      "residenceCountryCode": "DE"
    },
    "transportableDetails": {
      "car": {
        "contactDetail": {
          "postalAddress": {
            "countryName": "The Netherlands",
            "countryCode": "DE",
            "postCode": "2265CA",
            "city": "Leidschendam",
            "street": "Oude Trambaan"
          }
        }
      },
      "motorCycle": {
        "contactDetail": {
          "postalAddress": {
            "countryName": "The Netherlands",
            "countryCode": "DE",
            "postCode": "2265CA",
            "city": "Leidschendam",
            "street": "Oude Trambaan"
          }
        }
      },
      "trailer": {
        "contactDetail": {
          "postalAddress": {
            "countryName": "The Netherlands",
            "countryCode": "DE",
            "postCode": "2265CA",
            "city": "Leidschendam",
            "street": "Oude Trambaan"
          }
        }
      }
    },
    "_links": [
      {
        "rel": "self",
        "type": "application/json"
      }
    ]
  }
}

Changes