Integrate HotelBeds API to search availability and create a hotel booking with cancellation handling

domain: developer.hotelbeds.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Generate the X-Signature header by computing SHA-256(ApiKey + SecretKey + Unix timestamp)
  2. POST to /hotel-api/1.0/hotels with a checkIn, checkOut, occupancies array, and geolocation filter
  3. Parse the hotels response to extract hotel code, room code, net rate, cancellationPolicies, and rateKey
  4. POST to /hotel-api/1.0/bookings with the chosen rateKey, holder name, and pax details to create the booking
  5. Store the booking reference and cancellationPolicies deadlines in the reservation record
  6. To cancel, POST to /hotel-api/1.0/bookings/{reference}/cancellation and parse the cancellationAmount

Known gotchas

Related routes

Search hotel availability and create a hotel (accommodation) booking using the Duffel Stays API.
duffel.com · 6 steps · unrated
Create and manage bookings via the Cloudbeds API
developers.cloudbeds.com · 5 steps · unrated
Create and populate custom reservation and guest fields via the Cloudbeds API
developers.cloudbeds.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans