Create a hold order
POST https://api.duffel.com/air/orders
Creating an order to hold the passenger’s seat
Booking a hold order is similar to booking an order that is paid instantly, but you need to take some additional steps: 1. Set the type field to hold 2. Omit the payments key, as no payment takes place at the time of booking 3. Omit the services key, as it’s currently not possible to book services (for example extra bags) with hold orders
Request Body
{"data"=>{"type"=>"hold", "selected_offers"=>["{{OFFER_ID}}"], "passengers"=>[{"phone_number"=>"+442080160508", "email"=>"tony@example.com", "born_on"=>"1980-07-24", "title"=>"mr", "gender"=>"m", "family_name"=>"Stark", "given_name"=>"Tony", "id"=>"{{PASSENGER_ID}}"}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Duffel-Version | string | ||
Accept | string |