Structure for getBooking
over 2 years ago by Isaac Cohen
Dear Customers and Partners,
We are proceeding to do some changes to getBooking response structure of the checkin element has changed in order to provide the data of each flight including the specific boarding passes.
See below an example of the new format:
{
"aerocrs": {
"success": true,
"booking": {
"linktobooking": "http://devsandbox.aerocrs.com//booking/CFFA1B69-F498-4B00-8F89-653E15D530CA",
"pnrref": "288CFFA1",
"bookingid": 37892963,
"invoicenumber": 19068,
"bookingconfirmation": "CFFA1B69-F498-4B00-8F89-653E15D530CA",
"ticketnumber": "2889314767",
"status": "OK",
"source": "CRS",
"linktoticket": "https://clients.aerocrs.com/Shared/tkt.asp?rand=997963&ID=CFFA1B69-F498-4B00-8F89-653E15D530CA",
"flights": {
"flight": [{
"airline": "DevSandbox",
"airlinedesignator": "DS",
"from": "Zurich",
"fromcode": "ZRH",
"to": "Tel Aviv",
"tocode": "TLV",
"class": "E",
"flightdate": "2022/06/29",
"depart": "15:00",
"arrive": "17:00",
"number": "TS101",
"invid": 28380776,
"invpricing": "232.00",
"flightcode": 4163678,
"flightid": 22049475,
"aircraftType": "Airbus 320",
"aircraftTypeIataCode": "",
"airlineICAOcode": "DVS",
"arrivalTerminal": "",
"departureTerminal": "",
"totaltaxes": 0,
"taxes": {
"Fee": 0,
"Security": 0,
"tax_3": 0,
"tax_4": 0
}
},
{
"airline": "DevSandbox",
"airlinedesignator": "DS",
"from": "Tel Aviv",
"fromcode": "TLV",
"to": "Zurich",
"tocode": "ZRH",
"class": "Y",
"flightdate": "2022/06/30",
"depart": "12:00",
"arrive": "15:00",
"number": "C1007",
"invid": 28380777,
"invpricing": "180.00",
"flightcode": 4171668,
"flightid": 22061936,
"aircraftType": "Boeing 747",
"aircraftTypeIataCode": "",
"airlineICAOcode": "DVS",
"arrivalTerminal": "",
"departureTerminal": "",
"totaltaxes": 70,
"taxes": {
"Fee": 70,
"Security": 0,
"tax_3": 0,
"tax_4": 0
}
}
]
},
"passengers": {
"passenger": [{
"rph": 19575920,
"paxtitle": "Mr.",
"lastname": "Doe",
"firstname": "John",
"paxtype": "ADULT",
"nationality": null,
"passportexpiry": null,
"paxdoctype": "PP",
"paxpassportnum": "34443434",
"paxpassportcountry": null,
"gender": "M",
"dob": "2000-06-08",
"email": "[email protected]",
"contact": "34234432",
"checkin": {
"flight": [{
"number": "TS101",
"status": "Checked-in",
"boardingpass": "http://devsandbox.aerocrs.com/Shared/BoardingPass.asp?ID=66809C6A-E26C-4DC2-BB25-2AE372FC76AC"
},
{
"number": "C1007",
"status": "Checked-in",
"boardingpass": "http://devsandbox.aerocrs.com/Shared/BoardingPass.asp?ID=EF11FA9D-2FCE-4A51-B9B7-A3CADCC16236"
}
]
},
"e-tickets": {
"flight": [{
"number": "TS101",
"eticketnumber": "2880000133892"
},
{
"number": "C1007",
"eticketnumber": "2880000133892"
}
]
}
},
{
"rph": 19575921,
"paxtitle": "Mr.",
"lastname": "Nagar",
"firstname": "esty",
"paxtype": "ADULT",
"nationality": null,
"passportexpiry": null,
"paxdoctype": "PP",
"paxpassportnum": "34324234",
"paxpassportcountry": null,
"gender": "M",
"dob": "2000-06-08",
"contact": "2434423",
"checkin": {
"flight": [{
"number": "TS101",
"status": "Boarded",
"boardingpass": "http://devsandbox.aerocrs.com/Shared/BoardingPass.asp?ID=08C60F20-0336-48E7-A713-67AACB40A9A3"
},
{
"number": "C1007",
"status": "Checked-in",
"boardingpass": "http://devsandbox.aerocrs.com/Shared/BoardingPass.asp?ID=B3DDC1A6-69CC-4051-9DCD-6C7EB84DFBD5"
}
]
},
"e-tickets": {
"flight": [{
"number": "TS101",
"eticketnumber": "2880000133893"
},
{
"number": "C1007",
"eticketnumber": "2880000133893"
}
]
}
}
]
},
"remarks": {},
"vouchers": [],
"Balanceinformation": {
"PNRoutstandingpayment": 0,
"PNRtotal": 432
},
"currencies": {
"EUR": ".7800",
"USD1": "1.0000",
"KES": "108.4500",
"XOF": "2.0000",
"MMK": "1380.0000",
"NPR": "1.0000",
"GBP": ".8000",
"TZS": "2300.0000",
"CHF": ".0015",
"KWD": ".3340",
"XAF": "33.4000",
"ZAR": "3.0000",
"XPF": ".8000",
"AUD": ".7600",
"INR": "101.0000",
"BRL": "5.1600",
"USD": 1
},
"balanceInCurrencies": {
"EUR": {
"PNRtotal": 336.96,
"PNRoutstandingpayment": 0
},
"USD1": {
"PNRtotal": 432,
"PNRoutstandingpayment": 0
},
"KES": {
"PNRtotal": 46850,
"PNRoutstandingpayment": 0
},
"XOF": {
"PNRtotal": 864,
"PNRoutstandingpayment": 0
},
"MMK": {
"PNRtotal": 596160,
"PNRoutstandingpayment": 0
},
"NPR": {
"PNRtotal": 432,
"PNRoutstandingpayment": 0
},
"GBP": {
"PNRtotal": 345.6,
"PNRoutstandingpayment": 0
},
"TZS": {
"PNRtotal": 993600,
"PNRoutstandingpayment": 0
},
"CHF": {
"PNRtotal": 0.6,
"PNRoutstandingpayment": 0
},
"KWD": {
"PNRtotal": 144.29,
"PNRoutstandingpayment": 0
},
"XAF": {
"PNRtotal": 14428.8,
"PNRoutstandingpayment": 0
},
"ZAR": {
"PNRtotal": 1296,
"PNRoutstandingpayment": 0
},
"XPF": {
"PNRtotal": 346,
"PNRoutstandingpayment": 0
},
"AUD": {
"PNRtotal": 328.32,
"PNRoutstandingpayment": 0
},
"INR": {
"PNRtotal": 43632,
"PNRoutstandingpayment": 0
},
"BRL": {
"PNRtotal": 2229.12,
"PNRoutstandingpayment": 0
},
"USD": {
"PNRtotal": 432,
"PNRoutstandingpayment": 0
}
},
"receipts": [{
"receipt": "12755",
"paidamount": 432,
"paidcurrency": "USD",
"amountdefaultcurrency": 432,
"paymentdata": "",
"cardapproval": "",
"paymentmethod": "Cash"
}]
}
}
}
This change will be implemented on 03/JUL/2022.
For any further questions, you can contact us at [email protected]