A31 Rail Section
When the MIR options Table RAIL DATA option are set to ‘Y’ (Yes), the data elements normally transmitted from the TUR-Rail segments to the A16 MIR section and the data elements from the TUR-Rail segment’s Associate Remarks normally transmitted to the A15 MIR section, are suppressed and alternately transmitted in the Travelport+ A31 Rail Data MIR section. In Travelport Apollo System/Travelport+ the MIR Options table can be used to determine whether this section is sent, or not.
A31 Rail Data Elements - TUR-Rail Segments and Associated Remarks
The following data elements when included in the TUR-Rail segment will be mapped to the new A31 Rail Data section of the Galileo MIR when the RAIL DATA MIR Option is set to ‘Y’.
TUR - Rail Data Element |
Definition |
---|---|
23JUN |
Departure Date |
/TYP-TRN |
Rail Segment Identifier |
S |
Segment Identifier |
nn |
Segment Number of Rail Segment (Not the Booking File Segment Number) |
L |
Leg Identifier |
nn |
Leg Number |
x |
Journey type
|
x |
Domestic/International Indicator
|
/CL-xx |
Class of Service |
/DEP- |
Departure City |
/TD- |
Time of Departure |
/DTA- |
Date of Arrival |
/TA- |
Time of Arrival |
/ARR- |
Arrival City |
/CF- |
Confirmation Number |
/TI- |
Ticket Image Y/N |
/CX |
CX identifier is appended to the TUR segment for ‘VOID’ (Provider Dependent) and/or ‘REFUND/CANCELLED’ |
Not all data elements included in the TUR-Rail segment will be transmitted in the A31 Rail data section. The following data elements when included in the TUR-Rail will not be mapped to the new A31 Rail Data section of the Travelport+ MIR when the RAIL DATA MIR Option is set to ‘Y’.
TUR - Rail Data Element |
Definition |
---|---|
TUR |
TUR Segment Identifier |
ZZ |
“Dummy” vendor code |
BKnn |
Status Code and Number in Party |
ZZZ |
“Dummy” IATA Departure City |
The following data elements when included in the TUR-Rail segment’s Associated Remarks will be mapped to the new A31 Rail Data section of the Travelport+ MIR when the RAIL DATA MIR Option is set to ‘Y’.
Associated Remarks |
Definition |
---|---|
-X**nn*Refund Amount*Refund Fee |
Passenger Association with Refund Amount and Refund Fee |
-X**RD*Date*Time |
Refund Date and Time |
-VT* |
Train Number |
-EQ* |
Equipment Code |
-CC* |
Marketing vendor code (UIC Code) |
-AN* |
Marketing vendor name |
-VC* |
Operating vendor code (UIC Code) |
-ON* |
Operating vendor name |
-WSnn*nn*nnnn |
Accommodation (e.g., Passenger nn, Coach nn, Seat/Berth nnnn) |
-ACT* |
Current Action (e.g., TICKETED, VOID or REFUND/CANCELLED) |
-FB*nn*nn*Fare Basis*Rate Description |
Fare Basis with Passenger Association, Sequence Number, Fare Basis and Rate Description |
-RTD* |
Rate Description |
-CUR* |
Currency Code |
-FPA* |
Final Payment Amount |
-FPD* |
Final Payment Date |
-PAY* |
Type of Payment (e.g. CC, DC, CA, AC) |
-FOP* |
Form of Payment |
-FTnn* |
Frequent Traveller Number for Passenger nn |
-CC1* |
Departure Point UIC Code |
-CC2* |
Arrival Point UIC Code |
-PT* |
Product Type (e.g. DV, IV, CV) |
-TTY* |
Ticket Type (e.g. E-Ticket, Paper) |
-DEL* |
Delivery Method (e.g. KIOSK, MAIL) |
-TKD* |
Open Ticket (e.g. O) |
-TKB* |
Ticketing Branch ID (PCC) |
-CO2* |
Carbon Footprint |
-TKnnnnnn* |
Ticket Number (e.g. Passenger nn, Segment nn, Leg nn) (No longer applicable as associated remark ) |
TK*nn*nn*nnnnnnnnnnnnnnn*xx*xxxxx* |
Ticket Number (e.g. Passenger Association, Sequence Number, Ticket Number, Product Type, Traffic Type and Sales Amount |
Not all data elements included in the TUR-Rail segment’s Associated Remarks will be transmitted in the A31 Rail data section. The following data elements when included in the TUR-Rail segment’s Associated Remarks will not be mapped to the new A31 Rail Data section of the Travelport+ MIR when the RAIL DATA MIR Option is set to ‘Y’.
Associate Remarks |
Definition |
---|---|
-CBN* |
Cabin |
-SPA* |
Sales Amount (Will now be included in MIR) |
-FDA* |
Amount of Deposit |
-DUE* |
Amount Due if Deposit Taken |
-FEE* |
Penalty Fee for Cancel/Modify |
-CNM* |
Name on Credit Card |
-CD* |
Corporate ID |
-P* |
Discount Program Name |
-SR* |
Service Request |
-STnn* |
Stock Control Number for Ticket nn |
-FF1* |
Free Format Text |
-FF2* |
Free Format Text |
-FF3* |
Free Format Text |
-FF4* |
Free Format Text |
-X** |
Free Text Remarks |
TUR - Rail Segments are in TUR Passive section.
Level |
Hex |
Dec |
Label |
Bytes |
Type |
Description |
---|---|---|---|---|---|---|
1 |
|
|
A31SEC |
3 |
B |
Section label A31 |
1 |
|
|
A31NME |
2 |
N |
Transportation type 20 = Rail |
1 |
|
|
A31SEG |
1 |
A |
Segment identifier |
1 |
|
|
A31NUM |
2 |
N |
Itinerary index number (Segment Number of Rail Segments) Segments are numbered sequentially. The numbering is assigned by Travelport Smartpoint for Rail. It does not necessarily reflect the segment numbers as seen in the PNR. |
1 |
|
|
A31LEG |
1 |
A |
Leg Identifier |
1 |
|
|
A31LID |
2 |
N |
Leg number Leg numbers refer to the segment to which they are associated. E.g. segment 01 Maidenhead/Swindon has two legs Maidenhead/Reading and Reading/Swindon. The legs will be numbered 01, 02. |
1 |
|
|
A31JTP |
1 |
A |
Journey type If it is a return journey (RT), the ‘journey type code’ will be ‘O’ for outbound Legs and ‘R’ for return Legs. If not a return journey, the ‘journey type code’ will be ‘S’ for single for all Legs. |
1 |
|
|
A31DOM |
1 |
A |
Domestic/International indicator INPUT: Blank or D or I |
1 |
|
|
A31B01 |
1 |
B |
Blank filled |
1 |
|
|
A31MVC |
4 |
B/S |
Marketing vendor code (UIC Code) |
1 |
|
|
A31PNR |
8 |
B/S |
Vendor PNR |
1 |
|
|
A31FLT |
5 |
B/S |
Service number Train number where available. |
1 |
|
|
A31B02 |
1 |
B |
Blank filled |
1 |
|
|
A31CLS |
2 |
B/S |
Class of service For domestic rail the codes will generally be:
Eurostar will use
Note that individual operators may add new codes without prior notice and that those codes may be alpha or numeric or any combination. |
1 |
|
|
A31C01 |
1 |
S |
Carriage return
|
Level |
Hex |
Dec |
Label |
Bytes |
Type |
Description |
1 |
|
|
A31DTES |
7 |
B |
Departure date (Format: DDMMMYY) |
1 |
|
|
A31TME |
4 |
B/S |
Departure time 24 hour clock is used, left justified. Departure time will not be present in Rail MIR in the following cases. Domestic Segments (i.e. as opposed to domestic legs where it will be included) and ERS open segments. |
1 |
|
|
A31B03 |
1 |
B |
Blank filled |
1 |
|
|
A31ARV |
7 |
B/S |
Arrival date (Format: DDMMMYY) |
1 |
|
|
A31ATM |
4 |
B/S |
Arrival time 24 hour clock is used, left justified. Arrival date and time will not be present in Rail MIR in the following cases. Domestic Segments (i.e. as opposed to domestic legs where it will be included) and ERS open segments. |
1 |
|
|
A31B04 |
1 |
B |
Blank filled |
Rail Vendors: e.g. Deutsch Bahn (DB), BeNe (BN) and thetrainline.com (TTL) use different coding schemes. The following are the codes for London St Pancras: DB 7015550, BeNe GBSPX, TTL STP. Travelport Smartpoint for Rail supports a single normalised coding scheme, based on UIC (International Union of Railways) coding. The code for London St Pancras is U7015550. |
||||||
1 |
|
|
A31OCI |
29 |
I |
Origin city information
|
2 |
|
|
A31OIC |
8 |
B/S |
Origin city UIC code |
2 |
|
|
A31OCN |
21 |
B/S |
Origin city name |
1 |
|
|
A31DCI |
29 |
I |
Destination city information |
2 |
|
|
A31DIC |
8 |
B/S |
Destination city UIC code |
2 |
|
|
A31DCN |
21 |
B/S |
Destination city name |
1 |
|
|
A31C02 |
1 |
S |
Carriage return
|
Level |
Hex |
Dec |
Label |
Bytes |
Type |
Description |
1 |
|
|
A31MVN |
21 |
B/S |
Marketing vendor name |
1 |
|
|
A31OVC |
4 |
B/S |
Operating vendor code |
1 |
|
|
A31OVN |
21 |
B/S |
Operating vendor name |
1 |
|
|
A31EQP |
11 |
B/S |
Equipment type (e.g., TGV, 320) |
1 |
|
|
A31B05 |
1 |
B |
Blank filled |
1 |
|
|
A31CO2 |
4 |
B/S |
Carbon footprint |
1 |
|
|
A31OID |
15 |
B/S |
Operation ID (e.g., Final Ticket, Exchange, Refund) |
1 |
|
|
A31C03 |
1 |
S |
Carriage return
|
Level |
Hex |
Dec |
Label |
Bytes |
Type |
Description |
---|---|---|---|---|---|---|
1 |
|
|
A31SEC |
3 |
B |
Section label A31 |
1 |
|
|
A31NME |
2 |
N |
Transportation type 20 = Rail |
1 |
|
|
A31SEG |
1 |
A |
Segment identifierEGMENT |
1 |
|
|
A31NUM |
2 |
N |
Itinerary index number (segment number of rail segments) Segments are numbered sequentially. The numbering is assigned by Travelport Smartpoint for Rail. It does not necessarily reflect the segment numbers as seen in the PNR. |
1 |
|
|
A31LEG |
1 |
A |
Leg identifier |
1 |
|
|
A31LID |
2 |
N |
Leg number Leg numbers refer to the segment to which they are associated. E.g. segment 01 Maidenhead/Swindon has two legs Maidenhead/Reading and Reading/Swindon. The legs will be numbered 01, 02. |
1 |
|
|
A31JTP |
1 |
A |
Journey type If it is a return journey (RT), the ‘journey type code’ will be ‘O’ for outbound Legs and ‘R’ for return Legs. If not a return journey, the ‘journey type code’ will be ‘S’ for single for all Legs. |
1 |
|
|
A31DOM |
1 |
A |
Domestic/International indicator INPUT: Blank or D or I |
1 |
|
|
A31B01 |
1 |
B |
Blank filled |
1 |
|
|
A31MVC |
4 |
B/S |
Marketing vendor code (UIC Code) |
1 |
|
|
A31PNR |
8 |
B/S |
Vendor PNR |
1 |
|
|
A31FLT |
5 |
B/S |
Service number Train number where available. |
1 |
|
|
A31B02 |
1 |
B |
Blank filled |
1 |
|
|
A31CLS |
2 |
B/S |
Class of service For domestic rail the codes will generally be:
Eurostar will use
Note that individual operators may add new codes without prior notice and that those codes may be alpha or numeric or any combination. |
1 |
|
|
A31C01 |
1 |
S |
Carriage return
|
Level |
Hex |
Dec |
Label |
Bytes |
Type |
Description |
1 |
|
|
A31DTES |
7 |
B |
Departure date (Format: DDMMMYY) |
1 |
|
|
A31TME |
4 |
B/S |
Departure time 24 hour clock is used, left justified. Departure time will not be present in Rail MIR in the following cases. Domestic Segments (i.e. as opposed to domestic legs where it will be included) and ERS open segments. |
1 |
|
|
A31B03 |
1 |
B |
Blank filled |
1 |
|
|
A31ARV |
7 |
B/S |
Arrival date (Format: DDMMMYY) |
1 |
|
|
A31ATM |
4 |
B/S |
Arrival time 24 hour clock is used, left justified. Arrival date and time will not be present in Rail MIR in the following cases. Domestic Segments (i.e. as opposed to domestic legs where it will be included) and ERS open segments. |
1 |
|
|
A31B04 |
1 |
B |
Blank filled |
Rail Vendors: e.g. Deutsch Bahn (DB), BeNe (BN) and thetrainline.com (TTL) use different coding schemes. The following are the codes for London St Pancras: DB 7015550, BeNe GBSPX, TTL STP. Travelport Smartpoint for Railsupports a single normalised coding scheme, based on UIC (International Union of Railways) coding. The code for London St Pancras is U7015550. |
||||||
1 |
|
|
A31OCI |
29 |
I |
Origin city information
|
2 |
|
|
A31OIC |
8 |
B/S |
Origin city UIC code |
2 |
|
|
A31OCN |
21 |
B/S |
Origin city name |
1 |
|
|
A31DCI |
29 |
I |
Destination city information |
2 |
|
|
A31DIC |
8 |
B/S |
Destination city UIC code |
2 |
|
|
A31DCN |
21 |
B/S |
Destination city name |
1 |
|
|
A31C02 |
1 |
S |
Carriage return
|
Level |
Hex |
Dec |
Label |
Bytes |
Type |
Description |
1 |
|
|
A31MVN |
21 |
B/S |
Marketingvendor name |
1 |
|
|
A31OVC |
4 |
B/S |
Operating vendor code |
1 |
|
|
A31OVN |
21 |
B/S |
Operating vendor name |
1 |
|
|
A31EQP |
11 |
B/S |
Equipment type (e.g., TGV, 320) |
1 |
|
|
A31B05 |
1 |
B |
Blank filled |
1 |
|
|
A31CO2 |
4 |
B/S |
Carbon footprint |
1 |
|
|
A31OID |
15 |
B/S |
Operation ID (e.g., Final Ticket, Exchange, Refund) |
1 |
|
|
A31C03 |
1 |
S |
Carriage return
|
Level | Hex | Dec | Label | Bytes | Type | Description |
---|---|---|---|---|---|---|
Note: Amounts do not include decimal place. |
||||||
1 |
|
|
A31CUR |
3 |
B/S |
Currency code for all amounts |
1 |
|
|
A31DEC |
1 |
N |
Decimal places |
1 |
|
|
A31PAY |
2 |
B/S |
Payment type
|
1 |
|
|
A31FOP |
30 |
B/S |
Form of payment Any credit card numbers will be ‘X’ (masked) for security purposes. This FOP is when a different FOP is used than the Host FOP in the section higher up. |
1 |
|
|
A31B06 |
1 |
B |
Blank filled |
1 |
|
|
A31FTA |
12 |
B/S |
Final total amount Note: This field is currently left justified and blank filled. |
1 |
|
|
A31C04 |
1 |
S |
Carriage return
|
Level |
Hex |
Dec |
Label |
Bytes |
Type |
Description |
1 |
|
|
A31FPD |
7 |
B/S |
Final payment date Last Date to Ticket (Format: DDMMMYY) |
1 |
|
|
A31B07 |
1 |
B |
Blank filled |
1 |
|
|
A31FIN |
20 |
B/S |
Fare basis code |
1 |
|
|
A31B08 |
1 |
B |
Blank filled |
1 |
|
|
A31RTD |
30 |
B/S |
Rate description (e.g., Supersaver, Business Saver) |
1 |
|
|
A31C05 |
1 |
S |
Carriage return
|
1 |
|
|
A31TKI |
3 |
A/S |
Ticketed indicator ID TK: |
1 |
|
|
A31PAX |
2 |
B/S |
Passenger number |
1 |
|
|
A31SGT |
2 |
B/S |
Segment number |
1 |
|
|
A31LGT |
2 |
B/S |
Leg number |
1 |
|
|
A31B09 |
1 |
B |
Blank filled |
1 |
|
|
A31ATN |
15 |
B/S |
Ticket number |
1 |
|
|
A31B10 |
1 |
B |
Blank filled |
1 |
|
|
A31TTY |
25 |
B/S |
Ticket Type (E-TICKET, PAPER) |
1 |
|
|
A31DEL |
20 |
B/S |
Delivery method (e.g., KIOSK, MAIL) |
1 |
|
|
A31TPT |
2 |
B/S |
Product type (e.g., DV, IV, CV) |
1 |
|
|
A31OPN |
1 |
B/S |
Open ticket Input O or blank |
1 |
|
|
A31PCC |
4 |
B/S |
PCC of agent that made the ticketing entry |
1 |
|
|
A31C06 |
1 |
S |
Carriage return
|
Level |
Hex |
Dec |
Label |
Bytes |
Type |
Description |
---|---|---|---|---|---|---|
1 |
|
|
A31ACI |
3 |
A/S |
Reserved accommodation ID AC: |
1 |
|
|
A31PNUM |
2 |
B/S |
Passenger number |
1 |
|
|
A31AID
|
5 |
A/S |
Seat accommodation type ID Always hard code SEAT as Berths are also seats. |
1 |
|
|
A31ATP |
4 |
B/S |
Seat/Berth Accommodation type |
1 |
|
|
A31B11 |
1 |
B |
Blank filled |
1 |
|
|
A31CBN |
2 |
B/S |
Coach number |
1 |
|
|
A31B12 |
1 |
B |
Blank filled |
1 |
|
|
A31FTN |
20 |
B/S |
Frequent traveller |
1 |
|
|
A31C07 |
1 |
S |
Carriage return |
Note: Carriage Return "A31C07" is a floating carriage return related to the Rail Data item. This carriage return is located after the last Optional Data field present in this Rail Data item. |
||||||
1 |
|
|
A31C08 |
1 |
S |
Carriage return - This carriage return indicates the end of the Rail Data Section and follows the last Rail Data Item. |
Unless otherwise specified, the following values will apply to the MIR specification:
-
Alpha (TYPE A) fields are blank filled and left justified.
-
Numeric (TYPE N) fields are zero filled and right justified.
-
Alpha/Numeric (TYPE B) fields are blank filled and left justified.
-
Alpha/Numeric with Special Character (TYPE B/S) are blank filled and left justified.
Each leg of the journey will have its own TUR-Rail segment. Associated Remarks that apply to all TUR-Rail segments will only be associated to the first TUR-Rail segment.
When the RAIL DATA MIR option is set to ‘Y’, any TUR-Rail segment and Associated Remarks data identifiers and data elements not defined in the A31 Rail Data MIR specification will be ignored and not included in the MIR. When the RAIL DATA MIR Option is set to ‘N’, all TUR-Rail segment and Associated Remarks data identifiers and data elements will be included in the A16 Auxiliary Segments and A15 Associated/Unassociated Remarks sections of the Travelport+ MIR.
If a TUR-Rail segment’s Associated Remarks are manually updated and a duplicate Associated Remark identifier is encountered in the array of Associated Remarks, the last duplicate Associated Remark identifier in the array of Associated Remarks will be transmitted in the A31 MIR section when the RAIL DATA MIR option is set to ‘Y’.
If a TUR-Rail segment and/or Associated Remark is manually modified and its data elements exceed the A31 Rail Data MIR specification, the data within the defined MIR field will be truncated from right to left.
Sample Travelport+ MIR (MIR Option RAIL DATA ‘Y’)
Single Passenger, Single Leg Journey (OW)
Sample Booking File
5274PE/02 XDBKR C000005 AG 99999992 22JUL
1.1TRAVELER/RAIL
1. TUR ZZ BK1 ZZZ 18AUG-/TYP-TRN/S01L01SD/CL-02/DEP-ROMA TERMI
NI/TD-2220/DTA-19AUG/TA-0140/ARR-MILANO CENTRALE/CF-R9517652
** ITINERARY REMARKS DATA EXISTS ** >*RI·
FONE-LONT/
TKTG-T*
>
Sample Associated Remarks
** ITINERARY REMARKS **
ASSOCIATED ITINERARY REMARKS
1. TOUR ZZ 18AUG ZZZ
1. VT*9544
2. EQ*RAIL COACH
3. CC*9595
4. AN*RAIL ITALY
5. VC*9595
6. ON*RAIL ITALY
7. WS01*02*10B
8. ACT*FINAL TICKET
9. FB*SPRECONOMY
10. RTD*SUPER ECONOMY
11. CUR*EUR
12. FPA*79.00
13. FPD*22JUL
14. PAY*CC
15. FOP*AXXXXXXXXXXXXX2004 EXP 1217
16. FT01*RR9876543267
17. CC1*I2345678
18. CC2*M8765432
19. PT*DV
20. TTY*E-TICKET
21. DEL*KIOSK
22. TKD*
23. TKB*XYZZ
24. CO2*6.7
25. TK010101*0001234567890
UNASSOCIATED ITINERARY REMARKS
NO UNASSOCIATED REMARKS EXIST
Sample TKPDAD (Non-Accounting) MIR Transmission
Note: BOLDED data fields in the A31 MIR section are mapped from the TUR-Rail segment. All other data fields in the A31 MIR section are mapped from the TUR-Rail segment’s Associated Remarks or are present as defined in the A31 MIR specification.
T51G773392011210022622JUL152029 000 C2BAD6C5F9F1
X8Q X8Q99999992 5274PE C1002N02AG22JUL1500022JUL15002
000000000000 GBP00000000 00000000 00000000 00000000 00000000 000000000000
N NNN0N NAYA NNN GB
000000001000000000000000000000001000000025001000
A02TRAVELER/RAIL 5 N
EN:TRAVELER/RAIL C35:N
A12LONT /
A3120S01L01SD 9595R95176529544 02
18AUG15222019AUG150140 I2345678ROMA TERMINI M8765432MILANO CENTRALE
RAIL ITALY 9595RAIL ITALY RAIL COACH 6.7 FINAL TICKET
EUR2CCAXXXXXXXXXXXX2004 EXP 1217 7900
22JUL15 SPRECONOMY SUPER ECONOMY
TK:010101 0001234567890 E-TICKET KIOSK DV XYZZ
AC:01SEAT-10B 02 RR9876543267
Note: MIR Label A31FTA (FINAL Total amount) is currently left justified and blank filled.
All examples and other inserts associated with system output are provided for illustration purposes only. They are provided as illustrative examples of system functionality.