Exact stay price
ot_price_quoteCalculate the exact price in Toman for an Otaghak room stay given dates and guests, including extra-guest and late checkout fees, and verify nightly availability and stay limits.
Instructions
Get the amount to pay (Toman) for a room, dates and guests: nights_total (the room page's
payable amount for the base guests), the extra-guest charge, optional late checkout, and the total.
nightly is the calendar breakdown (each discounted night is rounded to 1,000, so it can add up to
a little more than nights_total; price_before_discount is absent when there is no discount).
Also checks that every night is free, the stay length is allowed and the room takes that many guests (available=false with a reason otherwise). Late checkout that cannot be booked keeps the quote, with late_checkout.available=false. Use before the user books on otaghak.com.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guests | Yes | Guests, e.g. 4. | |
| room_id | Yes | Room id (code), e.g. 2512254. | |
| check_in | Yes | Arrival day YYYY-MM-DD, e.g. '2026-10-20'. | |
| check_out | Yes | Departure day, e.g. '2026-10-23' (max 20 nights). | |
| late_checkout_hours | No | Late checkout hours to add (offered rooms), e.g. 4. |