Yihong Zou
Yihong Zou

Reputation: 1

Sabre request error

I have got "Error in Request: No Pax types given" from the response of Bargin Finder Max API and here is my request:

enter image description here

I use json.dumps to turn the dictionary into json.

Can anyone tell me how to solve this?

Upvotes: 0

Views: 105

Answers (1)

PianoLontano23
PianoLontano23

Reputation: 479

Have you tried adding the passenger type to the request like the way it's shown in the sample docs?

"AirTravelerAvail" : [ { "PassengerTypeQuantity" : [ { "Code" : "ADT", "Quantity" : 5, "Changeable" : true } ] } ],

I would use just one ADT to test.

Upvotes: 0

Related Questions