Distribution API
Search, price, book and cancel DMC Quote hotels, attraction tickets and transfers from your own system. Bookings are paid from your DMC Quote wallet, and vouchers are delivered automatically.
- Base URL
https://dmcquote.com/b2b/api/external/v1- Version
- 1
- Format
- JSON over HTTPS, UTF-8
- Prices
- SGD by default. Every priced response also carries a
currencyfield.
Developer tools
This page walks you through an integration. For the full field-by-field detail of every endpoint, use these:
- API reference
- Every endpoint, request field, response field, enum and error, with examples in cURL, PHP, Node.js and Python. Built from the OpenAPI file and searchable.
- OpenAPI 3.0 file (openapi.yaml)
- The machine-readable contract. Import it into Postman or Insomnia, generate a typed client (openapi-generator, orval, oazapfts), or validate responses in your tests.
- Postman collection
- Every endpoint, ready to run. Set the
apiKeyvariable and run the requests in order:rate_token,prebook_tokenandbooking_refcarry over from one request to the next, and book and cancel requests generate a freshIdempotency-Key. - Try it in your browser
- Send real requests from this site: paste your key, pick an endpoint and press Execute. Use your sandbox key here. Live keys only work from your registered server IPs, so they are refused from a browser.
Endpoints
| Method | Endpoint | What it does | Scope |
|---|---|---|---|
| GET | /hotels/destinations | Cities you can book | hotels.read |
| GET | /hotels/catalog | Every bookable hotel with its ID and location, for name lookups | hotels.read |
| POST | /hotels/search | Hotels and lowest prices for a city and dates | hotels.read |
| POST | /hotels/{id}/rates | Room rates, each with a rate_token | hotels.read |
| GET | /hotels/{id}/content | Description, photos and facilities | hotels.read |
| POST | /hotels/prebook, /hotels/price-check | Confirm the price live and get a prebook_token | hotels.book |
| POST | /hotels/book, /hotels/cancel | Book or cancel, paid from your wallet | hotels.book |
| GET | /hotels/booking/{ref}, /hotels/bookings | One booking, or a list of yours | hotels.book |
| GET | /tours/search, /tours/{id} | Tours and their variations | tours.read |
| POST | /tours/book | Book a tour, paid from your wallet | tours.book |
| GET | /tours/booking/{ref}, /tours/booking/{ref}/voucher | Booking status, voucher codes and e-ticket PDF | tours.book |
| GET | /transfers/zones, /transfers/search, /transfers/routes/{id} | Zones, routes, vehicles, schedules and add-ons | transfers.read |
| POST | /transfers/calculate-price | Final price for a transfer | transfers.read |
| POST | /transfers/book | Book a transfer, paid from your wallet | transfers.book |
| GET | /transfers/booking/{ref} | Transfer booking status | transfers.book |
Authentication
Send your API key in the X-API-Key header on every request, or as a Bearer token. The key belongs to your DMC Quote account, so prices, currency, wallet and bookings all come from that account.
Each key has scopes that decide which endpoints it can call: hotels.read, hotels.book, tours.read, tours.book, transfers.read and transfers.book.
X-API-Key: b2b_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Getting a key. Email [email protected] for sandbox and live keys. Keep keys on your server and replace a key straight away if it leaks.
Live keys only work from the server IPs you register with us. Sandbox keys work from any IP, so use them with Postman and the browser console while you build.
Quickstart
A hotel booking takes five calls. Each call gives you the value you need for the next one.
-
GET
/hotels/destinationsPick the city. Returnscity_id -
POST
/hotels/searchFind hotels for the dates and guests. Returnshotel_id -
POST
/hotels/{hotel_id}/ratesList the rooms and rates. Returnsrate_token, valid for 30 minutes -
POST
/hotels/prebookCheck the rate with the hotel. Returnsprebook_tokenand the final price -
POST
/hotels/bookBook it. Send anIdempotency-Key. Returnsbooking_ref. Your wallet is charged.
After booking, check the status with GET /hotels/booking/{ref} or cancel with POST /hotels/cancel. Tours and transfers work the same way with fewer steps: search, book, then fetch the booking or voucher.
# 1+2. search Singapore, grab a hotel_id
curl -X POST "$BASE/hotels/search" -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"city_id":1,"check_in":"2026-08-01","check_out":"2026-08-03","adults":2}'
# 3. rates → rate_token (valid 30 min)
curl -X POST "$BASE/hotels/11/rates" -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"check_in":"2026-08-01","check_out":"2026-08-03","adults":2}'
# 4. prebook → prebook_token + live price
curl -X POST "$BASE/hotels/prebook" -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"rate_token":"<rate_token>","check_in":"2026-08-01","check_out":"2026-08-03","adults":2}'
# 5. book — idempotent, wallet debited
curl -X POST "$BASE/hotels/book" -H "X-API-Key: $KEY" -H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"prebook_token":"<prebook_token>","guest":{"first_name":"John","last_name":"Tan","email":"[email protected]"}}'$base = 'https://dmcquote.com/b2b/api/external/v1';
function dmc(string $method, string $path, ?array $body = null, bool $idem = false): array {
global $base;
$headers = ['X-API-Key: ' . getenv('DMC_API_KEY')];
if ($idem) $headers[] = 'Idempotency-Key: ' . bin2hex(random_bytes(16));
if ($body) $headers[] = 'Content-Type: application/json';
$ch = curl_init($base . $path);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => $method,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_POSTFIELDS => $body ? json_encode($body) : null,
]);
$out = json_decode(curl_exec($ch), true);
curl_close($ch);
return $out;
}
// 1–3. search → rates → rate_token
$stay = ['check_in' => '2026-08-01', 'check_out' => '2026-08-03', 'adults' => 2];
$hotels = dmc('POST', '/hotels/search', ['city_id' => 1] + $stay);
$rates = dmc('POST', "/hotels/{$hotels['data'][0]['hotel_id']}/rates", $stay);
// 4. prebook → live price + prebook_token
$pre = dmc('POST', '/hotels/prebook', ['rate_token' => $rates['data'][0]['rate_token']] + $stay);
// 5. book — idempotent, wallet debited
$booking = dmc('POST', '/hotels/book', [
'prebook_token' => $pre['data']['prebook_token'],
'guest' => ['first_name' => 'John', 'last_name' => 'Tan', 'email' => '[email protected]'],
], idem: true);
echo $booking['data']['booking_ref']; // HB-20260801-A1B2const BASE = 'https://dmcquote.com/b2b/api/external/v1';
async function dmc(path, body = null, { idem = false } = {}) {
const headers = { 'X-API-Key': process.env.DMC_API_KEY };
if (idem) headers['Idempotency-Key'] = crypto.randomUUID();
if (body) headers['Content-Type'] = 'application/json';
const res = await fetch(BASE + path, {
method: body ? 'POST' : 'GET',
headers,
body: body ? JSON.stringify(body) : undefined,
});
return res.json();
}
// 1–3. search → rates → rate_token
const stay = { check_in: '2026-08-01', check_out: '2026-08-03', adults: 2 };
const hotels = await dmc('/hotels/search', { city_id: 1, ...stay });
const rates = await dmc(`/hotels/${hotels.data[0].hotel_id}/rates`, stay);
// 4. prebook → live price + prebook_token
const pre = await dmc('/hotels/prebook', { rate_token: rates.data[0].rate_token, ...stay });
// 5. book — idempotent, wallet debited
const booking = await dmc('/hotels/book', {
prebook_token: pre.data.prebook_token,
guest: { first_name: 'John', last_name: 'Tan', email: '[email protected]' },
}, { idem: true });
console.log(booking.data.booking_ref); // HB-20260801-A1B2import os, uuid, requests
BASE = "https://dmcquote.com/b2b/api/external/v1"
def dmc(path, body=None, idem=False):
headers = {"X-API-Key": os.environ["DMC_API_KEY"]}
if idem:
headers["Idempotency-Key"] = str(uuid.uuid4())
if body is not None:
return requests.post(BASE + path, headers=headers, json=body).json()
return requests.get(BASE + path, headers=headers).json()
# 1–3. search → rates → rate_token
stay = {"check_in": "2026-08-01", "check_out": "2026-08-03", "adults": 2}
hotels = dmc("/hotels/search", {"city_id": 1, **stay})
rates = dmc(f"/hotels/{hotels['data'][0]['hotel_id']}/rates", stay)
# 4. prebook → live price + prebook_token
pre = dmc("/hotels/prebook", {"rate_token": rates["data"][0]["rate_token"], **stay})
# 5. book — idempotent, wallet debited
booking = dmc("/hotels/book", {
"prebook_token": pre["data"]["prebook_token"],
"guest": {"first_name": "John", "last_name": "Tan", "email": "[email protected]"},
}, idem=True)
print(booking["data"]["booking_ref"]) # HB-20260801-A1B2The API reference has samples in all four languages for every endpoint, and you can try requests in your browser.
Errors and retries
Every error is JSON with a fixed code. Write your handling against the code, not the message, because message wording can change.
{ "success": false, "error": { "code": "insufficient_funds", "message": "…" } }
A validation_error also lists each field that failed in error.details.
| HTTP | Code | What happened and what to do |
|---|---|---|
| Your key and account | ||
| 401 | missing_api_key | No key was sent. Add the X-API-Key header. |
| 401 | invalid_api_key | The key is wrong, expired or revoked. |
| 403 | insufficient_scope | The key doesn't have the scope this endpoint needs, for example hotels.book. |
| 403 | ip_not_allowed | A live key was used from a server IP we don't have on file. Send us the IP to add. |
| 403 | ip_whitelist_required | A live key has no server IPs registered yet. Send us your server IPs. |
| 403 | not_a_partner_key | The key isn't linked to a partner account. Ask support for a partner key. |
| 403 | partner_not_found, partner_inactive | The account behind the key no longer exists or isn't active. Contact support. |
| 503 | api_disabled | The API is switched off for maintenance. Try again later. |
| Your request | ||
| 422 | validation_error | A field is missing or invalid. error.details names the field. |
| 404 | hotel_not_found, city_not_found, tour_not_found, route_not_found, vehicle_not_found, schedule_not_found, prebook_not_found, booking_not_found, not_found | The ID or reference doesn't exist or belongs to another account. Sandbox keys only see the test inventory. |
| 429 | rate_limited | Too many requests. Wait for the number of seconds in the Retry-After header. |
| 500 | server_error | Something failed on our side. Retry. If it keeps happening, email support with the time and your request. |
| Booking | ||
| 402 | insufficient_funds | Your wallet balance is too low. Top up and retry, with the same or a new Idempotency-Key: a 402 is not stored, so the retry is judged fresh. Tour and transfer bookings also state error.required and error.available in your wallet's currency (error.currency). |
| 410 | rate_expired | The rate_token or prebook_token has expired. Get rates or prebook again. |
| 409 | price_changed | The price changed after prebook. Prebook again to get the new price. |
| 409 | prebook_invalid | Price check found the prebook is no longer valid. Prebook again. |
| 409 | supplier_unavailable | The room or seat has sold out. Choose another rate. |
| 409 | hotel_restricted | This hotel can't be booked on your account. Choose another hotel. |
| 409 | service_unavailable | The transfer route doesn't offer that service type (private or shared). |
| 409 | already_cancelled | The booking was already cancelled. |
| 409 | booking_cancelled | From the tour voucher endpoint: the booking was cancelled before the local operator confirmed it (declined, not answered in time, or cancelled first), so there is no voucher. Stop polling. |
| 422, 409 | booking_failed | The booking was refused. The message says why. Hotels return 422; tours and transfers return 409. |
| Retries and the Idempotency-Key header | ||
| 400 | missing_idempotency_key | Every book and cancel call needs an Idempotency-Key header. |
| 422 | idempotency_key_reused | The key was already used with a different request body. Use a new key. |
| 409 | request_in_progress | A request with this key is still running. Wait a moment and retry with the same key. |
| 500 | idempotency_error | We couldn't record the key. Retry with the same key. |
Retrying a booking safely
Send a new unique Idempotency-Key (a UUID works) with every book and cancel call. If the network drops, retry with the same key and the same body: you get the original response back and you are never charged twice. The one exception is 402 insufficient_funds: it booked nothing and is not stored, so after you top up the same key is judged fresh. We keep keys for 24 hours.
What the API doesn't do
Plan for these before you build. If one of them blocks your launch, tell us.
- One room per hotel booking. For several rooms, run prebook and book once per room. Each room gets its own
booking_ref. - One guest name per booking. Bookings take the lead guest only. There is no field for other travellers' names.
- Tour and transfer bookings can't be cancelled or changed through the API. Email [email protected] with the
booking_ref. Hotel bookings can be cancelled withPOST /hotels/cancel. - No wallet balance endpoint. A booking that your balance can't cover returns
402 insufficient_funds(for tours and transfers, with the amount required and available). Tour and transfer bookings state what was charged inwallet_debit. Check your balance and top up in the DMC Quote portal. - No webhooks. We don't push status changes to you. Call
GET /hotels/booking/{ref},/tours/booking/{ref}or/transfers/booking/{ref}to check, and call the voucher endpoint untilreadyistrue. A tour booking cancelled before the local operator confirmed it answers409 booking_cancelledinstead.
Hotels: content and rates
/hotels/destinationsEvery city you can book. Use a city's id as city_id in search and in the catalog.
/hotels/catalogEvery hotel you can book, with its hotel_id, name and location. It has no prices or availability. Use it to build your own hotel list, so your users can search by hotel name, then get live prices from /rates. Sandbox keys see only the test hotel.
| Parameter | Type | Notes |
|---|---|---|
page | int | Default 1 |
per_page | int | 1 to 500, default 200 |
name | string | Part of the hotel name, at least 2 characters |
city_id | int | From /hotels/destinations |
country | string | Two-letter country code (SG) or country name |
updated_since | date | Only hotels changed since this date or time, for a daily refresh of your copy. A date we can't read is ignored. |
{
"success": true,
"meta": { "total": 1, "page": 1, "per_page": 200, "last_page": 1 },
"data": [{
"hotel_id": 11,
"name": "Carlton City Hotel Singapore",
"star_rating": 5,
"property_type": "Hotel",
"address": "1 Gopeng Street",
"city": "Singapore",
"country": "Singapore",
"country_code": "SG",
"postal_code": "078862",
"latitude": "1.2759860",
"longitude": "103.8436180",
"thumbnail": "https://…"
}]
}
thumbnail is null when we have no photo. latitude and longitude are strings.
/hotels/search| Field | Type | Notes |
|---|---|---|
city_idrequired | int | From /hotels/destinations |
check_in, check_outrequired | date | YYYY-MM-DD |
adultsrequired | int | 1 to 6 per room |
children, children_ages[] | int | Ages 0 to 17 |
nationality | string | Two-letter code, default SG |
page, star_rating[], hotel_name | mixed | Paging and filters |
{
"success": true,
"meta": { "total": 208, "page": 1, "nights": 2, "currency": "SGD" },
"data": [{
"hotel_id": 11,
"name": "Carlton City Hotel Singapore",
"star_rating": 5,
"address": "1 Gopeng Street",
"image": "https://…",
"amenities": ["wifi", "pool", "gym"],
"lead_price": 451.52,
"currency": "SGD"
}]
}
/hotels/{hotel_id}/ratesEvery room rate you can book at one hotel. Send the same body as search, without city_id. Each rate has a rate_token, valid for 30 minutes, which you pass to prebook.
{
"rate_token": "eyJpdiI6…", // opaque — pass to /prebook
"room_name": "Deluxe Room, 1 King Bed",
"meal_plan": "Bed & Breakfast", "meal_plan_code": "BB",
"total_price": 451.52, "avg_nightly_rate": 225.76,
"is_refundable": true,
"cancellation_deadline": "2026-07-25",
"max_occupancy": 2
}
/hotels/{hotel_id}/contentDescription, full photo gallery, facilities and map position. This rarely changes, so store it on your side.
Hotels: booking
One room per booking. For several rooms, run prebook and book once per room. Each room gets its own booking_ref.
/hotels/prebook| Field | Type | Notes |
|---|---|---|
rate_tokenrequired | string | From /rates, valid for 30 minutes |
check_in, check_outrequired | date | Same as the rates call |
adultsrequired | int | 1 to 6 |
children, children_ages[] | int | |
nationality | string | Two-letter code |
Prebook checks the rate with the hotel and returns a prebook_token with the confirmed price. If the price has moved, you get the new price here, and that is the price you will be charged.
{
"success": true,
"data": {
"hotel_id": 11,
"prebook_token": "6c5ff6be-…",
"room_name": "Deluxe Room",
"total_price": 451.52,
"currency": "SGD",
"is_refundable": true,
"cancellation_deadline": "2026-07-25",
"expires_at": "2026-06-11T20:00:56+08:00"
}
}
/hotels/price-checkOptional. Send { "prebook_token": "…" } to confirm the token is still valid and see the locked price before you book.
/hotels/bookPOST /hotels/book
Idempotency-Key: 7f3e9a4b-yourside-uuid
{
"prebook_token": "6c5ff6be-…",
"guest": {
"first_name": "John",
"last_name": "Tan",
"email": "[email protected]",
"phone": "+6591234567",
"nationality": "SG"
},
"special_requests": "Late check-in"
}
{
"success": true,
"data": {
"booking_ref": "HB-20260611-A1B2",
"status": "confirmed",
"hotel_name": "Carlton City Hotel Singapore",
"check_in": "2026-08-01", "check_out": "2026-08-03",
"guest_name": "John Tan",
"total_charged": 451.52, "currency": "SGD",
"hotel_confirmation_no": "CONF-88421",
"payment_status": "paid"
}
}
Your wallet is charged in the same step as the confirmation. When there is a hotel_confirmation_no, that is the number the guest gives at check-in.
/hotels/cancelSend { "booking_ref": "…", "reason": "…" }. We cancel with the hotel and refund your wallet under the rate's cancellation policy. The response includes cancellation_fee and refund_amount.
/hotels/booking/{ref}/hotels/bookingsGet one booking, or a paginated list of yours filtered by status, check_in_from and check_in_to. You only ever see your own bookings.
Tours and tickets
/tours/search?city_id=1&q=&page=Attraction tickets and tours in a city, with names, photos, durations and lowest prices.
/tours/{tour_id}Description, inclusions, gallery and opening hours, plus variations[]. Each variation has a variation_id and adult, child and infant prices. You book a variation.
/tours/book| Field | Type | Notes |
|---|---|---|
tour_idrequired | int | |
variation_idrequired | int | From tour detail |
service_daterequired | date | Tomorrow or later |
adultsrequired | int | |
children, infants | int | |
guest{}required | object | first_name, last_name, email, phone, nationality |
pickup_hotel | string | For tours that include a shared or private transfer |
We work out the price from current tariffs, so any price you send is ignored. Your wallet is charged when you book. total_charged is in SGD. wallet_debit is what your wallet was actually charged, in your wallet's currency: an SGD wallet pays the SGD total (fx_rate 1), and a wallet held in your own currency (for example INR) pays the SGD total × fx_rate. That rate is DMC Quote's daily rate including its FX margin, the same rate the DMC Quote portal charges that day. A full refund gives back exactly wallet_debit.amount, whatever the rate is by then.
{
"success": true,
"data": {
"bookings": [{
"booking_ref": "TUR-X9Y8Z7",
"status": "confirmed",
"tour_name": "Bird Paradise Admission",
"service_date": "2026-08-15",
"fulfillment_status": "fulfilled",
"voucher_sent_to": "[email protected]"
}],
"total_charged": 130.00, "currency": "SGD",
"wallet_debit": { "amount": 130.00, "currency": "SGD", "fx_rate": 1 }
}
}
Some tours are confirmed by the local operator (on request). Those come back with status awaiting_operator_confirmation and a confirm_by deadline in Singapore time (UTC+8). Your wallet is charged at booking, as for any tour. Nothing goes to the guest yet, so voucher_sent_to is null. When the operator confirms, the status becomes confirmed and the voucher goes to the guest. If the operator declines or doesn't answer by confirm_by, the booking is cancelled and the full amount goes back to your wallet.
{
"success": true,
"data": {
"bookings": [{
"booking_ref": "TUR-K4L5M6",
"status": "awaiting_operator_confirmation",
"confirm_by": "2026-08-14T09:00:00+08:00",
"tour_name": "Pulau Ubin Cycling Tour",
"service_date": "2026-08-15",
"fulfillment_status": "pending",
"voucher_sent_to": null
}],
"total_charged": 120.00, "currency": "SGD",
"wallet_debit": { "amount": 9046.80, "currency": "INR", "fx_rate": 75.39 }
}
}
If your wallet can't cover the booking, nothing is booked and the reply is 402 insufficient_funds. It also states what the booking needs (required) and what your wallet can spend (available: balance plus any credit limit), in your wallet's currency. Transfers answer the same way.
{ "success": false, "error": { "code": "insufficient_funds", "message": "Insufficient wallet balance for this booking.",
"required": 9046.80, "available": 5000.00, "currency": "INR" } }
Once your wallet has been charged, the reply is 200, and a retry with the same Idempotency-Key replays it. In the rare case the booking can't be read back straight away, each item in bookings carries only booking_ref: get the details with GET /tours/booking/{ref} (or /transfers/booking/{ref}). Don't book again.
/tours/booking/{ref}/voucherVouchers reach you two ways, with nothing extra to set up:
| How | What happens |
|---|---|
| By email | As soon as the booking is fulfilled, the voucher or e-ticket PDF is emailed to the guest.email you sent. To receive it yourself, send your operations email as guest.email. |
| From this endpoint | Returns the voucher_codes[] and an eticket_pdf_url that downloads the PDF for 1 hour. Call again for a fresh link. Most instant tickets are ready within seconds. If ready is false, try again in a minute. |
| While the operator decides | For a booking that is awaiting_operator_confirmation, ready stays false and the reply also carries status and confirm_by. There is no voucher, and no email to the guest, until the local operator confirms. If the booking is cancelled before then, this endpoint answers 409 booking_cancelled: stop polling. Its message says the local operator could not confirm it only if the operator declined or didn't answer in time; a booking cancelled first by us or by you says it was cancelled before the operator confirmed it. |
{
"success": true,
"data": {
"booking_ref": "TUR-X9Y8Z7",
"fulfillment_status": "fulfilled",
"ready": true,
"voucher_codes": ["BP-8842-1937", "BP-8842-1938"],
"eticket_pdf_url": "https://…signed…", // valid 1 hour — re-fetch for a fresh link
"eticket_filename": "ETicket_TUR-X9Y8Z7.pdf",
"emailed_to": "[email protected]"
}
}
Transfers
/transfers/zones/transfers/search?from_zone=&to_zone=Pick-up and drop-off zones (airports, city areas, hotels) and the routes between them.
/transfers/routes/{id}Route detail, private vehicle types with your prices, shared (SIC) departure times, and optional add-ons.
/transfers/calculate-priceThe final price for a route, vehicle or schedule, and number of passengers, including any night surcharge.
/transfers/bookNight surcharges are included in total_charged: a private transfer pays the vehicle's night surcharge, as shown in the rates, when pickup_time falls in its night hours; a shared (SIC) transfer pays the schedule's per-person night surcharge for departures from 22:00 to 08:00.
| Field | Type | Notes |
|---|---|---|
route_idrequired | int | |
service_typerequired | enum | private or sic (shared) |
vehicle_id | int | Required for private |
sic_schedule_id | int | Required for sic |
service_daterequired | date | Shared transfers need the route's advance notice |
pickup_time | string | |
adultsrequired | int | |
children, infants | int | |
flight_number, flight_time | string | For airport pick-ups |
pickup_address, dropoff_address | string | |
guest{}required | object | Same fields as hotels and tours |
{
"success": true,
"data": {
"bookings": [{
"booking_ref": "TRF-Q5W6E7",
"status": "confirmed",
"route": "Changi Airport → City Hotels",
"service_type": "private",
"vehicle": "Toyota Alphard",
"service_date": "2026-08-01"
}],
"total_charged": 95.00, "currency": "SGD",
"wallet_debit": { "amount": 95.00, "currency": "SGD", "fx_rate": 1 }
}
}
Your wallet is charged when you book, in the same way as tours, and wallet_debit says what was charged in your wallet's currency. Transfers the local operator must confirm come back as awaiting_operator_confirmation with a confirm_by deadline (Singapore time). If the operator declines or doesn't answer by then, the booking is cancelled and the full amount goes back to your wallet.
Get the booking any time with GET /transfers/booking/{ref}. To change or cancel a tour or transfer booking, email [email protected] with the booking_ref.
Certification
You get live booking access after your integration passes certification using a sandbox key. This catches broken or duplicate bookings before real money moves, and keeps confirmations reliable for your customers.
Sandbox inventory. A sandbox key sees the DMC Certification Test Hotel in Singapore (S$1 a night, fully refundable) instead of live hotels, so you can book and cancel it as often as you like. Tour and transfer content is live data, and we review test bookings for those by hand. Once you are certified we switch your key to live inventory.
How to get certified
- Ask for a sandbox key. It works from any IP, so you can start in the browser console straight away.
- Build and test against the sandbox using this guide.
- Run test cases TC-01 to TC-12 below and save each request and response.
- Send us the logs. We review them within 2 business days.
- Get your live key. Send your server IPs (required for live keys) and we turn on booking.
Test cases
| Case | Scenario | Passes when |
|---|---|---|
| TC-01 | Destinations, search, rates | You get a valid rate_token, and the prices you show your user match the API exactly. |
| TC-02 | Hotel content | Name, address, photos and facilities shown from /content. |
| TC-03 | Prebook a refundable rate | You get a prebook_token and show the cancellation deadline to the user. |
| TC-04 | Book | Booking confirmed with an Idempotency-Key, and you store the booking_ref. |
| TC-05 | Book again with the same Idempotency-Key | The retry returns the same booking_ref and you don't create a duplicate on your side. |
| TC-06 | Book with an expired prebook_token | You handle 410 rate_expired by prebooking again, with no error shown to the user. |
| TC-07 | Book with too little wallet balance | You handle 402 insufficient_funds and don't treat the booking as made. |
| TC-08 | Cancel a refundable booking | Status becomes cancelled and you show cancellation_fee and refund_amount. |
| TC-09 | Get one booking and list bookings | GET /booking/{ref} and /bookings match your records. |
| TC-10 | Book a tour and fetch the voucher | Tour confirmed, and voucher codes or the e-ticket PDF fetched from /voucher once ready is true. |
| TC-11 | Book a transfer (private or shared) | Transfer confirmed with pick-up details, and the booking_ref can be fetched. |
| TC-12 | Rate limits | Your client waits for Retry-After after a 429 and backs off. |
Sending your results. For each test case, email the full request (without your API key), the full JSON response and the time to [email protected], with the subject Certification: your company name. We review within 2 business days and turn on live booking when everything passes.
Rules we check
| Rule | What we check |
|---|---|
| R1 | You don't keep rate_token or prebook_token past their validity, and you get fresh rates for each new user session. |
| R2 | Every book and cancel call sends a new unique Idempotency-Key (a UUID works). Retries reuse the same key and body. |
| R3 | You show the customer the API's total_price, refundability and cancellation deadline. You may add your own markup, but never show a later deadline than ours. |
| R4 | One room per hotel booking. Several rooms means several prebook and book calls. |
| R5 | You store static content (hotel and tour content, destinations, zones) and refresh it at most once a day. |
| R6 | API keys stay on your server and never ship in a browser or mobile app. Your server IPs are registered with us before go-live. |
Rate limits
Limits apply per API key and depend on how much work a call takes. Above the limit you get 429 rate_limited. Wait for the number of seconds in the Retry-After header before trying again.
| Group | Limit | Endpoints |
|---|---|---|
| Content | 300 a minute | Destinations, hotel catalog, hotel and tour content, tour search, transfer zones, routes and prices, booking lookups and lists, vouchers |
| Live | 120 a minute | Hotel search, rates, prebook and price check, which check live availability |
| Booking | 30 a minute | Book and cancel |
Store content on your side and only make live calls when a user asks for them. Need higher limits for a launch? Email [email protected].
Support
For help with your integration, sandbox keys or going live, email [email protected]. Include the request, the full JSON response, and the booking_ref or error.code if there is one. We usually reply within one business day.