Hotel API integration

Hotelbeds API integration with live rates, bookings and vouchers

Connect your Hotelbeds account to PHPTRAVELS and sell its hotels next to your own: live rates and availability, rate checks before payment, instant confirmation, PDF vouchers, amendments and cancellations.

  • Live rates and availability
  • Rate check before payment
  • Vouchers and cancellations
  • Mapping and caching

How it works

Hotelbeds inside your hotel booking engine

Hotelbeds is an independent B2B bed bank that distributes contracted hotel inventory to travel companies through its API. PHPTRAVELS calls that API with your own credentials and runs the full flow, from search and rate check to confirmation, voucher and cancellation, with logging, retries and idempotency keys so a timeout never turns into a duplicate booking.

  1. Get your Hotelbeds API key, secret and allowed markets and currencies
  2. Add the keys in the admin and set markups per market or channel
  3. Map destinations, hotels and room and board codes, with cached content
  4. Test search, rate check, booking, voucher and cancellation in the test environment
  5. Complete certification where your contract requires it, then switch to live
Environment
Test
Endpoint
api.test.hotelbeds.com
Credentials
API key: •••• · Secret: ••••
Markup
12% on net rates
Markets and currency
ES, AE · EUR

Booking flow

From Hotelbeds search to voucher and cancellation

The steps PHPTRAVELS runs for every Hotelbeds booking, the same way for your public site and your agents.

  1. Search

    Availability by destination, dates and occupancy, merged with your own hotels.

  2. Rate check

    Rates marked for recheck are re-priced and their policies refreshed.

  3. Pay

    Guest details and payment, with card capture held until Hotelbeds confirms.

  4. Confirm

    The booking is sent with an idempotency key and the Hotelbeds reference is stored.

  5. Voucher

    A PDF voucher with the supplier reference and remarks is emailed to the guest.

  6. Amend or cancel

    Changes and cancellations follow the rate's policy, with refunds from the admin.

Inventory

Hotelbeds next to your other hotel sources

Hotelbeds is one supplier in the stays module, so its rooms sit in the same search as your contracts and other bed banks.

  • Hotelbeds hotels

    Hotel content, rooms, boards, rates and policies from your Hotelbeds account.

  • Transfers and activities

    Hotelbeds transfers and activities can be added when your contract enables those APIs.

  • Other suppliers and contracts

    Your own contracted hotels and other hotel APIs, each with its own markup rules.

Hotel suppliers you can connect:

  • Agoda
  • Amadeus
  • Booking.com
  • Hotelbeds
  • Hotelston
  • RateHawk
  • Stuba
  • TBO Holidays
  • Travelport
  • Wanderbeds
See every hotel integration

Back office

Run Hotelbeds sales from one admin

Margins, agents, payments and supplier records for Hotelbeds bookings, in the same dashboard as every other product.

  • Markups and commissions

    On Hotelbeds net rates per market, city, hotel or channel, as fixed amounts or percentages.

  • Agents and sub-agents

    B2B portals with credit limits, commissions and approval rules for Hotelbeds bookings.

  • Payments

    Card, saved token or offline payment, captured on confirmation and refunded on cancellation.

  • Supplier references

    Find any booking by its Hotelbeds reference, resend vouchers and track amendments.

  • Alerts

    Notifications for failed bookings, price changes at rate check and supplier errors.

  • Reports

    Bookings, margins and supplier payables for Hotelbeds, ready to export.

Compare

Building a Hotelbeds connector in-house vs PHPTRAVELS

Many teams start by coding the Hotelbeds API themselves. This is typically what that involves, next to the ready integration.

AreaIn-house buildPHPTRAVELS
Booking flowIn-house buildSearch, rate check, booking and cancellation calls written and tested by your developersPHPTRAVELSSearch, rate check, confirmation, voucher and cancellation built into the hotel module
Content mappingIn-house buildRoom and board codes mapped by hand for the projectPHPTRAVELSDestination, hotel and room mapping with cached content
Timeouts and errorsIn-house buildDuplicate bookings possible unless retries are designed inPHPTRAVELSRetries, backoff and idempotency keys on every booking
Website and agentsIn-house buildA separate booking site and agent portal still to buildPHPTRAVELSB2C website and B2B agent portal in the same installation
OperationsIn-house buildLogs and alerts often added laterPHPTRAVELSSupplier logs, alerts and exportable audit trails
More suppliersIn-house buildEach new supplier is another projectPHPTRAVELSAdd other hotel, flight and car APIs from the same admin

Use cases

Who sells Hotelbeds with PHPTRAVELS

  • Online travel agencies

    A large hotel catalogue on your own brand, with Hotelbeds rooms beside your direct deals.

  • B2B agencies

    Sub-agents book Hotelbeds hotels at their own rates and pay from credit or wallet.

  • DMCs and tour operators

    Hotels, transfers and activities from Hotelbeds combined into packages and itineraries.

Why PHPTRAVELS

Your contract, your platform, your code

  • Source code included

    Self-hosted under a commercial licence, so your developers can extend the Hotelbeds flow.

  • Your Hotelbeds account

    You hold the contract, the net rates and the keys, stored in your own installation.

  • 24 languages

    Sell Hotelbeds hotels in your markets' languages and currencies, including right-to-left.

  • B2C and B2B

    One installation for your public website and your agent portal.

FAQ

Hotelbeds API integration questions

What travel companies ask before connecting Hotelbeds.

Talk to sales

It connects your Hotelbeds account to the PHPTRAVELS hotel module, so guests and agents search live Hotelbeds rates and availability, and PHPTRAVELS handles the rate check, booking, voucher, amendments and cancellations.

Yes. You sign the contract with Hotelbeds and receive your own API key, secret and allowed markets and currencies. Some markets need certification before Hotelbeds enables live access.

No. Hotelbeds is an independent B2B bed bank. PHPTRAVELS integrates with Hotelbeds and with Expedia separately, and both can run in the same installation.

Bedsonline is a brand within the Hotelbeds group aimed at travel agents. PHPTRAVELS connects through the Hotelbeds APIs and maps the content in the hotel module.

Yes, when your Hotelbeds contract enables those APIs. They can be sold alone or alongside hotels.

It depends on your plan and on which Hotelbeds products and payment flows you enable. Plans start with Startup at $2499 as a one-time licence; see the pricing page or ask sales for a quote.