Demand API sandbox
The Demand API Sandbox allows you to safely experiment with accommodation search, reservations, and cancellations without affecting live production data.
With Demand API sandbox, you can experiment with accommodation endpoints the search, availability, reservations and cancellations capabilities without worrying about making live production accommodation reservations.
It grants you access to a dedicated sandbox hotel designed exclusively for testing purposes.
Before you start using the Demand API sandbox make sure that you meet all the requirements needed to have access to our endpoints.
Sandbox hotel
The Sandbox hotel created for testing reservations, cancellations and fetching reservations is:
✓ Accommodation ID 10507360 - Demand API sandbox Hotel Orion.
This is a mock hotel created exclusively for testing purposes.
Use it in your requests to play around with the endpoints.
Sandbox environment
All sandbox requests should use the following base URL to interact with the API during testing:
✓ https://demandapi-sandbox.booking.com/3.1
When using the "Try out" tool in this portal, make sure you select the sandbox environment before sending your requests:
- Get familiar with the most common flow, following the steps described in the getting started guide but using the Sandbox hotel.
The Demand API sandbox is for testing and discovery purposes only; do not use it in production environments.
Authentication
There are no sandbox specific API Keys.
Use your generated API Key and Affiliate id for both production and sandbox environments.
It is imperative to adhere to all necessary security measures to safeguard your API Keys and data, and not exposing them during testing.
Refer to the Authentication guide for more details on security measures.
Limitations
The Demand API sandbox is subject to following limits:
Limitations | |
---|---|
In the requests |
|
In reservations and payments |
Check the Payment quick guide for further details on testing payments. |
Summary
Use the Demand API sandbox to safely test API calls, manage reservations and cancellations, and explore the system without affecting live data.
Remember to use your sandbox-specific hotel ID and follow best practices for authentication and rate limits.
What's next
Read the following guidelines to get familiar with Demand API and particularly to the accommodation endpoints and how to use them: