# Orders

Enables management of booking orders within the Demand API. </br></br>Use these endpoints to preview and create new orders, check order details, cancel or modify existing orders. This collection is required to integrate booking and order management functionality. 

## Preview an order

 - [POST /orders/preview](https://developers.booking.com/demand/docs/open-api/demand-api/orders/orders/preview.md): This endpoint returns the total final price with final charges, as well as the price breakdown and payment/cancellation policies for each product passed in the input.

## Create an order

 - [POST /orders/create](https://developers.booking.com/demand/docs/open-api/demand-api/orders/orders/create.md): Use this endpoint to confirm the booking and proceed the payment.

## Orders details

 - [POST /orders/details](https://developers.booking.com/demand/docs/open-api/demand-api/orders/orders/details.md): This endpoint returns basic information for orders filtered according to the input.

## Orders with accommodation details

 - [POST /orders/details/accommodations](https://developers.booking.com/demand/docs/open-api/demand-api/orders/orders/details/accommodations.md): This endpoint returns all information for given accommodation orders, sorted by bookingDate in descending order

## Orders with car details

 - [POST /orders/details/cars](https://developers.booking.com/demand/docs/open-api/demand-api/orders/orders/details/cars.md): This endpoint returns car order details, sorted by bookingDate in descending order

## Orders with flight details

 - [POST /orders/details/flights](https://developers.booking.com/demand/docs/open-api/demand-api/orders/orders/details/flights.md): Use this endpoint to retrieve detailed information for one or more flight orders. - You can request car order details either by order ID or by reservation ID. - The response includes all relevant information for each order, such as booking and cancellation details, commission, pricing, and optional extras (for example, policies).   Results are sorted by bookingDate in descending order, with the most recently booked orders listed first. It returns structured order data, including pricing, itinerary segments with IATA airport codes, etc. This endpoint is ideal for: - Displaying flight booking details in traveller dashboards or confirmation pages. - Generating post-booking communications and invoices.  - Performing reporting or reconciliation tasks that require accurate itinerary and pricing data.

## Modify an order

 - [POST /orders/modify](https://developers.booking.com/demand/docs/open-api/demand-api/orders/orders/modify.md): Use this endpoint to modify certain aspects of an accommodation order, such as credit card details, checkin/checkout dates, and room configurations (guest allocation, guest names, and smoking preferences). 
  - See the Orders modification guide for examples and best practices.

## Cancel an order

 - [POST /orders/cancel](https://developers.booking.com/demand/docs/open-api/demand-api/orders/orders/cancel.md): Use this endpoint to process an order cancellation. Refer to the Cancellations guide for instructions, tips and examples.

