Rail Availability

 

NOTE: This service is deprecated and will be removed in future versions. Please use RailShopRQ instead.

The Rail Availability (OTA_RailAvailRQ) retrieves train availability for a station pair on a specific date, for specific quantities and types of passengers.

API Information

Target Audience
Sabre Travel Network
Current Version
1.12.0
Authentication
Session Token
Service Action Code
OTA_RailAvailRQ

A successful transaction returns train availability for a station pair on a specific date. The response will comprise availability information and a list of all fares from the origin to the destination. A set of OriginDestinationOptions is returned, each of which contains one or more (connecting) trains that serve the city pair.

NOTE: Consuming this Web service requires special permission. Please contact the Rail Team.

Sample request

<OTA_RailAvailRQ xmlns="http://webservices.sabre.com/sabreXML/RCP/otara" xmlns:ns2="http://webservices.sabre.com/sabreXML/RCP/ota" CorrelationID="1.0.16-77c27f67-f1c4-4642-9775-c89e2280" MaxResponses="3" PrimaryLangID="en" ResponseType="Fares" TargetSystem="2C" TimeStamp="2015-08-19T14:06:10" Version="1.12.0">
    <RailAvailInfo MaxChanges="0">
        <OriginDestinationInformation>
            <ns2:DepartureDateTime>2015-12-29T23:50:00</ns2:DepartureDateTime>
            <ns2:OriginLocation LocationCode="FRMSC" />
            <ns2:DestinationLocation LocationCode="FRLYS" />
        </OriginDestinationInformation>
        <TPA_Extensions>
            <SNCF_Extensions>
                <RequestType>getOutwardFares</RequestType>
                <TravelWishes>
                    <RequestedFareSets>
                        <FareSet>
                            <code>BUS</code>
                        </FareSet>
                    </RequestedFareSets>
                    <RequestedFare>
                        <RequestedFareCode>
                            <fareCode>FA00</fareCode>
                        </RequestedFareCode>
                    </RequestedFare>
                    <RequestedTravelClasses>
                        <TravelClass>
                            <code>1</code>
                        </TravelClass>
                    </RequestedTravelClasses>
                </TravelWishes>
            </SNCF_Extensions>
        </TPA_Extensions>
    </RailAvailInfo>
</OTA_RailAvailRQ>

Sample response

<otara:OTA_RailAvailRS CorrelationID="1.0.16-77c27f67-f1c4-4642-9775-c89e2280" LocationCodeContext="2C" ResponseType="Fares" Target="Production" TargetSystem="2C" Version="1.12.0" xmlns:ns12="http://webservices.sabre.com/sabreXML/RCP/rrep" xmlns:otara="http://webservices.sabre.com/sabreXML/RCP/otara" xmlns:rc="http://webservices.sabre.com/sabreXML/RCP/rc" xmlns:rcmn="http://webservices.sabre.com/sabreXML/RCP/common" xmlns:ris="http://webservices.sabre.com/sabreXML/RCP/ris" xmlns:rl="http://webservices.sabre.com/sabreXML/RCP/rl" xmlns:rmas="http://webservices.sabre.com/sabreXML/RCP/rmas" xmlns:rmb="http://webservices.sabre.com/sabreXML/RCP/rmb" xmlns:rmt="http://webservices.sabre.com/sabreXML/RCP/rmt" xmlns:rota="http://webservices.sabre.com/sabreXML/RCP/ota" xmlns:rpnrs="http://webservices.sabre.com/sabreXML/RCP/rpnrs" xmlns:rrc="http://webservices.sabre.com/sabreXML/RCP/rrc" xmlns:rrr="http://webservices.sabre.com/sabreXML/RCP/rrr" xmlns:rs="http://webservices.sabre.com/sabreXML/RCP/rs">
    <otara:Success/>
    <otara:Warnings>
        <rcmn:Warning Code="1087" Type="2C">Some fares were filtered because your profile requires a FCE number to book these fares</rcmn:Warning>
        <rcmn:Warning Code="21" Type="2C">Some trains have a mandatory reservation condition.</rcmn:Warning>
    </otara:Warnings>
    <otara:OriginDestinationOptions>
        <otara:OriginDestinationOption>
            <otara:OriginLocation CodeContext="2C" LocationCode="FRMSC">MARSEILLE SAINT CHARLES</otara:OriginLocation>
            <otara:DestinationLocation CodeContext="2C" LocationCode="FRLPD">LYON PART DIEU</otara:DestinationLocation>
            <otara:Journeys>
                <otara:Journey>
                    <otara:OriginLocation CodeContext="2C" LocationCode="FRMSC">MARSEILLE SAINT CHARLES</otara:OriginLocation>
                    <otara:DestinationLocation CodeContext="2C" LocationCode="FRLPD">LYON PART DIEU</otara:DestinationLocation>
                    <otara:FareRPHs>
                        <otara:FareRPH>1</otara:FareRPH>
                    </otara:FareRPHs>
                    <otara:JourneySegments>
                        <otara:JourneySegment>
                            <otara:TrainSegment ArrivalDateTime="2015-12-29T22:00:00" DepartureDateTime="2015-12-29T20:14:00" JourneyDuration="P0Y0M0DT1H46M0.000S" SmokingAllowed="false" TrainNumber="6876" TrainServiceType="TGX">
                                <rota:DepartureStation>
                                    <rota:Details CodeContext="2C" LocationCode="FRMSC">MARSEILLE SAINT CHARLES</rota:Details>
                                </rota:DepartureStation>
                                <rota:ArrivalStation>
                                    <rota:Details CodeContext="2C" LocationCode="FRLPD">LYON PART DIEU</rota:Details>
                                </rota:ArrivalStation>
                                <rota:MarketingCompany Code="SN" />
                                <otara:ClassCodes>
                                    <otara:ClassCode/>
                                </otara:ClassCodes>
                                <otara:TPA_Extensions>
                                    <otara:SNCF_Extensions>
                                        <otara:id>1</otara:id>
                                        <otara:tgvPeriod>NORMAL</otara:tgvPeriod>
                                        <otara:ticketless>false</otara:ticketless>
                                        <otara:bookingType>RN</otara:bookingType>
                                        <otara:smokingComfort>N</otara:smokingComfort>
                                        <otara:infoTrain>
                                            <otara:fullTrainExchangeEnable>true</otara:fullTrainExchangeEnable>
                                            <otara:onboardServices>
                                                <otara:OnboardService>
                                                    <otara:code>HAN</otara:code>
                                                    <otara:type>SERVICE</otara:type>
                                                </otara:OnboardService>
                                                <otara:OnboardService>
                                                    <otara:code>BAR</otara:code>
                                                    <otara:type>SERVICE</otara:type>
                                                </otara:OnboardService>
                                                <otara:OnboardService>
                                                    <otara:code>CAL</otara:code>
                                                    <otara:type>COMFORT</otara:type>
                                                </otara:OnboardService>
                                            </otara:onboardServices>
                                        </otara:infoTrain>
                                        <otara:infoJourney>
                                            <otara:destinationName>LYON PART DIEU</otara:destinationName>
                                            <otara:originName>MARSEILLE SAINT CHARLES</otara:originName>
                                        </otara:infoJourney>
                                        <otara:availablePhysicalSpaces>
                                            <otara:AvailablePhysicalSpace>
                                                <otara:almostUnavailable>false</otara:almostUnavailable>
                                                <otara:code>B</otara:code>
                                            </otara:AvailablePhysicalSpace>
                                            <otara:AvailablePhysicalSpace>
                                                <otara:almostUnavailable>false</otara:almostUnavailable>
                                                <otara:code>A</otara:code>
                                            </otara:AvailablePhysicalSpace>
                                        </otara:availablePhysicalSpaces>
                                        <otara:placementOptions>
                                            <otara:disabledAvailable>true</otara:disabledAvailable>
                                            <otara:closeToAvailable>true</otara:closeToAvailable>
                                            <otara:facingForwardAllowed>false</otara:facingForwardAllowed>
                                            <otara:bedCategories/>
                                            <otara:bedLevel/>
                                            <otara:berthLevel/>
                                            <otara:coachTypes/>
                                            <otara:contingentTypes>
                                                <otara:string>HAN</otara:string>
                                            </otara:contingentTypes>
                                            <otara:decks>
                                                <otara:string>HAUT</otara:string>
                                                <otara:string>BAS</otara:string>
                                            </otara:decks>
                                            <otara:fareSpaceComforts>
                                                <otara:string>AFF</otara:string>
                                            </otara:fareSpaceComforts>
                                            <otara:noiseComforts/>
                                            <otara:seatPositions>
                                                <otara:string>FEN</otara:string>
                                                <otara:string>COU</otara:string>
                                            </otara:seatPositions>
                                            <otara:spaceTypes>
                                                <otara:spaceType>
                                                    <otara:nbPaxRequired>2,3,4</otara:nbPaxRequired>
                                                    <otara:Code>CLUB4</otara:Code>
                                                </otara:spaceType>
                                                <otara:spaceType>
                                                    <otara:nbPaxRequired>1,2</otara:nbPaxRequired>
                                                    <otara:Code>CLUB2</otara:Code>
                                                </otara:spaceType>
                                                <otara:spaceType>
                                                    <otara:nbPaxRequired>1,2</otara:nbPaxRequired>
                                                    <otara:Code>DUO</otara:Code>
                                                </otara:spaceType>
                                                <otara:spaceType>
                                                    <otara:nbPaxRequired>1</otara:nbPaxRequired>
                                                    <otara:Code>SOLO</otara:Code>
                                                </otara:spaceType>
                                            </otara:spaceTypes>
                                        </otara:placementOptions>
                                        <otara:withOverbooking>
                                            <otara:CoachAvailability>
                                                <otara:max>18</otara:max>
                                                <otara:physicalSpace>A</otara:physicalSpace>
                                            </otara:CoachAvailability>
                                            <otara:CoachAvailability>
                                                <otara:max>32</otara:max>
                                                <otara:physicalSpace>B</otara:physicalSpace>
                                            </otara:CoachAvailability>
                                        </otara:withOverbooking>
                                        <otara:withoutOverbooking>
                                            <otara:CoachAvailability>
                                                <otara:max>166</otara:max>
                                                <otara:physicalSpace>A</otara:physicalSpace>
                                            </otara:CoachAvailability>
                                            <otara:CoachAvailability>
                                                <otara:max>328</otara:max>
                                                <otara:physicalSpace>B</otara:physicalSpace>
                                            </otara:CoachAvailability>
                                        </otara:withoutOverbooking>
                                        <otara:quotaGroupIndicator>NO_RESTRICTION</otara:quotaGroupIndicator>
                                        <otara:specialPlacementAvailabilities>
                                            <otara:SpecialPlacementAvailability>
                                                <otara:maxCoachNonSmokingAvailability>54</otara:maxCoachNonSmokingAvailability>
                                                <otara:maxCoachSmokingAvailability>0</otara:maxCoachSmokingAvailability>
                                                <otara:physicalSpace>
                                                    <otara:code>B</otara:code>
                                                </otara:physicalSpace>
                                                <otara:placementCode>LOI</otara:placementCode>
                                                <otara:totalAvailability>290</otara:totalAvailability>
                                            </otara:SpecialPlacementAvailability>
                                            <otara:SpecialPlacementAvailability>
                                                <otara:maxCoachNonSmokingAvailability>32</otara:maxCoachNonSmokingAvailability>
                                                <otara:maxCoachSmokingAvailability>0</otara:maxCoachSmokingAvailability>
                                                <otara:physicalSpace>
                                                    <otara:code>A</otara:code>
                                                </otara:physicalSpace>
                                                <otara:placementCode>LOI</otara:placementCode>
                                                <otara:totalAvailability>128</otara:totalAvailability>
                                            </otara:SpecialPlacementAvailability>
                                            <otara:SpecialPlacementAvailability>
                                                <otara:maxCoachNonSmokingAvailability>2</otara:maxCoachNonSmokingAvailability>
                                                <otara:maxCoachSmokingAvailability>0</otara:maxCoachSmokingAvailability>
                                                <otara:physicalSpace>
                                                    <otara:code>A</otara:code>
                                                </otara:physicalSpace>
                                                <otara:placementCode>HDC</otara:placementCode>
                                                <otara:totalAvailability>2</otara:totalAvailability>
                                            </otara:SpecialPlacementAvailability>
                                            <otara:SpecialPlacementAvailability>
                                                <otara:maxCoachNonSmokingAvailability>38</otara:maxCoachNonSmokingAvailability>
                                                <otara:maxCoachSmokingAvailability>0</otara:maxCoachSmokingAvailability>
                                                <otara:physicalSpace>
                                                    <otara:code>A</otara:code>
                                                </otara:physicalSpace>
                                                <otara:placementCode>CAL</otara:placementCode>
                                                <otara:totalAvailability>38</otara:totalAvailability>
                                            </otara:SpecialPlacementAvailability>
                                            <otara:SpecialPlacementAvailability>
                                                <otara:maxCoachNonSmokingAvailability>5</otara:maxCoachNonSmokingAvailability>
                                                <otara:maxCoachSmokingAvailability>0</otara:maxCoachSmokingAvailability>
                                                <otara:physicalSpace>
                                                    <otara:code>A</otara:code>
                                                </otara:physicalSpace>
                                                <otara:placementCode>DG</otara:placementCode>
                                                <otara:totalAvailability>5</otara:totalAvailability>
                                            </otara:SpecialPlacementAvailability>
                                            <otara:SpecialPlacementAvailability>
                                                <otara:maxCoachNonSmokingAvailability>2</otara:maxCoachNonSmokingAvailability>
                                                <otara:maxCoachSmokingAvailability>0</otara:maxCoachSmokingAvailability>
                                                <otara:physicalSpace>
                                                    <otara:code>A</otara:code>
                                                </otara:physicalSpace>
                                                <otara:placementCode>ACX</otara:placementCode>
                                                <otara:totalAvailability>2</otara:totalAvailability>
                                            </otara:SpecialPlacementAvailability>
                                            <otara:SpecialPlacementAvailability>
                                                <otara:maxCoachNonSmokingAvailability>38</otara:maxCoachNonSmokingAvailability>
                                                <otara:maxCoachSmokingAvailability>0</otara:maxCoachSmokingAvailability>
                                                <otara:physicalSpace>
                                                    <otara:code>B</otara:code>
                                                </otara:physicalSpace>
                                                <otara:placementCode>EFT</otara:placementCode>
                                                <otara:totalAvailability>38</otara:totalAvailability>
                                            </otara:SpecialPlacementAvailability>
                                        </otara:specialPlacementAvailabilities>
                                        <otara:co2Emission>1.2</otara:co2Emission>
                                    </otara:SNCF_Extensions>
                                </otara:TPA_Extensions>
                            </otara:TrainSegment>
                        </otara:JourneySegment>
                    </otara:JourneySegments>
                    <otara:TPA_Extensions>
                        <otara:SNCF_Extensions>
                            <otara:arrivalDateTime>2015-12-29T22:00:00</otara:arrivalDateTime>
                            <otara:departureDateTime>2015-12-29T20:14:00</otara:departureDateTime>
                            <otara:duration>106</otara:duration>
                            <otara:id>1</otara:id>
                        </otara:SNCF_Extensions>
                    </otara:TPA_Extensions>
                </otara:Journey>
            </otara:Journeys>
        </otara:OriginDestinationOption>
    </otara:OriginDestinationOptions>
    <otara:Fares>
        <otara:Fare FareReference="1" RPH="1" TicketTypeCode="AAA">
            <otara:Journey>
                <otara:OriginLocation/>
                <otara:DestinationLocation/>
            </otara:Journey>
            <otara:PassengerCounts>
                <otara:PassengerCount Code="PT00AD" CodeContext="2C" />
            </otara:PassengerCounts>
            <otara:FarePrices>
                <otara:FareRuleType>
                    <otara:PriceRule Type="unused">unused</otara:PriceRule>
                    <otara:TotalFare Amount="95.00" CurrencyCode="EUR" />
                </otara:FareRuleType>
            </otara:FarePrices>
            <otara:FareClassification FareClass="Economy" FareGroup="S" SingleOrReturn="S" ValidityCode="1" />
            <otara:TPA_Extensions>
                <otara:SNCF_Extensions>
                    <otara:deliveryModes>
                        <otara:DeliveryMode>
                            <otara:code>ETK</otara:code>
                        </otara:DeliveryMode>
                        <otara:DeliveryMode>
                            <otara:code>TKD</otara:code>
                        </otara:DeliveryMode>
                        <otara:DeliveryMode>
                            <otara:code>TKV</otara:code>
                        </otara:DeliveryMode>
                    </otara:deliveryModes>
                    <otara:PhysicalSpace>A</otara:PhysicalSpace>
                    <otara:cuiQuotation>false</otara:cuiQuotation>
                </otara:SNCF_Extensions>
            </otara:TPA_Extensions>
        </otara:Fare>
    </otara:Fares>
    <otara:TPA_Extensions>
        <otara:SNCF_Extensions>
            <otara:FareDetails>
                <otara:FareDetail SNCFFareId="1" fareId="1" segmentId="1" spaceComfortDemandMandatory="false">
                    <otara:Availability>184</otara:Availability>
                    <otara:ClassOfService>AF</otara:ClassOfService>
                    <otara:eligibleComforts>
                        <otara:EligibleComfort>
                            <otara:availableSeats>56</otara:availableSeats>
                            <otara:code>CAL</otara:code>
                            <otara:description>1rst class area, dedicated to silence and passenger tranquillity</otara:description>
                            <otara:displayPriority>34</otara:displayPriority>
                            <otara:enforceable>false</otara:enforceable>
                            <otara:hermetic>true</otara:hermetic>
                            <otara:name>Calm area 1rst</otara:name>
                            <otara:price>0.00</otara:price>
                            <otara:proposable>true</otara:proposable>
                            <otara:comfortType>TRAVEL_SPACE</otara:comfortType>
                            <otara:relatedToDuration>false</otara:relatedToDuration>
                        </otara:EligibleComfort>
                    </otara:eligibleComforts>
                </otara:FareDetail>
            </otara:FareDetails>
            <otara:SNCFFares>
                <otara:SNCFFare>
                    <otara:fareInformation>
                        <otara:activableByCode>false</otara:activableByCode>
                        <otara:activationCodes xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                        <otara:exchangeable>true</otara:exchangeable>
                        <otara:fareCode>FA00</otara:fareCode>
                        <otara:fareConditions>The ticket is exchangeable and refundable for free until departure. After that, call us to exchange it up to 1 hour after departure, up to 2 hours after departure you can exhange it from the departure station.</otara:fareConditions>
                        <otara:fareGroups>
                            <otara:FareGroup>
                                <otara:code>AFF</otara:code>
                            </otara:FareGroup>
                            <otara:FareGroup>
                                <otara:code>BIZ</otara:code>
                            </otara:FareGroup>
                            <otara:FareGroup>
                                <otara:code>FULL</otara:code>
                            </otara:FareGroup>
                        </otara:fareGroups>
                        <otara:fareName>TGV PRO 1ère</otara:fareName>
                        <otara:flexibilityLevel>3</otara:flexibilityLevel>
                        <otara:id>1</otara:id>
                        <otara:marketPrice>false</otara:marketPrice>
                        <otara:microConditions>
                            <otara:code>TGV_FA00_1</otara:code>
                            <otara:label>${ECH_REMB_SS_FRAIS_DEP_1H_MOB}</otara:label>
                            <otara:linkedMicroConditions>
                                <otara:MicroCondition>
                                    <otara:code>ECH_REMB_SS_FRAIS_DEP_1H_MOB</otara:code>
                                    <otara:label>The ticket is exchangeable and refundable for free until departure. After that, call us to exchange it up to 1 hour after departure, up to 2 hours after departure you can exhange it from the departure station.</otara:label>
                                </otara:MicroCondition>
                            </otara:linkedMicroConditions>
                        </otara:microConditions>
                        <otara:paymentImmediate>false</otara:paymentImmediate>
                        <otara:refundable>true</otara:refundable>
                        <otara:returnMandatory>false</otara:returnMandatory>
                        <otara:travelAdvantagesCompulsory>false</otara:travelAdvantagesCompulsory>
                        <otara:minPaxNumber>1</otara:minPaxNumber>
                    </otara:fareInformation>
                    <otara:fareSets>
                        <otara:FareSet>
                            <otara:code>BUS</otara:code>
                        </otara:FareSet>
                    </otara:fareSets>
                    <otara:id>1</otara:id>
                </otara:SNCFFare>
            </otara:SNCFFares>
            <otara:Trips>
                <otara:Trip>
                    <otara:id>1</otara:id>
                    <otara:segmentIds>
                        <otara:int>1</otara:int>
                    </otara:segmentIds>
                </otara:Trip>
            </otara:Trips>
        </otara:SNCF_Extensions>
    </otara:TPA_Extensions>
</otara:OTA_RailAvailRS>

If you are a Sabre customer currently using Sabre APIs in production, access   Resources

Docs Navigation