You can get quick answer of your question by entering here
Why we are getting an error "invalid passenger" in the flight book response API?
Ensure that the passenger count in the Search request matches the passenger data array in the Book request. Also, verify the passenger array parameter being used in the Book request.
Refer to the API document: https://www.srdvtechnologies.com/doc/flight/v8/flight