RESTful API with Full Documentation

Wholesale Hotel API for Travel Agents

Connect your systems to 1.5M+ hotels with our straightforward API. Real-time availability, wholesale rates, instant confirmations. Most integrations are live within 2 weeks.

The API exposes the same inventory as the B2B travel portal — contracted hotels, transfers and attractions at net rates.

1.5M+

Hotels Available

99.7%

API Uptime

< 2 sec

Avg Response

A hotel API for travel agents is a RESTful JSON/XML interface that lets you pull live availability, wholesale rates and instant confirmations from a hotel supplier directly into your own website, app or back-office system. DMC Quote's API connects you to 1.5M+ hotels with full documentation and sandbox testing, and most integrations go live within 2 weeks.

Short answer: our wholesale hotel API in one paragraph

DMC Quote's wholesale hotel API (the Distribution API) is a JSON API over HTTPS for travel agencies, tour operators and booking sites that want our net rates inside their own system. One key can cover hotels, attraction tickets and tours, and airport transfers. You search, prebook, book and cancel, and each booking is paid from your prepaid DMC Quote wallet. Access starts with a free agent account and a sandbox key. Live booking opens once your integration passes our certification tests. The field-by-field contract is the Distribution API guide.

B2B Hotel API at a Glance: What the Live API Does

We checked this against the live API and its published guide in November 2026. If a code sample further down this page differs from the API guide, follow the guide. It's the contract we certify integrations against.

Item What you get
Base URL https://dmcquote.com/b2b/api/external/v1 (version 1)
Format JSON over HTTPS, UTF-8. There is no XML version.
Authentication Your key in the X-API-Key header, or as a Bearer token. Each key carries scopes: hotels.read, hotels.book, tours.read, tours.book, transfers.read and transfers.book.
Products Hotels, attraction tickets and tours, and airport and city transfers (private or shared)
Hotel calls Destinations, catalogue, search, rates, content, prebook, price check, book, cancel, one booking and your booking list
Prices SGD by default, and every priced response carries a currency field. The price prebook confirms is the price you pay.
Payment Prepaid wallet, debited when the booking confirms. API accounts are prepaid only.
Rate limits (per key) 300 requests a minute for content and lookups, 120 for live search, rates and prebook, 30 for book and cancel. Above that you get a 429 and a Retry-After header.
Sandbox key Works from any IP and sees a certification test hotel in Singapore at S$1 a night, fully refundable
Live key Works only from the server IP addresses you register with us (exact addresses, no ranges)
Developer tools A written guide, a searchable reference with cURL, PHP, Node.js and Python samples, an OpenAPI 3.0 file, a Postman collection and a browser console for sandbox keys

What the API doesn't do (plan for these before you build)

  • One room per hotel booking. Two rooms means two prebook and book cycles, each with its own booking_ref.
  • One guest name per booking: the lead guest. There's no field for the other travellers.
  • No amendments. Hotel bookings cancel through the API; to change or cancel a tour or transfer, email [email protected] with the booking_ref.
  • No webhooks. You check status by calling the booking endpoints.
  • No wallet balance call. A booking your balance can't cover returns 402 insufficient_funds and books nothing.
  • No flights, here or on the portal. We don't sell them.

API Overview - What You're Getting

Let me be direct about what this API does and doesn't do. It's a hotel booking API - you send requests, you get hotel data, you make bookings. It's not rocket science, but the devil's in the details.

What the API Provides

  • Hotel search: Find hotels by city, coordinates, or specific hotel IDs. Filter by star rating, price, amenities.
  • Real-time availability: Check what's actually bookable for your dates. Not cached static content - live inventory.
  • Pricing: Net rates (your cost). You handle the markup to your customers.
  • Booking creation: Reserve rooms, get instant confirmation for most properties.
  • Booking management: Retrieve, modify, cancel existing bookings.
  • Voucher generation: Get booking vouchers in PDF or HTML format.

Technical Specs

Protocol REST over HTTPS (TLS 1.2+)
Format JSON (default) or XML
Authentication API Key + Secret (HMAC signature)
Rate Limits 100 requests/minute (standard), higher on request
Environments Sandbox (testing) + Production
Response Time < 2 seconds average, 5 seconds timeout

1.5M+

Hotels in API

15+

Countries

99.7%

Uptime SLA

24/7

Tech Support

Who Actually Needs API Integration

Here's the thing - not everyone needs API access. Our web portal handles 90% of use cases just fine. But there are situations where API integration makes sense:

You Should Use the API If...

  • You do 100+ bookings per month
  • You have your own booking website
  • You use custom agency software
  • You need automated workflows
  • You're building a white-label solution

You Probably Don't Need API If...

  • You book manually through staff
  • You do fewer than 50 bookings/month
  • You don't have development resources
  • Our web portal does what you need
  • You're just starting out

If you're in the "probably don't need" category, start with our web portal first. You can always add API integration later. The rates and inventory are identical.

Hotel XML API or JSON API? What We Offer

Plenty of developers search for a hotel XML API or a hotel XML feed, because that's how bedbank connections were built for years. Ours is JSON only. We don't run a parallel XML version, and we would rather you read that here than find out in week two of a build.

It matters less than it sounds. OpenTravel, a travel industry standards body, now writes about the shift from XML to JSON (opentravel.org), and every mainstream server language reads JSON without an extra library.

If your booking engine only speaks XML, put a thin translation layer on your own server. Your engine sends XML to that layer, and the layer calls us in JSON and maps the reply back. The field mapping is the real work. The transport is the easy bit.

Hotel XML API integration checklist (it works for any feed)

Ask the supplier Why it matters Our answer
Is there a price check before booking? Prices move between search and book Yes. Prebook returns the confirmed price, and that is the price you pay.
How long is a rate valid? Stale rates fail at booking The rate_token lasts 30 minutes
Are book and cancel idempotent? A dropped connection should not mean a double charge Yes, with an Idempotency-Key header, kept for 24 hours
How are cancellation deadlines returned? The refund your client gets depends on it Each rate carries is_refundable and cancellation_deadline. Our deadline is set earlier than the one we are given, which leaves you a buffer.
Are fees payable at the hotel shown? Fees at check-in surprise guests Yes. A rate can carry a pay_at_hotel amount and notes from the hotel.
Is there a sandbox? You need somewhere to break things safely Yes, with an S$1 refundable test hotel
Who handles a book-out? Someone has to rehouse the guest We do. If a hotel can't honour a confirmed booking, we reconfirm it or offer a hotel of equal or higher category nearby.

If you landed here looking for the XML feed of a particular bedbank, HotelDO or Methabook for example, you need the documentation and contract of that company. The questions above still apply. For a side-by-side of a well-known XML connection and ours, read Rezlive XML compared with the DMC Quote API. Weighing up a large bedbank instead? Our Hotelbeds alternative page compares the two.

Hotel Content API: Catalogue, Photos and Hotel Data

Static hotel data and live prices are separate calls. You store the content once and only go live for prices.

GET /hotels/destinations

Every city you can book. Each city id is the city_id you pass to search and to the catalogue.

GET /hotels/catalog

Every bookable hotel with its hotel_id, name, star rating, address, country code, coordinates and a thumbnail (null when we hold no photo). Up to 500 hotels a page. Filter by name, city_id or country, and pass updated_since for a daily refresh. No prices or availability here.

GET /hotels/{hotel_id}/content

Description, the full photo gallery, facilities and map position. It rarely changes.

Certified partners store this hotel data on their side and refresh it at most once a day. Calling content on every page view burns through your rate limit and slows your site down.

One caveat on coverage. The catalogue lists hotels in the cities on the destinations list, so check that list against your markets before you build. Don't quote a headline hotel count to your own clients on the strength of a sales page, ours included.

A Hotel Aggregator API With One Contract

A search through our API runs across several hotel sources plus the hotels we contract ourselves. Results are matched to one hotel record, so each property comes back once with one hotel_id, not three times under three supplier codes.

You won't see supplier names. Supplier identity, cost price and raw supplier codes never appear in a response, and rate identifiers are opaque tokens. You book with us, and if something goes wrong at the hotel, you deal with us.

What search lets you do

  • Search a city by dates, adults, children with ages, and guest nationality (a two-letter code, SG if you leave it out).
  • Narrow by minimum stars, maximum price and hotel name.
  • Sort by recommended, price (low or high) or stars. Recommended puts our contracted hotels first.
  • Only hotels with a live, bookable price come back. A hotel with no rate for your dates is left out.

Each rate then shows the room, meal plan, total and nightly price, refundability, the cancellation steps, any amount payable at the hotel, and whether a contracted rate is on request.

The honest limit of any aggregator

An aggregator is only as good as its hotel mapping. Ours scores matches on location, name, stars, phone and postcode, and doubtful ones go to a review queue. No mapping is perfect, though, so if a property looks wrong, send us the hotel_id.

This is the same hotel inventory agents book by hand in our B2B hotel booking portal. If you're still working out what a booking system API is and where it fits in an agency, start with that explainer.

Core Endpoints

Here's an overview of the main API endpoints. Full documentation is provided after registration, but this gives you a sense of the structure.

Hotel Search

GET /api/v2/hotels/search

Search hotels by city, coordinates, or hotel IDs. Returns hotel list with room types and rates.

GET /api/v2/hotels/search? city_code=SIN &check_in=2025-03-15 &check_out=2025-03-18 &rooms=1 &adults=2 &children=0 ¤cy=SGD
{ "success": true, "hotels": [ { "hotel_id": "SIN_12345", "name": "Marina Bay Sands", "star_rating": 5, "address": "10 Bayfront Avenue", "rooms": [ { "room_id": "DLX_CITY", "name": "Deluxe City View", "net_rate": 485.00, "cancellation": "Free until Mar 12" } ] } ], "total": 147 }

Create Booking

POST /api/v2/bookings

Create a new hotel reservation. Returns booking confirmation or error.

{ "hotel_id": "SIN_12345", "room_id": "DLX_CITY", "check_in": "2025-03-15", "check_out": "2025-03-18", "guests": [ { "title": "Mr", "first_name": "John", "last_name": "Smith" } ], "special_requests": "High floor preferred", "your_reference": "AGENCY-2025-001" }

Other Endpoints

GET /api/v2/hotels/{hotel_id}

Get detailed hotel information including photos, amenities, policies.

GET /api/v2/bookings/{booking_id}

Retrieve booking details and current status.

PUT /api/v2/bookings/{booking_id}

Modify an existing booking (dates, guest names, requests).

DELETE /api/v2/bookings/{booking_id}

Cancel a booking. Cancellation fees applied based on policy.

GET /api/v2/bookings/{booking_id}/voucher

Generate PDF or HTML voucher for the booking.

Authentication & Security

We use API Key + HMAC signature for authentication. It's more secure than basic auth and prevents replay attacks.

How It Works

  1. You get an API Key and Secret when approved for API access
  2. Each request includes your API Key in the header
  3. You generate an HMAC-SHA256 signature using your secret + request body + timestamp
  4. We validate the signature server-side
X-API-Key: your_api_key_here X-Timestamp: 1709251200 X-Signature: hmac_sha256(secret, api_key + timestamp + body) Content-Type: application/json

Security Measures

  • TLS 1.2+ Required: All connections must be HTTPS
  • IP Whitelisting: Optional but recommended for production
  • Rate Limiting: 100 req/min default, protects against abuse
  • Request Signing: Prevents tampering and replay attacks
  • Audit Logging: All API calls are logged for troubleshooting

Sandbox Credentials

Sandbox uses separate credentials from production. You can test freely without affecting real inventory or charges. Sandbox data resets weekly.

Code Examples

Here are working examples in common languages. These are simplified - production code should include better error handling.

PHP Example

// Hotel search example in PHP $api_key = 'your_api_key'; $secret = 'your_secret'; $timestamp = time(); $params = [ 'city_code' => 'SIN', 'check_in' => '2025-03-15', 'check_out' => '2025-03-18', 'rooms' => 1, 'adults' => 2 ]; $query = http_build_query($params); $signature = hash_hmac('sha256', $api_key . $timestamp . $query, $secret); $ch = curl_init("https://api.dmcquote.com/v2/hotels/search?{$query}"); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "X-API-Key: {$api_key}", "X-Timestamp: {$timestamp}", "X-Signature: {$signature}" ]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $hotels = json_decode($response, true);

Python Example

# Hotel search example in Python import requests import hmac import hashlib import time api_key = 'your_api_key' secret = 'your_secret' timestamp = str(int(time.time())) params = { 'city_code': 'SIN', 'check_in': '2025-03-15', 'check_out': '2025-03-18', 'rooms': 1, 'adults': 2 } query = '&'.join([f'{k}={v}' for k, v in params.items()]) signature = hmac.new( secret.encode(), (api_key + timestamp + query).encode(), hashlib.sha256 ).hexdigest() response = requests.get( 'https://api.dmcquote.com/v2/hotels/search', params=params, headers={ 'X-API-Key': api_key, 'X-Timestamp': timestamp, 'X-Signature': signature } ) hotels = response.json()

Node.js Example

// Hotel search example in Node.js const crypto = require('crypto'); const axios = require('axios'); const apiKey = 'your_api_key'; const secret = 'your_secret'; const timestamp = Math.floor(Date.now() / 1000).toString(); const params = { city_code: 'SIN', check_in: '2025-03-15', check_out: '2025-03-18', rooms: 1, adults: 2 }; const query = new URLSearchParams(params).toString(); const signature = crypto .createHmac('sha256', secret) .update(apiKey + timestamp + query) .digest('hex'); const response = await axios.get( 'https://api.dmcquote.com/v2/hotels/search', { params, headers: { 'X-API-Key': apiKey, 'X-Timestamp': timestamp, 'X-Signature': signature } } );

Integration Process

Here's what the typical integration timeline looks like:

Week 1: Setup

  • Register for API access (approval usually same-day for existing agents)
  • Receive sandbox credentials
  • Review documentation
  • Test basic search endpoint

Week 2: Core Integration

  • Implement authentication
  • Build search integration
  • Build booking flow
  • Test in sandbox

Week 3: Polish & Edge Cases

  • Handle error scenarios
  • Implement cancellation flow
  • Add voucher generation
  • Performance testing

Week 4: Go Live

  • Production credentials issued
  • Final testing with real (but refundable) bookings
  • Monitoring setup
  • Live deployment

Support During Integration

You get a dedicated technical contact during integration. Most questions get answered within 2 hours during business hours. We've done this enough times to anticipate common issues.

How to Get Access to the Hotel Booking API

This is a travel API for agencies, tour operators and booking sites with a developer on hand. Access isn't self-serve: there are five steps, and two of them involve signing something.

  1. Register as an agent. The agent account is free and our team approves it. Your KYC documents need to be in before any live booking goes through.
  2. Ask for a sandbox key. Email [email protected]. You e-sign our test agreement first, and the sandbox key arrives by email.
  3. Build and certify. The sandbox sees a certification test hotel in Singapore at S$1 a night, fully refundable, so you can book and cancel it as often as you like. Run test cases TC-01 to TC-12 from the guide and send us the requests and responses. We review them within 2 business days.
  4. Sign the live agreement and fund your wallet. API accounts are prepaid. Before a live key is issued, your wallet needs a minimum float, and we confirm the amount when you sign. That money is yours to spend on bookings, not a fee. Top-ups are by bank transfer.
  5. Send your server IPs. Live keys are locked to exact IP addresses, and ranges or CIDR blocks are not accepted. We then issue live keys with hotels, tours and transfers switched on.

We don't charge for the key. You pay for what you book, at the price prebook confirms.

The step-by-step guide to integrating a booking API walks through each call, the error codes and the go-live checklist in order.

When the API is the wrong choice

This won't suit you if you need to sell next week, want pay-later terms, or have no developer to look after the connection. Book through our travel agent booking software instead, which uses the same rates in a browser, or look at a white-label B2B travel portal if you want your own branded booking site without writing the integration.

Technical FAQ

Our hotel API supports both JSON (recommended) and XML formats. JSON is the default and provides faster parsing. Set Accept: application/xml header if you need XML responses. Both use REST architecture with standard HTTP methods.

Most integrations are complete in 2-4 weeks. Basic search and booking functionality can be working in 1 week for experienced developers. Full production integration with error handling, edge cases, and proper testing typically takes 3-4 weeks. We've seen it done in 3 days by teams that really push.

Yes, we provide a full sandbox environment with test data. You can test all API endpoints without making real bookings or charges. Sandbox access is included with API registration. Data resets weekly, so don't rely on specific booking IDs persisting.

Standard rate limit is 100 requests per minute. That's plenty for most integrations. If you need higher limits (high-traffic websites, real-time comparison engines), contact us - we can increase limits for legitimate use cases. Exceeding limits returns 429 status with retry-after header.

Hotel static content (descriptions, photos, amenities) - yes, cache for 24 hours. Rates and availability - cache for maximum 15 minutes, and always re-check before booking. Prices change frequently, and showing stale rates creates booking failures and customer frustration.

We support webhooks for booking status changes (confirmations, cancellations, amendments). You provide an endpoint, we POST updates when bookings change. Useful for keeping your systems in sync without polling. Webhook setup is documented in the API portal.

A wholesale hotel API gives a travel business trade (net) hotel rates by machine instead of through a website login. You search and book from your own system and add your own markup. DMC Quote's version is a JSON API that also covers attraction tickets, tours and airport transfers, with every booking paid from a prepaid wallet.

No. The DMC Quote API is JSON over HTTPS only, with no XML version. If your system needs XML, a small translation layer on your own server can convert between your XML and our JSON.

Register a free agent account, then email [email protected] for a sandbox key. Once your integration passes test cases TC-01 to TC-12, you sign the live agreement, fund your prepaid wallet with the minimum float and register your server IPs. Then we issue a live key.

No. The API books and cancels but doesn't amend. To change a hotel booking, cancel it under its policy and book again. Tour and transfer changes or cancellations go to [email protected] with the booking reference.

Yes. GET /hotels/catalog lists every bookable hotel with its ID and location, and GET /hotels/{hotel_id}/content returns the description, photos and facilities. Store this content on your side and refresh it at most once a day.

Yes. The same key can carry tours and transfers scopes. Tours and attraction tickets are booked by variation and return voucher codes or an e-ticket PDF. Transfers can be private or shared. Both are paid from the same wallet as hotels.

Related Resources

B2B Hotel Portal

Use our web portal if you don't need API integration - same inventory, no development required.

Portal Development Guide

Building your own travel portal? This guide covers build vs buy decisions.

B2B Hotel Booking System

Overview of our complete hotel booking capabilities.

Technical Support

Questions about API integration? Our tech team can help.

Ready to Integrate?

API access is available to registered agents after initial portal usage. Start with the portal, then add API integration when you're ready.

Technical questions? Email [email protected] or call +65-8034-8190