/
4.1. RAIL PRICING REQUEST

4.1. RAIL PRICING REQUEST

The Rail Price message is used to request rail itinerary pricing information for a specified origin/destination pair and specified train number and service class.

OTA_RailPriceRQ*:

*mandatory

Element

Attribute

Type

Description

Min…Max occurs

Element

Attribute

Type

Description

Min…Max occurs

 

PrimaryLangID

 

For more information see Common Data Description section in Glossary.

0..1

 

RequestedCurrency

 

0..1

RailItinerary

 

 

A rail itinerary to be priced.

 

RailItinerary/OriginDestinationInformation

 

 

For more information see Rail Schedule Search Request section.

0..1

RailItinerary/PassengerInfo*

 

 

For more information see Common Data Description section in Glossary.

1..1

OTA_RailPriceRQ/RailItinerary/OriginDestinationInformation:

Element

Attribute

Type

Description

Min…Max occurs

Element

Attribute

Type

Description

Min…Max occurs

TrainSegment*

 

 

Contains information about the train.

1..1

TrainSegment/TrainIdentification*

 

 

Contains detailed information about train.

1..1

TrainSegment/TrainIdentification/TrainNumber*

 

string (1-8)

Contains the unique number that identifies the train. The train number should be taken from Rail Availability Search Response.

1..1

TrainSegment/SeatCarInfo*

 

 

Contains information about seats service class.

1..1

TrainSegment/SeatCarInfo/Car

 

 

0..99

 

Type*

string

indicates supplier seats service class. Type value should be taken from Rail Availability Search Response.

1..1

DepartureDateTime

 

Date (YYYY-MM-DD)

Contains the departure date. В гайде написано мандатори

0..1

 

TimeFrom

time (hh:mm:ss)

The departure time from.

0..1

 

TimeTo

time (hh:mm:ss)

The departure time to.

Note: It is required to specify both TimeFrom and TimeTo attributes in case use any of them.

0..1

ArrivalDateTime

 

Date (YYYY-MM-DD)

Contains the arrival departure date.

0..1

 

TimeFrom

time (hh:mm:ss)

The departure time from.

0..1

 

TimeTo

time (hh:mm:ss)

The departure time to.

Note: It is required to specify both TimeFrom and TimeTo attributes in case use any of them.

0..1

OriginLocation

 

 

Identifies start point of journey.

0..1

 

LocationCode

string

For more information see Common Data Description section in Glossary.

 

 

LocationName

string

 

 

LocationType*

 

 

 

CodeContext*

 

 

DestinationLocation

 

 

Identifies end point of journey.

0..1

 

LocationCode

string

For more information see Common Data Description section in Glossary.

 

 

LocationName

string

 

 

LocationType*

 

 

 

CodeContext*

 

 

<?xml version="1.0" encoding="UTF-8"?> <ota:OTA_RailPriceRQ EchoToken="12345" Version="2" xmlns:ota="http://www.opentravel.org/OTA/2003/05"> <ota:POS> <ota:Source> <ota:RequestorID ID="client" MessagePassword="pwd" Type="22"/> <ota:BookingChannel Type="7" PriceDomain="1"/> </ota:Source> </ota:POS> <ota:RailItinerary> <ota:OriginDestinationInformation> <ota:DepartureDateTime>2014-11-01</ota:DepartureDateTime> <ota:OriginLocation CodeContext="teletrain" LocationCode="МОСКВА" LocationType="city"/> <ota:DestinationLocation CodeContext="teletrain" LocationCode="МИНСК" LocationType="city"/> <ota:TrainSegment> <ota:TrainIdentification> <ota:TrainNumber>021Я</ota:TrainNumber> </ota:TrainIdentification> <ota:SeatCarInfo> <ota:Car Type="КУПЕ"/> </ota:SeatCarInfo> </ota:TrainSegment> </ota:OriginDestinationInformation> <ota:PassengerInfo> <ota:PassengerQualifyingInfo Code="ADT" Count="5"/> <ota:PassengerQualifyingInfo Code="CHD" Count="3"/> <ota:PassengerQualifyingInfo Code="INF" Count="2"/> </ota:PassengerInfo> </ota:RailItinerary> </ota:OTA_RailPriceRQ>