---
title: "The price of one stay, or why it cannot be booked"
method: GET
path: "/api/public/v1/p/{slug}/quote"
---

# The price of one stay, or why it cannot be booked

`GET /api/public/v1/p/{slug}/quote`

## Request

- Base URL: `https://posadita.com`
- URL: `https://posadita.com/api/public/v1/p/{slug}/quote`
- Auth: none declared

## Path parameters

- `slug` string, required

## Query parameters

- `checkIn` string, date, required
- `checkOut` string, date, required
- `adults` integer, required
- `children` integer

## Response `200`

A quote, or a rejection with `ok: false`

- union
  - object
    - `ok` unknown, required
    - `checkIn` string, date, required
    - `checkOut` string, date, required
    - `adults` integer
    - `children` integer
    - `nights` integer, required
    - `currency` string, required: ISO 4217
    - `totalCents` integer, required: Everything the guest pays for the stay, in minor units.
    - `breakdown` object
      - `nightsCents` integer
      - `lengthDiscountCents` integer
      - `extraGuestFeeCents` integer
      - `cleaningFeeCents` integer
      - `promoDiscountCents` integer
  - object: The stay cannot be booked as asked. `reason` says why: unavailable (with the taken `dates`), min_stay (with `minStay`), no_checkin_day, no_checkout_day, max_guests (with `maxGuests`), no_rates, invalid_range.
    - `ok` unknown, required
    - `reason` string, required
    - `dates` string[]
    - `minStay` integer
    - `maxGuests` integer

## Other responses

- `404`: The place does not take bookings online

---

[API](https://skmtc.dev/posadita/apis/posadita-direct-booking.md) · [All operations](https://skmtc.dev/posadita/apis/posadita-direct-booking/llms.txt) · [OpenAPI document](https://skmtc.dev/posadita/apis/posadita-direct-booking/revisions/5a4a24c27407?raw)
