What is it?
This method returns Rail offers for the inbound portion of a round trip. Note: An outbound offer ID is required to return the appropriate inbound offers.
The round trip shopping process consists of two steps - one for outbound offers, and one for inbound offers.
Returned inbound offers have the same structure of information found using the POST /v2/rail/offers/journeys
method.
Why use it?
Use this method to get inbound offers from Rail vendors for a round trip.
This is the second step in the two-step process of requesting round trip offers. These offers are then used to create orders as part of the POST /v2/rail/orders
method.
How it works
- Specify two search criteria in the request - one for an outbound trip and the second for an inbound trip. The outbound
offerId
must be specified in the request. Note: This is similar to thePOST /v2/rail/offers/journeys
method, except you will provide the outbound and inbound criteria, instead of a single criteria. - The response returns only inbound offers presented in the same way as the
POST /v2/rail/offers/journeys
method.
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}/roundTrip/inbound?outboundOfferId={outboundOfferId}
To provide more than one outbound offer ID, add more outboundOfferId
arguments as follows:
.../inbound?outboundOfferId={firstOutboundOfferId}&outboundOfferId={secondOutboundOfferId}&...
Request
In addition to the required outboundOfferId
and marketingCarrierCode
, provide two search criteria elements containing:
- From/to station codes
- Departure/arrival date and time
- Number of passengers, type, and any linked discounts
This request handles the inbound direction for a round trip.
Response
Returns a list of offers, including the unique offerId
, and all other details needed to create an order for the inbound portion of a round trip.