Search for accommodation by ids

POST https://api.duffel.com/stays/search

Returns all available accommodations that match your search criteria. Each accommodation is returned with information on the cheapest available rate. The room and rate information is not guaranteed to be complete or accurate on this endpoint and can vary across different accommodations. cheapest_rate_total_amount will always be accurate.

Request Body

{"data"=>{"check_in_date"=>"{{three_months_out}}", "check_out_date"=>"{{three_months_and_three_days_out}}", "accommodation"=>{"ids"=>["{{duffel_test_hotel}}"], "fetch_rates"=>true}, "rooms"=>1, "guests"=>[{"type"=>"adult"}, {"type"=>"adult"}]}}

HEADERS

KeyDatatypeRequiredDescription
Duffel-Versionstring