VANITYPASS
B2B APIHotels

Hotel Details & Search Helpers

Fetch full hotel information, autocomplete destinations, validate bookings, and update traveller details.

Hotel Details & Search Helpers

Supporting endpoints for enriching hotel search results, validating bookings, and managing traveller information.

Hotel Details

POST /v1/hotel/details

Get full hotel info: photos, amenities, policies, location.

FieldTypeRequiredDescription
hotel_idstringyesHotel identifier.
Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
POST/v1/hotel/details

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X POST 'https://cloud.vanitypass.com/v1/hotel/details' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"hotel_id":"htl_example"}'

Auto-Suggestion

POST /v1/hotel/auto-suggestion

Autocomplete destinations and hotel names. Use this to power search-as-you-type inputs. Returns a list of matching destinations, cities, and hotel names with their identifiers.

FieldTypeRequiredDescription
locationstringyesPartial destination or hotel name to search.
Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
POST/v1/hotel/auto-suggestion

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X POST 'https://cloud.vanitypass.com/v1/hotel/auto-suggestion' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"location":"New York"}'

Auto-Suggestion (V2)

POST /v1/hotel/auto-suggestion/v2

Enhanced auto-suggestion that returns richer hotel metadata and accepts an optional language for localized results. Prefer V2 for new integrations; V1 remains available for backwards compatibility.

FieldTypeRequiredDescription
locationstringyesPartial destination or hotel name to search.
languagestringnoISO-639-1 language code for results (default: en).
Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
POST/v1/hotel/auto-suggestion/v2

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X POST 'https://cloud.vanitypass.com/v1/hotel/auto-suggestion/v2' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"location":"New York","language":"en"}'

Validate Booking

POST /v1/hotel/validate

Validate a booking request before submission. Checks room availability, guest counts, and policy compliance. Call this before initiating a booking to surface any issues early.

FieldTypeRequiredDescription
room_idstringyesRoom identifier.
hotel_idstringyesHotel identifier.
guests.adultsintegeryesNumber of adult guests.
Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
POST/v1/hotel/validate

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X POST 'https://cloud.vanitypass.com/v1/hotel/validate' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"room_id":"room_example","hotel_id":"htl_example","guests":{"adults":2}}'

Update Travellers

POST /v1/hotel/update-travellers

Save or update traveller/passenger info for a booking. Call this after initiating a booking to attach guest details required by the property.

FieldTypeRequiredDescription
booking_idstringyesBooking identifier from the initiate response.
travellersarrayyesList of traveller objects.
travellers[].first_namestringyesTraveller's first name.
travellers[].last_namestringyesTraveller's last name.
travellers[].passportstringnoPassport number (required by some properties).
Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
POST/v1/hotel/update-travellers

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X POST 'https://cloud.vanitypass.com/v1/hotel/update-travellers' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"booking_id":"book_example","travellers":[{"first_name":"Jane","last_name":"Doe","passport":"AB1234567"}]}'

Weekly Recommendations

GET /v1/hotel/recommendations

Curated weekly hotel recommendations. Returns a curated list of featured hotels updated each week. Useful for populating landing pages and discovery surfaces.

Sandbox-only. Try-it requests target https://cloud.vanitypass.com with X-Environment: Sandbox. No real bookings or charges. Production access: contact us.
GET/v1/hotel/recommendations

Sandbox credentials

Keys never leave your browser — they are sent only to cloud.vanitypass.com with X-Environment: Sandbox.

curl -X GET 'https://cloud.vanitypass.com/v1/hotel/recommendations' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \