Transaction Latam Pub Test API

(0 reviews)

home

Order Retrieve

Overview :API to retrieve the order details

Resource URL :https://dev-api.amtrak.com/v1/order/retrieve

More info :Here

Request Specification :

HTTP MethodGET
Content Typeapplication/json

Query Parameter :

pnr : PNR Number of reservation

order : order Number of reservation

emailAddress : email address given during reservation

phoneNumber : phone number given during reservation

agrNumber : AGR number given during reservation

Request Body Parameter

NA

Request Body Example

NA

Response Body Parameter

NA

Response Body Example

{
    "data": {
        "cancel": true,
        "modify": true,
        "retrieveResWsDTO": {
            "success": {
                "orderDoc": {
                    "cart": {
                        "tripList": [
                            {
                                "cartSeg": [
                                    {
                                        "price": {
                                            "farePlan": [
                                                {
                                                    "code": "DOF1"
                                                }
                                            ],
                                            "id": [
                                                "3001"
                                            ],
                                           "pax": [
                                                {
                                                    "count": 3,
                                                    "type": "F"
                                                }
                                            ],
                                            "rail": 174,
                                            "total": 174
                                        },
                                        "seg": {
                                            "bookingDateTime": "2018-03-17T09:37:00",
                                            "borderCross": false,
                                            "cancelled": false,
                                            "destination": {
                                                "code": "PHL",
                                                "dateTime": "2018-03-26T04:52:00",
                                                "manned": true
                                            },
                                            "id": "1",
                                            "marketingProvider": "2V",
                                            "operatingProvider": "AM",
                                            "origin": {
                                                "code": "NYP",
                                                "dateTime": "2018-03-26T03:25:00",
                                                "manned": true
                                            },
                                            "rbd": {
                                                "code": "YD",
                                                "count": 3
                                            },
                                            "restricted": false,
                                            "status": "HK",
                                            "tariffType": "C",
                                            "trainNum": "67"
                                        }
                                    }
                                ],
                                "logicalTripNum": 1
                            }
                        ]
                    },
                    "contact": {
                        "id": "6001",
                        "type": "P"
                    },
                    "emailList": [
                        {
                            "emailAddress": "TESTEMA06602@AMTRAK.COM",
                            "id": "5002"
                        }
                    ],
                    "fopList": [
                        {
                            "card": {
                                "cardNumber": "7154452703581000",
                                "expirationDate": "2018-12",
                                "name": "TESTFNAM TESTLNAME"
                            },
                            "code": "AX",
                            "id": "1001"
                        }
                    ],
                    "header": {
                        "agrExchangeCoupon": false,
                        "agrReservation": false,
                        "autoConfirmedNeutralSegment": false,
                        "bookingOutletType": "IND",
                        "createAgent": "0910",
                        "createDutyCode": "IW",
                        "eTktReservation": false,
                        "erokhlReservation": false,
                        "gdsCurrentOwner": "RR",
                        "gdsOrigOwner": "RR",
                        "holdLimitDateChangedThisTrans": false,
                        "invalidPTAReservation": false,
                        "lastUpdateAgent": "0910",
                        "modified": false,
                        "napLastStationNotStaffed": false,
                        "permanentReservation": false,
                        "pnrType": {
                            "codeShare": false,
                            "crew": false,
                            "firearm": false,
                            "group": false,
                            "passRider": false,
                            "training": false
                        },
                        "retrievedReservation": true,
                        "schAddedThisTransaction": false,
                        "validPTAReservation": false
                    },
                    "holdLimit": {
                        "date": "2018-03-20",
                        "id": "8001"
                    },
                    "id": "7E0AF616-2A01-11E8-81C3-010630C72965",
                    "miscList": [
                        {
                            "code": "FQT",
                            "id": "5001",
                            "value": "8319098920        /P1"
                        },
                        {
                            "code": "RMK",
                            "id": "5003",
                            "value": "PROFILEID/TESTEMA06602@AMTRAK.COM"
                        },
                        {
                            "code": "RMK",
                            "id": "5004",
                            "value": "IPADDRESS/171.76.84.222,63.234.249.8,23.215.131.70,172.19.53.237,"
                        },
                        {
                            "code": "RMK",
                            "id": "5005",
                            "value": "10.24.110.20"
                        },
                        {
                            "code": "RMK",
                            "id": "5006",
                            "value": "SHPT1-FQ1:NYPPHL%PT3F%FPDOF1"
                        },
                        {
                            "code": "RMK",
                            "id": "5007",
                            "value": "CREATED BY SITATEST"
                        },
                        {
                            "code": "ZIP",
                            "id": "5010",
                            "value": "06040"
                        }
                    ],
                    "osiList": [],
                    "rcn": "E2606E",
                    "receipt": {
                        "availableAmount": 174,
                        "chargeAmount": 0,
                        "eVoucherAmount": 174,
                        "excessTicketAmount": 0,
                        "firstEVoucherNum": "V495851789   ",
                        "forfeitAmount": 0,
                        "liftedAmount": 0,
                        "multiRiderInd": false,
                        "newTicketAmount": 0,
                        "originalDateTime": "1969-12-31T17:00:00",
                        "refundAmount": 0,
                        "refundFee": 0,
                        "refundWithFee": 0,
                        "refundWithoutFee": 0,
                        "tddMultiRideInd": false,
                        "ticketHoldCount": "2",
                        "ticketNum": [
                            "0760723500095",
                            "0760723500103",
                            "0760723500111"
                        ],
                        "totalTicketAmount": 0,
                        "unLiftedAmount": 174
                    },
                    "resDocList": [
                        {
                            "id": "7E191D72-2A01-11E8-81C3-010630C72965",
                            "pax": {
                                "loyalty": {
                                    "id": "5001",
                                    "num": "8319098920",
                                    "provider": "2V"
                                },
                                "name": {
                                    "givenName": "TESTFNAM",
                                    "id": "1",
                                    "surName": "TESTLNAME"
                                },
                                "phone": [
                                    {
                                        "areaCode": "202",
                                        "id": "9001",
                                        "number": "9064406",
                                        "type": "C"
                                    },
                                    {
                                        "areaCode": "202",
                                        "id": "9002",
                                        "number": "9061234",
                                        "type": "H"
                                    },
                                    {
                                        "areaCode": "202",
                                        "id": "9003",
                                        "number": "9065678",
                                        "type": "B"
                                    }
                                ]
                            },
                            "paxPriceList": [
                                {
                                    "fare": {
                                        "amount": 58,
                                        "farePlan": "DOF1",
                                        "seg": {
                                            "segNum": "1"
                                        }
                                    },
                                    "id": "3001",
                                    "paxType": "F"
                                }
                            ],
                            "seqNum": "1",
                            "ticketList": [
                                {
                                    "active": false,
                                    "activityAgent": "0910",
                                    "activityDateTime": "2018-03-17T09:44:00",
                                    "fop": [
                                        {
                                            "amount": 58,
                                            "code": "AX"
                                        }
                                    ],
                                    "id": "7002",
                                    "num": "0760723500095",
                                    "segID": "1",
                                    "stationCode": "ITN",
                                    "tktCouponValue": 58,
                                    "type": "EKT"
                                }
                            ]
                        },
                        {
                            "id": "7E192024-2A01-11E8-81C3-010630C72965",
                            "pax": {
                                "name": {
                                    "givenName": "KUNAL",
                                    "id": "2",
                                    "surName": "YADAV"
                                }
                            },
                            "paxPriceList": [
                                {
                                    "fare": {
                                        "amount": 58,
                                        "farePlan": "DOF1",
                                        "seg": {
                                            "segNum": "1"
                                        }
                                    },
                                    "id": "3001",
                                    "paxType": "F"
                                }
                            ],
                            "seqNum": "2",
                            "ticketList": [
                                {
                                    "active": false,
                                    "activityAgent": "0910",
                                    "activityDateTime": "2018-03-17T09:44:00",
                                    "fop": [
                                        {
                                            "amount": 58,
                                            "code": "AX"
                                        }
                                    ],
                                    "id": "7003",
                                    "num": "0760723500103",
                                    "segID": "1",
                                    "stationCode": "ITN",
                                    "tktCouponValue": 58,
                                    "type": "EKT"
                                }
                            ]
                        },
                        {
                            "id": "7E1921D2-2A01-11E8-81C3-010630C72965",
                            "pax": {
                                "name": {
                                    "givenName": "JOHN",
                                    "id": "3",
                                    "surName": "DOE"
                                }
                            },
                            "paxPriceList": [
                                {
                                    "fare": {
                                        "amount": 58,
                                        "farePlan": "DOF1",
                                        "seg": {
                                            "segNum": "1"
                                        }
                                    },
                                    "id": "3001",
                                    "paxType": "F"
                                }
                            ],
                            "seqNum": "3",
                            "ticketList": [
                                {
                                    "active": false,
                                    "activityAgent": "0910",
                                    "activityDateTime": "2018-03-17T09:44:00",
                                    "fop": [
                                        {
                                            "amount": 58,
                                            "code": "AX"
                                        }
                                    ],
                                    "id": "7004",
                                    "num": "0760723500111",
                                    "segID": "1",
                                    "stationCode": "ITN",
                                    "tktCouponValue": 58,
                                    "type": "EKT"
                                }
                            ]
                        }
                    ]
                }
            }
        },
        "view": true
    },
    "errors": [],
    "success": true
}

Evoucher Validation

Overview : EVoucher Validation API

Resource URL : https://dev-api.amtrak.com/v2/voucher/validation

Request Specification :

HTTP MethodPOST
Content Typeapplication/json

URI Parameter : None

Request Body Parameter

NameTypeRequiredDescriptionExample
evouchersobjectObject for Evoucher data
evouchers.evoucher[]arrayArray for Evoucher Data
evouchers.evoucher.numberstringEvoucher NumberV496711811
evouchers.evoucher.agrNumberstringEvoucher AGR number12345
evouchers.evoucher.corporateIDstringCorporate ID12345
evouchers.evoucher.passengerNamearrayPassenger Name
evouchers.evoucher.passengerName.surnamestringSurname of passengerDoe
evouchers.evoucher.passengerName.givenNamestringGiven Name of passengerJohn
evouchers.evoucher.emailAddressarrayEmail ID of passengerKATIEIOBST@YAHOO.COM
evouchers.evoucher.telephonearrayObject for Telephone data
evouchers.evoucher.telephone.areaCodestringArea Code443
evouchers.evoucher.telephone.phoneNumberstringPhone Number5373283
evouchers.evoucher.pnrobjectObject to store PNR data
evouchers.evoucher.pnr.pnrNumberstringPNR NumberQw123
evouchers.evoucher.pnr.pnrCreationdatestringDate on which PNR was created2017-11-13

Request Body Example

{
    "evouchers": {
        "evoucher": {
            "number": "V496711811",
            "agrNumber": "12345",
            "corporateID": "12345",
            "passengerName": {
                "surname": "Doe",
                "givenName": "John"
            },
            "emailAddress": "KATIEIOBST@YAHOO.COM",
            "telephone": {
                "areaCode": "443",
                "phoneNumber": "5373283"
            },
            "pnr": {
                "pnrNumber": "Qw123",
                "pnrCreationdate": "2017-11-13"
            }
        }
    }
}

Response Body Parameter

NameTypeDescriptionExample
evouchersobjectObject for Evoucher data
evouchers.validationThresholdstringValidation threshold10
evouchers.evoucher[]arrayArray for Evoucher data
evouchers.evoucher[].numberstringNumber for EvoucherV165391284
evouchers.evoucher[].evoucherInfoobjectObject to store Evoucher info
evouchers.evoucher[].evoucherInfo.passengerNameobjectPassenger name in Evoucher
evouchers.evoucher[].evoucherInfo.passengerName.givenNamestringPassenger given name in evoucherADAM
evouchers.evoucher[].evoucherInfo.passengerName.surnamestringPassenger surname in evoucherCOHEN
evouchers.evoucher[].evoucherInfo.emailAddressstringEMail IDADAM.COHEN@AMTRAK.COM
evouchers.evoucher[].evoucherInfo.telephoneobjectObject for telephone data
evouchers.evoucher[].evoucherInfo.telephone.areaCodestringArea code fo phone number202
evouchers.evoucher[].evoucherInfo.telephone.phoneNumberstringPhone number9064406
evouchers.evoucher[].evoucherInfo.pnrobjectObject to store PNR data
evouchers.evoucher[].evoucherInfo.pnr.pnrCreationDatestringDate on which PNR was created2017-11-13
evouchers.evoucher[].evoucherInfo.pnr.pnrNumberstringPNR number6CECCB
evouchers.evoucher[].evoucherInfo.redemptionDetailsobjectObject for redemption details
evouchers.evoucher[].evoucherInfo.redemptionDetails.redemptionDetail[]arrayArray for redemption details
evouchers.evoucher[].evoucherInfo.issueDatestringIssue date of Evoucher2017-11-13
evouchers.evoucher[].evoucherInfo.issuedToNamestringName on which evoucher was issuedCOHEN/ADAM
evouchers.evoucher[].evoucherInfo.expirationDatestringExpiration date of evoucher2018-11-12
evouchers.evoucher[].evoucherInfo.amountstringEvoucher Amount732.00
evouchers.evoucher[].evoucherInfo.refundAmountstringRefund Amount for Evoucher732.00
evouchers.evoucher[].evoucherInfo.refundExpirationDatestringRefund expiration date o evoucher2018-11-12
evouchers.evoucher[].evoucherInfo.agrNumberstringAGR Number o evoucher12345678
evouchers.evoucher[].evoucherInfo.corporateIDstringCorporate Id for Evoucher12345
evouchers.evoucher[].evoucherInfo.b2BPartnerstringB2b Parner info
evouchers.evoucher[].evoucherInfo.originalValuestringOriginal Value732.00
evouchers.evoucher[].evoucherInfo.statusstringStatus of EvoucherACTIVE

Response Body Example

{
    "evouchers": {
        "validationThreshold": "10",
        "evoucher": [{
                "number": "V165391284",
                "evoucherInfo": {
                    "passengerName": {
                        "givenName": "ADAM",
                        "surname": "COHEN"
                    },
                    "emailAddress": "ADAM.COHEN@AMTRAK.COM",
                    "telephone": {
                        "areaCode": "202",
                        "phoneNumber": "9064406"
                    },
                    "pnr": {
                        "pnrCreationDate": "2017-11-13",
                        "pnrNumber": "6CECCB"
                    },
                    "redemptionDetails": {
                        "redemptionDetail": [
                            ""
                        ]
                    },
                    "issueDate": "2017-11-13",
                    "issuedToName": "COHEN/ADAM",
                    "expirationDate": "2018-11-12",
                    "amount": "732.00",
                    "refundAmount": "732.00",
                    "refundExpirationDate": "2018-11-12",
                    "agrNumber": "",
                    "corporateID": "",
                    "b2BPartner": "",
                    "originalValue": "732.00",
                    "status": "ACTIVE"
                }
            }
        ]
    }
}

Inventory hold

Overview : API to hold the inventory

Resource URL : https://dev-api.amtrak.com/v2/order/inventory-hold

Request Specification :

HTTP MethodPOST
Content Typeapplication/json

URI Parameter : None

Request Body Parameter

{

"cartId" : "string"
}

Request Body Example

{
"cartId" : "01234567"
}

Response Body Parameter

NameTypeDescriptionExample
payload.cartIdstringUnique cart id5352978f-6ea0-40ea-b1e7-37165b3790bf
payload.statusstringCart StatusON_HOLD
payload.timerstringTimer value5
successbooleanFlag to mark success of transactiontrue

Response Body Example

{
    "data": {
        "cartId": "5352978f-6ea0-40ea-b1e7-37165b3790bf",
        "status": "ON_HOLD"
        "timer": "5"
    },
    "errors": [],
    "success": true
}

Reservation

Overview : Reservation of Cart API

Resource URL : https://dev-api.amtrak.com/v2/reservation

Request Specification :

HTTP MethodPOST
Content Typeapplication/json

URI Parameter : NA

Request Body Parameter

NameTypeDescriptionExample
cartIdstringUnique CartID72722fb2-cab2-478f-995b-200dbf1d2e12
tdpReservationRequestAdditionalDetailsobjectRequest Additional Details
tdpReservationRequestAdditionalDetails.contactprefobjectContact Prefence
tdpReservationRequestAdditionalDetails.contactpref.contactTypestringContact Typephone
tdpReservationRequestAdditionalDetails.contactpref.intervalBeforeDeparturestringInterval Before Departure00:10:00
tdpReservationRequestAdditionalDetails.loggedInProfileobjectLoggedIn Profile
tdpReservationRequestAdditionalDetails.loggedInProfile.agrstringAgr No34232313
tdpReservationRequestAdditionalDetails.loggedInProfile.emailIdstringEmail IdPARINEETA@AMTRAK.COM
tdpReservationRequestAdditionalDetails.tncVersionstringtnc Version3.2.0

Request Body Example

{
  "cartId": "72722fb2-cab2-478f-995b-200dbf1d2e12",
  "tdpReservationRequestAdditionalDetails": {
    "contactpref": {
      "contactType": "phone",
     "intervalBeforeDeparture": "00:10:00"
    },
    "loggedInProfile": {
      "agr": "34232313",
      "emailId": "PARINEETA@AMTRAK.COM"
    },
    "tncVersion": "3.2.0"
  }
}

Response Body Parameter

PropertyTypeRequiredDefined by
cartIdstringOptional(this schema)
rcnstringOptional(this schema)
warningstringOptional(this schema)

Response Body Example

{
"cartId": "1a22202e-ff35-452d-9ee2-2d17d93f8c97",
"rcn": "E5D42B",
"warning": "true"
}

Payment

Overview : Order Payment API

Resource URL : https://dev-api.amtrak.com/v2/order/payment

Request Specification :

HTTP MethodPOST
Content Typeapplication/json

URI Parameter : NA

Request Body Parameter

NameTypeDescriptionExample
cartIdstringunique cartID
deviceIdstringunique deviceId23aq
travelInsurancestringtravelInsurance flagfalse
mfopOptionsobjectObject for mfopOptions data
mfopOptions.channelIdstringstring for channel ID12345
mfopOptions.channelNamestringstring for channel name
mfopOptions.mFoPTransactionIdstringstring for mFoPTransaction Id
mfopOptions.paymentOptionsobjectObject for paymentOptions data
mfopOptions.paymentOptions.creditCard[]ArrayArray for creditCard data
mfopOptions.paymentOptions.creditCard[].amountStringamount for the creditCard Payment68.00
mfopOptions.paymentOptions.creditCard[].cardNumberStringcardNumber for the creditCard Payment4012000077777777
mfopOptions.paymentOptions.creditCard[].expireDateStringexpireDate for the creditCard1225
mfopOptions.paymentOptions.creditCard[].cardHolderNameStringcardHolderName for the creditCardsasa
mfopOptions.paymentOptions.creditCard[].cvvStringcvv for the creditCard Payment123
mfopOptions.paymentOptions.creditCard[].track1DataStringtrack1Data for the creditCard Payment
mfopOptions.paymentOptions.creditCard[].track2DataStringtrack2Data for the creditCard Payment
mfopOptions.paymentOptions.creditCard[].eciCodeStringeciCode for the creditCard Payment05
mfopOptions.paymentOptions.creditCard[].transactionIDStringtransactionID for the creditCard Payment
mfopOptions.paymentOptions.creditCard[].avvStringavv for the creditCard Payment88
mfopOptions.paymentOptions.creditCard[].billingZipCodeStringbillingZipCode details for the creditCard10001
mfopOptions.paymentOptions.creditCard[].cardTypeStringcardType for the creditCardVI
mfopOptions.paymentOptions.creditCard[].addressTypeStringaddressType details for the creditCardB
mfopOptions.paymentOptions.creditCard[].addressLine1StringaddressLine1 for the creditCardasdas
mfopOptions.paymentOptions.creditCard[].addressLine2StringaddressLine2 details for the creditCardasdas
mfopOptions.paymentOptions.creditCard[].cityStringcity Details for the creditCardNY
mfopOptions.paymentOptions.creditCard[].stateStringstate details for the creditCardAL
mfopOptions.paymentOptions.creditCard[].orderDataobjectorderData details for the payment
mfopOptions.paymentOptions.creditCard[].orderData.agencyIdStringorderData details for the paymentABC123
mfopOptions.paymentOptions.creditCard[].orderData.paymentInfoobjectpaymentInfo details of orderData
mfopOptions.paymentOptions.creditCard[].orderData.paymentInfo.firstNameStringfirstName details of paymentInfoRishikesh
mfopOptions.paymentOptions.creditCard[].orderData.paymentInfo.lastNameStringlastName details of paymentInfoKollipara
mfopOptions.paymentOptions.creditCard[].orderData.paymentInfo.phoneStringphone details of paymentInfo2029064406
mfopOptions.paymentOptions.creditCard[].orderData.paymentInfo.emailStringemail details of paymentInforishikv@hotmail.com
mfopOptions.paymentOptions.creditCard[].orderData.journeySolutionobjectjourneySolution details of orderData
mfopOptions.paymentOptions.creditCard[].orderData.journeySolution.originCodeStringoriginCode details of journeySolutionWAS
mfopOptions.paymentOptions.creditCard[].orderData.journeySolution.originDateTimeStringoriginDateTime details of journeySolution2018-10-17T03:10:00
mfopOptions.paymentOptions.creditCard[].orderData.journeySolution.destinationCodeStringdestinationCode details of journeySolutionNYP
mfopOptions.paymentOptions.creditCard[].orderData.journeySolution.destinationDateTimeStringdestinationDateTime details of journeySolution2018-10-17T06:41:00
mfopOptions.paymentOptions.creditCard[].orderData.journeySolution.rbdCodeStringrbdCode For journeySolutionYD
mfopOptions.paymentOptions.creditCard[].orderData.journeySolution.farePlanStringfarePlan details of journeySolutionDOF1
mfopOptions.eCouponobjectObject for eCoupon data
mfopOptions.eCoupon.couponNumber[]ArrayArray of coupon numbers
mfopOptions.eCoupon.customerIDStringCustomer ID
mfopOptions.eCoupon.tripCreationDateStringcreation type of the trip
mfopOptions.eVouchers[]ArrayArray for eVouchers data
mfopOptions.eVouchers[].agrNumberStringagrNumber of logged in customer12345678
mfopOptions.eVouchers[].amountStringAmount in the voucher500.00
mfopOptions.eVouchers[].corporateIDStringcorporate ID
mfopOptions.eVouchers[].emailAddress[]ArrayArray of email addressrishikv@hotmail.com
mfopOptions.eVouchers[].numberStringevoucher numberV165391284
mfopOptions.eVouchers[].passengerName[]ArrayArray of passenger name
mfopOptions.eVouchers[].passengerName[].surnameStringpassenger surnameKollipara
mfopOptions.eVouchers[].passengerName[].givenNameStringpassenger givenNameRishikesh
mfopOptions.eVouchers[].pnrobjectPNR Object details
mfopOptions.eVouchers[].pnr.pnrCreationDateStringCreation Date of PNR2018-10-17T03:10:00
mfopOptions.eVouchers[].pnr.pnrNumberStringPNR numberE5A46F
mfopOptions.eVouchers[].telephone[]ArrayArray of telephone details
mfopOptions.eVouchers[].telephone[].areaCodeStringareaCode of the telephone202
mfopOptions.eVouchers[].telephone[].phoneNumberStringTelephone number9064406
mfopOptions.giftCard[]ArrayArray for gift card data
mfopOptions.giftCard[].amountStringAmount left in gift card300.00
mfopOptions.giftCard[].cardNumberStringGift card number123456789
mfopOptions.giftCard[].cvvStringGift card cvv number
mfopOptions.giftCard[].expireDateStringGift card expiry date2018-11-12
mfopOptions.giftCard[].track2DataStringTrack 2 data of gift card
mfopOptions.giftCard[].transactionTypeStringTransaction typeB
mfopOptions.rcnstringstring for rcn numberE5A46F
ticketDeliveryOptionsarrayarray for ticketDeliveryOptions dataBarcode

Request Body Example

{
    "cartId": "74fb58b1-7b28-431c-9011-c7b30c479845",
    "travelInsurance": "true",
    "deviceId": "23aq",
    "mfopOptions": {
        "paymentOptions": {
            "creditCard": {
                "amount": "372",
                "cardNumber": "4111111111111111",
                "expireDate": "2512",
                "cardHolderName": "Rishikesh Kollipara",
                "cvv": 123,
                "track1Data": "",
                "track2Data": "",
                "eciCode": "06",
                "transactionID": "123456789",
                "avv": "",
                "billingZipCode": "20002",
                "cardType": "VI",
                "addressType": "B",
                "addressLine1": "10 G St NE",
                "addressLine2": "NE",
                "city": "Washington",
                "state": "DC",
                "orderData": {
                    "agencyId": "ABC123",
                    "paymentInfo": {
                        "firstName": "Rishikesh",
                        "lastName": "Kollipara",
                        "phone": 2029064406,
                        "email": "rishikv@hotmail.com"
                    },
                    "journeySolution": {
                        "originCode": "WAS",
                        "originDateTime": "2018-10-17T03:10:00",
                        "destinationCode": "NYP",
                        "destinationDateTime": "2018-10-17T06:41:00",
                        "rbdCode": "YD",
                        "farePlan": "DOF1"
                    }
                }
            }
        }
    },
    "rcn": "E5A46F",
    "ticketDeliveryOptions": [
        "Barcode"
    ]
}

Response Body Parameter

NameTypeDescriptionExample
data.PNRNumberStringPNR details for ConfirmationBAF266
data.agrBooleanagr details for Confirmationfalse
data.contactPreferenceStringcontactPreference details for Confirmation
data.ecouponBooleanecoupon details for Confirmationfalse
data.fulfillmentObjectObject for fulfillment
data.fulfillment.ETicketEligibleBooleanBoolean for ETicketEligiblefalse
data.giftCardsObjectObject for giftCards
data.journeysObjectObject for journeys
data.journeys.modifiableBooleanmodifiable flag for journeysfalse
data.journeys.passengerArrayPassenger details for journeys
data.journeys.passenger.codeStringPassenger details for journeysF
data.journeys.passenger.quantityIntegerPassenger quantity for journeys1
data.journeys.refIdStringrefId flag for journeys1
data.journeys.roomsArrayrooms Details for journeys
data.journeys.seats[]Arrayseats Details for journeys
data.journeys.seats[].baseCodeStringBase CodeY
data.journeys.seats[].descriptionStringCode DescriptionReserved Coach Seat
data.journeys.seats[].orderStringBase Code Order2
data.journeys.seats[].quantityStringSeat Quantity1
data.journeys.seats[].typeStringSeat TypeYE
data.journeys.segments[]Arraysegments Details for journeys
data.journeys.segments[].additionalInfo[]ArrayAdditional Details for journey segments
data.journeys.segments[].ancillary[]ArrayAncillary Details for journey segments
data.journeys.segments[].arrivalDateTimeStringArrival Date time2018-11-06T03:25:00
data.journeys.segments[].arrivalStationCodeStringArrival Station CodeWAS
data.journeys.segments[].classCodeStringAncillary Details for journey segmentsYE
data.journeys.segments[].classCodeQuantityStringClass Code Quantity1
data.journeys.segments[].crossBorderBooleanBorder crossing flagFalse
data.journeys.segments[].departureDateTimeStringDepature Date time2018-11-06T03:25:00
data.journeys.segments[].departureStationCodeStringDeparture Station CodeNYP
data.journeys.segments[].destinationStationCodeStringDestination Station CodeWAS
data.journeys.segments[].displayRoomNumbersBooleanRoom number display flagFalse
data.journeys.segments[].isBusBooleanBus flagFalse
data.journeys.segments[].rooms[]ArrayRoom Details for journey segments
data.journeys.segments[].routeNameStringDeparture Station CodeNortheast Regional
data.journeys.segments[].seatAssignments[]ArraySeat Assignment Details for journey segments
data.journeys.segments[].seats[]ArraySeat Details Object Array for journey segments
data.journeys.segments[].seats[].abbrevDescrStringSeat descriptionReserved Coach Seat
data.journeys.segments[].seats[].baseCodeStringBase CodeY
data.journeys.segments[].seats[].cidStringCode IDReserved+Coach+Seat
data.journeys.segments[].seats[].cidTypeStringCode ID TypeAccommodation
data.journeys.segments[].seats[].descriptionStringCode DescriptionReserved Coach Seat
data.journeys.segments[].seats[].orderStringBase Code Order2
data.journeys.segments[].seats[].quantityStringSeat Quantity1
data.journeys.segments[].seats[].typeStringSeat TypeYE
data.journeys.segments[].segmentNumberStringSegment number1
data.journeys.segments[].segmentServiceStatusBooleanSegment service status flagfalse
data.journeys.segments[].trainNumberStringTrain number67
data.passengersArrayArray for passengers
data.passengers.firstNameStringfirstName Details for passengersRishikesh
data.passengers.lastNameStringlastName Details for passengersKollipara
data.passengers.orderStringorder Details for passengers0
data.passengers.passengerNumberStringpassengerNumber Details for passengers1
data.passengers.primaryBooleanprimary Details for passengersfalse
data.passengers.typeobjecttype for passengers
data.passengers.type.defaultBooleandefault Value for passengers TypeF
data.passengers.type.nameStringType for passengersAdult
data.passengers.type.valueBooleanValue for passengers TypeF
data.paymentsObjectObject for payments
data.pnrTypeStringpnrType details for Confirmation
data.responseCodeStringresponseCode details for ConfirmationSUCCESS
data.tddStatusObjectObject for tddStatus
data.tddStatus.documentDeliveryFlagBooleanflag for tddStatusfalse
data.totalFareObjectObject for totalFare
data.totalFare.accomFareStringaccomFare for totalFare0
data.totalFare.eVoucherStringeVoucher details for totalFare0
data.totalFare.railFareStringrailFare details for totalFare85
data.totalFare.rateQualifierArrayrateQualifier details for rateQualifierEO5N
data.totalFare.totalFareStringtotalFare details for totalFare85

Response Body Example

{
    "data": {
        "PNRNumber": "BAF266",
        "agr": false,
        "contactPreference": {},
        "ecoupon": false,
        "fulfillment": {
            "ETicketEligible": false
        },
        "giftCards": [],
        "journeys": [{
            "modifiable": false,
            "passenger": [{
                "code": "F",
                "quantity": 1
            }],
            "refId": "1",
            "rooms": [],
            "seats": [{
                "baseCode": "Y",
                "description": "Reserved Coach Seat",
                "order": 0,
                "quantity": 1,
                "type": "YE"
            }],
            "segments": [{
                "additionalInfo": [],
                "ancillary": [],
                "arrivalDateTime": "2018-11-06T03:25:00",
                "arrivalStationCode": "WAS",
                "classCode": "YE",
                "classCodeQuantity": 1,
                "crossBorder": "false",
                "departureDateTime": "2018-11-06T03:25:00",
                "departureStationCode": "NYP",
                "destinationStationCode": "WAS",
                "displayRoomNumbers": false,
                "isBus": "false",
                "rooms": [],
                "routeName": "Northeast Regional",
                "seatAssignments": [],
                "seats": [{
                    "abbrevDescr": "Reserved Coach Seat",
                    "baseCode": "Y",
                    "cid": "Reserved+Coach+Seat",
                    "cidType": "Accommodation",
                    "description": "Reserved Coach Seat",
                    "order": 2,
                    "quantity": 1,
                    "type": "YE"
                }],
                "segmentNumber": "1",
                "segmentServiceStatus": "false",
                "trainNumber": "67"
            }]
        }],
        "passengers": [{
            "firstName": "Rishikesh",
            "lastName": "Kollipara",
            "order": 0,
            "passengerNumber": "1",
            "primary": false,
            "type": {
                "default": false,
                "name": "Adult",
                "value": "F"
            }
        }],
        "payments": [],
        "pnrType": 0,
        "responseCode": "SUCCESS",
        "tddStatus": {
            "documentDeliveryFlag": false
        },
        "totalFare": {
            "accomFare": 0,
            "eVoucher": 0,
            "railFare": 85,
            "rateQualifier": [
                "EO5N"
            ],
            "totalFare": 85
        }
    },
    "errors": [],
    "success": true
}

Reviews