You can get quick answer of your question by entering here
Why I am getting an error "There is Problem in Booking Details.Please provide the details of the lead passenger. Set 'IsLeadPax' to true in the passenger details for the lead passenger." in the Book API?
You are getting the error:
"There is Problem in Booking Details. Please provide the details of the lead passenger. Set 'IsLeadPax' to true in the passenger details for the lead passenger."
This error occurs because the value of the "IsLeadPax" parameter is incorrect in your API request.
How to pass the correct value of IsLeadPax:
-
For a single passenger booking:
Pass"IsLeadPax": true -
For multiple passenger bookings:
-
For the first (lead) passenger, pass
"IsLeadPax": true -
For all remaining passengers, pass
"IsLeadPax": false
-
Kindly refer to the API documentation for more details:
API Doc: https://www.srdvtechnologies.com/document/flight/v8/ticket-lcc