Exact stay price
ot_price_quoteCalculate the total stay price in Toman for a room, dates, and guests, and verify availability, allowed stay length, and extra-guest or late checkout charges before booking on otaghak.com.
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 above the base guests (after
discount), optional late checkout, and the total. nightly is the calendar breakdown; discounted
nights there are rounded to 1,000 each, so they can add up to a little more than nights_total.
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. Coupons and wallet credit need login and are not included. Use before the user books on otaghak.com.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guests | Yes | Number of guests, e.g. 4. | |
| room_id | Yes | Room id (code), e.g. 2512254. | |
| check_in | Yes | Arrival day, Gregorian YYYY-MM-DD, e.g. '2026-10-20'. | |
| check_out | Yes | Departure day, e.g. '2026-10-23'. At most 20 nights. | |
| late_checkout_hours | No | Late checkout hours to add (offered rooms only, usually 4), e.g. 4. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||