PNR Check
GET http://indianrailapi.com/api/v2/PNRCheck/apikey/{{trainapikey}}/PNRNumber/{{pnrno}}/Route/1/
Using Indian Rail API to check the PNR status of the train. This request uses an API KEY which can be generated and a PNR number. Both API key and PNR no are set as environment variables. Chart prepared or not is being checked from the generated response using test scripts. Test scipts are also used to check the booking status of all the passengers travelling with this PNR.
RESPONSES
status: OK
{"PnrNumber":"2618637501","Status":"SUCCESS","ResponseCode":"200","TrainNumber":"14682","TrainName":"JUC NDLS EXPRES","JourneyClass":"2S","ChatPrepared":"NO","From":"SAHARANPUR","To":"DEOBAND","JourneyDate":"31-01-2019","Passangers":[{"Passenger":"Passenger 1","BookingStatus":"--","CurrentStatus":"D1,44"}]}