Skip to main content

Content Services for Rail - Search Single Trip

Rail
Search
REST API
Travel Agency
Try Now

What is it?

This method returns Rail offers for a given search criteria for one-way trips. Offers contain assigned prices, itineraries, transport product details, and other information used to create an order.

Why use it?

Use this method to get offers from Rail vendors for one way trips.

How it works

  1. Send a request to the Rail vendor system with the following search criteria:
  • Code of the marketing carrier whose offers will be searched ({marketingCarrierCode} in URL)
  • From/to stations
  • Departure/arrival date&time
  • Passenger details, including quantity and discount details.

Unlike round trip requests, one-way requests only contain one search criteria.

  1. The response returns a list of all offers generated by the Rail vendor for different Rail connections. Offers are bookable entities that can be used to create an order with the POST /v1/rail/order method.

Offers returned are assigned a unique id, a price, and linked transport product details (such as fare codes, flexibility, remarks, related passengers, and journey segments).

The response contains detailed schedule information, including train details and other information regarding parameters required for order creation:

  • A generated passenger id
  • Delivery options
  • Fulfillment requirements
  • Payment options
  • Seat reservation options

Caution: Consuming this API and its content requires 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.

Vendor Code Payment via API Notes
SNCF 2C No “On account” only. Direct settlement with agency. No individual or corporate credit cards.

How to use

Method

POST /v1/rail/offers/journeys/{marketingCarrierCode}

Request

Provide one search criteria element containing:

  • Code of the marketing carrier whose offers will be searched ({marketingCarrierCode} in URL)
  • From/to station codes
  • Departure/arrive date and time
  • Number of passengers, type, and any linked discounts

Response

Returns a list of offers, including a unique offerId, and all other details needed to create an order for a one-way trip.