---
title: "Returns the purchaser's information at booking step."
method: GET
path: "/bookings/{bookingId}/purchaser"
tags: ["Purchaser"]
---

# Returns the purchaser's information at booking step.

`GET /bookings/{bookingId}/purchaser`

## Request

- Base URL: `https://s3p-osdm.cloud.sqills.com`
- URL: `https://s3p-osdm.cloud.sqills.com/bookings/{bookingId}/purchaser`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://login.microsoftonline.com/tbd`

## Path parameters

- `bookingId` string, required

## Headers

- `Requestor` string
- `Accept-Language` string
- `traceparent` string
- `tracestate` string

## Response `200`

purchaser found

- PurchaserResponse
  - `warnings` WarningCollection2: List of warnings. This structure has been deprecated and replaced by the problems array.
    - `warnings` Warning2[], required
      - `code` string, required
      - `type` string, uri, nullable: An absolute URI that identifies the warning type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).
      - `detail` string, nullable: A human readable explanation specific to this occurrence of the warning.
      - `instance` string, uri, nullable: An absolute URI that identifies the specific occurrence of the warning.
  - `problems` Problem2[]
    - `code` string, nullable: optional in version 3.1, will be made mandatory in upcoming releases
    - `type` string, uri, nullable: An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).
    - `title` string, nullable: A short, summary of the problem type. Written in English and readable for engineers (usually not suited for non technical stakeholders and not localized);
    - `status` integer, nullable: The HTTP status code generated by the origin server for this occurrence of the problem.
    - `detail` string, nullable: A human readable explanation specific to this occurrence of the problem.
    - `instance` string, uri, nullable: An absolute URI that identifies the specific occurrence of the problem.
    - `pointers` ProblemPointer2[]
      - `code` string, nullable: optional in version 3.1, will be made mandatory in upcoming releases
      - `type` string, uri, nullable: An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).
      - `title` string, nullable: A short, summary of the problem type. Written in English and readable for engineers (usually not suited for non technical stakeholders and not localized);
      - `status` integer, nullable: The HTTP status code generated by the origin server for this occurrence of the problem.
      - `detail` string, nullable: A human readable explanation specific to this occurrence of the problem.
      - `instance` string, uri, nullable: An absolute URI that identifies the specific occurrence of the problem.
      - `requestPointer` string, nullable: A pointer to the attribute in the request for the problem.
      - `responsePointer` string, nullable: A pointer to the attribute in the response for the problem.
      - `originator` string, nullable: Identifier to the origin server for this occurrence of the problem.
    - `alternativeSystemProposals` AlternativeSystemProposal[]
      - `reservationSystemId` integer: The 90918.1 code of the alternative reservation system.
      - `systemOperatorCode` string, required: Identifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: 'urn:uic:rics:1185:000011'
      - `scope` AlternativeSystemProposalScope[]
        - `vehicleNumber` string, required: Vehicle number, such as the train number, for which the alternative system proposal is valid.
        - `travelClass` string: Traditional first and second class.
        - `accommodationType` string: Accommodation type definition out of the [Accommodation Type Code List](https://osdm.io/spec/catalog-of-code-lists/#AccomodationType) Listed values here are examples.
        - `accommodationSubType` string: Accommodation sub type definition out of the [Accommodation Sub Type Code List](https://osdm.io/spec/catalog-of-code-lists/#PlaceProperty) Listed values here are examples.
      - `priority` integer: If multiple alternative system proposals are returned, the provider might define a priority order between them. The requestor should first use the proposal with the lowest priority that matches the requestor's case based on the proposal's scope and problem pointer.
  - `purchaser` Purchaser2: Purchaser information. Exactly one of `detail` or `companyDetails` must be provided.
    - `externalRef` string, nullable: A stable reference to a purchaser from other elements, or from caller system. When received in input of a request, it must be echoed back in the response.
    - `detail` PersonDetail2: Personal information potentially needed at booking step. To support privacy by design, it is not permitted to send personal information not required to create a valid booking. Note that address is deprecated in favor of `postalAddress`, and email and phoneNumber are deprecated in favor of the attributes in `ContactDetail`
      - `preferredLanguage` string, nullable: ISO-639-1 language code
      - `summary` string, nullable: A human-readable description of the person.
      - `firstName` string, nullable, required
      - `lastName` string, nullable, required: full last names of the person
      - `firstFamilyName` string: first family name in case of multiple family names. The element lastName includes all family names.
      - `secondFamilyName` string: second family name in case of multiple family names. The element lastName includes all family names.
      - `email` string, nullable
      - `phoneNumber` string, nullable: Preferably a mobile phone number, to be contacted in case changes to the booking occur, e.g., in case of interruptions. Format according to E.164 The international public telecommunication numbering plan
      - `address` Address2: A geographic place of any type which may be specified as the origin or destination of a trip. Provided by OJP.
        - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
        - `id` string, required: id defining the place. The code is provided as URN, relative URNs are allowed with base path urn:uic:stn '0850000'
        - `alternativeIds` string[], nullable: For a place with ids in different reference systems, the alternative ids can be returned. The reference system is encoded in the string. E.g.: 'urn:uic:std:80000', 'x_swe:stn:10000', 'ch:1:sloid:343434'
        - `geoPosition` GeoPosition2: WGS84 coordinates position. Provided by OJP.
          - `longitude` number, double, required: Longitude from Greenwich Meridian. -180 (West) to +180 (East). Decimal degrees. eg 2.356.
          - `latitude` number, double, required: Latitude from equator. -90 (South) to +90 (North). Decimal degrees. e.g. 56.356.
        - `modes` Mode2[]: List of Transport modes calling the place. This field is added in later OJP 2.0, used here as property for forward compatibility.
          - `ptMode` string, required: TAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the [Transport Mode Code List](https://osdm.io/spec/catalog-of-code-lists/#TransportMode) Listed values here are examples.
          - `name` string, nullable: Name of the mode
          - `shortName` string, nullable: Short name or acronym of the mode
          - `description` string, nullable: Additional text that further describes the mode
        - `ref` PlaceRef2
          - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
        - `_links` object[]: A collection of hypermedia links associated with this resource. These links facilitate navigation and discovery of related resources, following HATEOAS principles.
          - `rel` string, required: the 'rel' field in HATEOAS navigation.
          - `href` string, uri, required: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
          - `type` string, nullable: Hint to indicate the media type expected when dereferencing the target resource.
          - `value` string, nullable: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
        - `name` string, nullable: Name or description of address for use in passenger information.
        - `nameTranslations` Translation2[]: Translations for the name
          - `language` string, required: ISO-639-1 language code
          - `text` string, required
          - `shortText` string, nullable
        - `code` string, nullable: id of the address
        - `countryName` string, nullable: Country of the address.
        - `countryCode` string: ISO 3166-1 alpha-2 2 character country code
        - `postCode` string, nullable: Postal code of the address.
        - `city` string, nullable: City name
        - `topographicPlaceName` string, nullable: TopographicPlace name of the address. If set it should at least contain the city name.
        - `street` string, nullable: Street name of the address. Can also contain the house number.
        - `houseNumber` string, nullable: House number of the address. House number can either be in this separate field, or can be contained in the street field.
      - `postalAddress` PostalAddress2
        - `countryName` string, nullable: Country of the address.
        - `countryCode` string: ISO 3166-1 alpha-2 2 character country code
        - `postCode` string, nullable: Postal code of the address.
        - `city` string, nullable: City name
        - `street` string, nullable: Street name of the address. Can also contain the house number.
        - `houseNumber` string, nullable: House number of the address. House number can either be in this separate field, or can be contained in the street field.
      - `contact` ContactDetail2: Contact information needed to contact a person. Either an email or a phone number needs to be provided. Note: address and postalAddress are deprecated
        - `summary` string, nullable: A human-readable description of the contact.
        - `preferredLanguage` string, nullable: ISO-639-1 language code
        - `email` string, nullable
        - `phoneNumber` string, nullable: Preferably a mobile phone number, to be contacted in case changes to the booking occur, e.g., in case of delays or interruptions. Format according to E.164 The international public telecommunication numbering plan
        - `address` string, nullable
        - `postalAddress` PostalAddress2
          - `countryName` string, nullable: Country of the address.
          - `countryCode` string: ISO 3166-1 alpha-2 2 character country code
          - `postCode` string, nullable: Postal code of the address.
          - `city` string, nullable: City name
          - `street` string, nullable: Street name of the address. Can also contain the house number.
          - `houseNumber` string, nullable: House number of the address. House number can either be in this separate field, or can be contained in the street field.
      - `taxId` string, nullable: Tax identification of the physical person for issuing an invoice or receipt
    - `companyDetails` CompanyDetail2: Details a company. Note that the legalAddress attribute has been deprecated and is replaced by legalPostalAddress.
      - `name` string, required
      - `registrationNumber` string
      - `legalAddress` Address2: A geographic place of any type which may be specified as the origin or destination of a trip. Provided by OJP.
        - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
        - `id` string, required: id defining the place. The code is provided as URN, relative URNs are allowed with base path urn:uic:stn '0850000'
        - `alternativeIds` string[], nullable: For a place with ids in different reference systems, the alternative ids can be returned. The reference system is encoded in the string. E.g.: 'urn:uic:std:80000', 'x_swe:stn:10000', 'ch:1:sloid:343434'
        - `geoPosition` GeoPosition2: WGS84 coordinates position. Provided by OJP.
          - `longitude` number, double, required: Longitude from Greenwich Meridian. -180 (West) to +180 (East). Decimal degrees. eg 2.356.
          - `latitude` number, double, required: Latitude from equator. -90 (South) to +90 (North). Decimal degrees. e.g. 56.356.
        - `modes` Mode2[]: List of Transport modes calling the place. This field is added in later OJP 2.0, used here as property for forward compatibility.
          - `ptMode` string, required: TAP-TSI/UIC contains a sensible subset of SIRI Transport Modes. Values from the [Transport Mode Code List](https://osdm.io/spec/catalog-of-code-lists/#TransportMode) Listed values here are examples.
          - `name` string, nullable: Name of the mode
          - `shortName` string, nullable: Short name or acronym of the mode
          - `description` string, nullable: Additional text that further describes the mode
        - `ref` PlaceRef2
          - `objectType` string, required: Attribute is used as discriminator for inheritance between data types.
        - `_links` object[]: A collection of hypermedia links associated with this resource. These links facilitate navigation and discovery of related resources, following HATEOAS principles.
          - `rel` string, required: the 'rel' field in HATEOAS navigation.
          - `href` string, uri, required: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
          - `type` string, nullable: Hint to indicate the media type expected when dereferencing the target resource.
          - `value` string, nullable: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
        - `name` string, nullable: Name or description of address for use in passenger information.
        - `nameTranslations` Translation2[]: Translations for the name
          - `language` string, required: ISO-639-1 language code
          - `text` string, required
          - `shortText` string, nullable
        - `code` string, nullable: id of the address
        - `countryName` string, nullable: Country of the address.
        - `countryCode` string: ISO 3166-1 alpha-2 2 character country code
        - `postCode` string, nullable: Postal code of the address.
        - `city` string, nullable: City name
        - `topographicPlaceName` string, nullable: TopographicPlace name of the address. If set it should at least contain the city name.
        - `street` string, nullable: Street name of the address. Can also contain the house number.
        - `houseNumber` string, nullable: House number of the address. House number can either be in this separate field, or can be contained in the street field.
      - `legalPostalAddress` PostalAddress2
        - `countryName` string, nullable: Country of the address.
        - `countryCode` string: ISO 3166-1 alpha-2 2 character country code
        - `postCode` string, nullable: Postal code of the address.
        - `city` string, nullable: City name
        - `street` string, nullable: Street name of the address. Can also contain the house number.
        - `houseNumber` string, nullable: House number of the address. House number can either be in this separate field, or can be contained in the street field.
      - `contact` ContactDetail2: Contact information needed to contact a person. Either an email or a phone number needs to be provided. Note: address and postalAddress are deprecated
        - `summary` string, nullable: A human-readable description of the contact.
        - `preferredLanguage` string, nullable: ISO-639-1 language code
        - `email` string, nullable
        - `phoneNumber` string, nullable: Preferably a mobile phone number, to be contacted in case changes to the booking occur, e.g., in case of delays or interruptions. Format according to E.164 The international public telecommunication numbering plan
        - `address` string, nullable
        - `postalAddress` PostalAddress2
          - `countryName` string, nullable: Country of the address.
          - `countryCode` string: ISO 3166-1 alpha-2 2 character country code
          - `postCode` string, nullable: Postal code of the address.
          - `city` string, nullable: City name
          - `street` string, nullable: Street name of the address. Can also contain the house number.
          - `houseNumber` string, nullable: House number of the address. House number can either be in this separate field, or can be contained in the street field.
      - `taxId` string
    - `_links` object[]: A collection of hypermedia links associated with this resource. These links facilitate navigation and discovery of related resources, following HATEOAS principles.
      - `rel` string, required: the 'rel' field in HATEOAS navigation.
      - `href` string, uri, required: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.
      - `type` string, nullable: Hint to indicate the media type expected when dereferencing the target resource.
      - `value` string, nullable: Allows to provide a value to the link, for example id of the targeted resource or displayable representation for the link.

## Other responses

- `400`: Bad Request (400)
- `401`: Unauthorized (401)
- `403`: Forbidden (403)
- `404`: Not Found (404)
- `406`: Not Acceptable (406)
- `415`: Unsupported Media Type (415)
- `500`: Internal Server Error (500)
- `501`: Not Implemented (501)
- `503`: Service Unavailable (503)
- `default`: default error response

## Changes

- **2026-10-22** `4b5d9b1df9c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/changes/bookings/:bookingId/purchaser/get.md)

---

[API](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm.md) - [All operations](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/llms.txt) - [OpenAPI document](https://skmtc.dev/unioninternationalcheminsdefer/apis/uic-90918-10-osdm/revisions/f2e631e1357c?raw)
