Booking.com

FREEMIUM
By Things4u | Updated a month ago | Travel
Popularity

9.3 / 10

Latency

3,386ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Get Price for every room type

Rapid account: Mikekoulouras
mikekoulouras
9 months ago
Hello, 
how can I get the price/night for every room type of a hotel?
Rapid account: Mikekoulouras
mikekoulouras Commented 9 months ago

You are awesome, thank you very much!

Rapid account: Ntd 119
ntd119 Commented 9 months ago

Hi,

I have just updated the API.
To retrieve the price, you should use the stays/properties/detail endpoint, Is is “Prices” item in response.

You need to call the stays/properties/list endpoint to retrieve the idDetail and use it in the stays/properties/detail endpoint.

To get the correct price, the checkin_date, checkout_date input for stays/properties/detail must equal the checkin_date,checkout_date in the stays/properties/list endpoint
Thank you for contributing to the API,

Thanks

Rapid account: Ntd 119
ntd119 Commented 9 months ago

Hi,

I understand. I am currently checking it and will respond as soon as possible. I apologize for any inconvenience.

Thanks.

Rapid account: Mikekoulouras
mikekoulouras Commented 9 months ago

Hello,

I want to view the prices for every room type of a hotel, not just the “displayPrice”.
e.g.

  • Hotel 1
    • Double Room: 40€
    • Triple Room: 60€
  • Hotel 2
    • Deluxe Suite: 100€
    • Junior Suite: 120€

I am using “stays/properties/list” with check-in and check-out date in the future but I only get one price for each hotel.

Thanks.

Rapid account: Ntd 119
ntd119 Commented 9 months ago

Hi,

How do you want to get the prices for each room type? Could you provide a more detailed description?
If possible, could you share the parameters you use when calling my API?

Thanks.

Rapid account: Mikekoulouras
mikekoulouras Commented 9 months ago

Hello, I have done that but still I don’t get the prices for each room type. I can only see the “displayPrice”.

Can you please tell me exactly where I can find the other prices?

Thanks.

Rapid account: Ntd 119
ntd119 Commented 9 months ago

Hi,

The checkin_date and checkout_date must be provided and greater than or equal to the current date.
You can try again

Thaanks

Rapid account: Mikekoulouras
mikekoulouras Commented 9 months ago

Thanks for the fast response.

I still don’t get in the response the price/night for every room type of each hotel but only one price (displayPrice).

Can you tell me which field should I search?

Thanks,

Rapid account: Ntd 119
ntd119 Commented 9 months ago

Hi,

I have just updated the stays/properties/list endpoint.
You can use it now, and if any errors occur, please let me know.

Thanks

Join in the discussion - add comment below:

Login / Signup to post new comments