What is it?
This method provides a list of entries for the requested dictionary name. Each entry consists of a 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 that 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
- Send a request with
marketingCarrierCode
,dictionaryName
, and an optionalAccept-Language
header to the rail system to obtain the content of the requested dictionary. - 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 /v2/rail/dictionaries/{marketingCarrierCode}/{dictionaryName}
Request
The Accept-Language
header determines the language of the response. 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.
Note: Do not provide any elements in the body of the request, as 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
.