Skip Navigation

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 and to stations
  • Departure and 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 /v2/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, 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, 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.
Amtrak 2V Yes Access to this inventory will only be granted upon Amtrak's approval. Any new POS will be vetted and certified by Amtrak.

How to use

Method

POST /v2/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 and to station codes
  • Departure and arrival date&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.