Create order with services

POST https://api.duffel.com/air/orders

When creating an order, you'll need to pass in a list of services to refer to the seat(s) you want to book.

Looking back to our seat map, we knew that a seat was available because it had one or more available_services attached to it.

The services attribute when creating an order is a list. Each entry in the list should have an id and a quantity. The quantity will always be 1, and the $SEAT_SERVICE_ID should be the ID of the available service which corresponds to the passenger you want to book the seat for.

HEADERS

KeyDatatypeRequiredDescription
Duffel-Versionstring
Content-Typestring