Sign in

Order preview

documented

Preview a new order before creating it.

POST /orders/previewOrdersno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://demandapi.booking.com/3.1/orders/preview" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Affiliate-Id: {{$affiliate_id}}" \
  -d '{  "booker": { "country": "{{$country}}", "platform": "{{$platform}}", "travel_purpose": "{{$travel_purpose}}", "user_groups": ["{{$user_group}}"] },  "currency": "{{$currency}}",  "accommodation": { "id": {{$accommodation_id}}, "checkin": "{{$checkin}}", "checkout": "{{$checkout}}", "products": [ { "id": "{{$product_id_1}}", "allocation": { "number_of_adults": {{$adults_1}}, "children": {{$children_1}} } }, { "id": "{{$product_id_2}}", "allocation": { "number_of_adults": {{$adults_2}}, "children": {{$children_2}} } } ] } }'"