VANITYPASS
B2B APIHotels

Get Rooms

Retrieve available room types and rates for a hotel.

Get Rooms

Retrieve available room types and rates for a specific hotel property, then confirm a price before committing to a booking.

List Rooms

POST /v1/hotel/rooms

Returns available room types and rate plans for the given hotel and stay dates. Each room includes rate breakdown, cancellation policy, and board type.

FieldTypeRequiredDescription
hotel_idstringyesHotel identifier returned from search.
check_instringyesCheck-in date in YYYY-MM-DD format.
check_outstringyesCheck-out date in YYYY-MM-DD format.
guests.adultsintegeryesNumber of adult guests.
guests.roomsintegeryesNumber of rooms requested.
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/rooms

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/rooms' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"hotel_id":"htl_example","check_in":"2026-07-01","check_out":"2026-07-03","guests":{"adults":2,"rooms":1}}'

Confirm Price

POST /v1/hotel/confirm-price

Lock in the rate for a specific room before booking. Call this immediately before initiating a booking to ensure the quoted price is still valid. Returns a price confirmation token valid for a short window.

FieldTypeRequiredDescription
room_idstringyesRoom identifier from the rooms response.
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/confirm-price

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/confirm-price' \
  -H 'Content-Type: application/json' \
  -H 'X-Environment: Sandbox' \
  -d '{"room_id":"room_example","hotel_id":"htl_example"}'