Skip to main content

Content Services for Rail - Dictionary

Rail
Dictionary
REST API
Travel Agency
Try Now

What is it?

This method provides a list of entries for the requested dictionary name. Each entry consists of code, description, and optional details with a list of key-value properties.

Why use it?

This method is used to retrieve dictionary entries for a requested dictionary name; there are a couple of supported dictionaries which are dynamically populated.

For example, the errorGroups dictionary provides the code, description, and HTTP code for each supported errorGroup. The response is always up to date with the current application status.

How it works

  1. Send a request with marketingCarrierCode, dictionaryName, and an optional Accept-Language header to the rail system to obtain the content of the requested dictionary.
  2. This method returns dictionary content for name (dictionaryName), marketing carrier (marketingCarrierCode), and language (Accept-Language).

Note: Requests can be sent at any time to the rail system; however, the content may not be the same at different moments in time.

Caution: Consuming this API and its content requires a special permission. Before requesting access please make sure you have all the necessary agreements in place with the rail vendor(s) you would like to sell using Content Services for Rail. For more information on accessing Sabre Rail content and rail supplier contacts please visit the respective product page on Sabre Central.

How to use

Method

GET /v1/rail/dictionaries/{marketingCarrierCode}/{dictionaryName}

Request

The Accept-Language header determines the language the response will be in. If the requested language is not supported or the header is not provided, a default language is selected and the response will contain an additional warning. Do not provide any elements in the request body, since they will be ignored; only a marketingCarrierCode should be provided.

Response

Returns a list of dictionary entries with code and description values. Each entry may contain details, where pairs can be listed by key and value.