Sign in

Order create

documented

Create a new booking order.

POST /orders/createOrdersno 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.2/orders/create" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "X-Affiliate-Id: {{$affiliate_id}}" \
  -d '{"accommodation": {"label": "{{$accommodation_label}}", "products": [{"id": "{{$accommodation_product_id}}", "bed_configuration": "{{$bed_configuration}}", "guests": [{"email": "{{$guest_email}}", "name": "{{$guest_name}}"}]}], "remarks": {"estimated_arrival_time": {"hour": {{$arrival_hour}}}, "special_requests": "{{$special_requests}}"}}, "booker": {"address": {"address_line": "{{$address_line}}", "city": "{{$city}}", "country": "{{$country}}", "post_code": "{{$post_code}}"}, "company": "{{$booker_company}}", "email": "{{$booker_email}}", "language": "{{$booker_language}}", "name": {"first_name": "{{$first_name}}", "last_name": "{{$last_name}}"}, "telephone": "{{$telephone}}"}, "order_token": "{{$order_token}}", "payment": {"card": {"cardholder": "{{$cardholder}}", "cvc": "{{$cvc}}", "expiry_date": "{{$expiry_date}}", "number": "{{$card_number}}"}, "include_receipt": {{$include_receipt}}, "method": "{{$payment_method}}", "timing": "{{$payment_timing}}"}'"