Skip to main content
GET
Quote a stay on night resources
A stay on a night resource runs from a check-in day to a check-out day. The nights are the days in between: check-in Thursday 3 and check-out Saturday 5 is two nights (Thursday and Friday). This endpoint quotes that stay on every active night resource of the branch at once, sorted by the order the business set. Each resource says whether it fits, and when it does not, why. Reading a quote does not hold anything: book with POST booking/resource-bookings.

Endpoint

Required scope

scheduling:availability:read

Query params

  • branch_id, check_in, check_out: required. Days are YYYY-MM-DD in the branch timezone. check_out must be after check_in, and a stay is at most 92 nights.
  • party_size: how many guests the stay must fit each night. Defaults to 1.
  • resource_id: only quote that resource. It must be a night resource of the branch. An inactive resource returns an empty resources array.
  • exclude_booking_id: the booking you are moving. Its nights do not count, so it can be quoted on new dates without colliding with itself.

Example request

curl

Response

200 OK

  • price: price of the whole stay: nights × the amount of the resource’s only pricing tier, times party_size when pricing.mode is per_person. There is no per-night field; divide by nights if you need it.
  • prepayment: amount the customer pays up front when the resource asks for one. 0 when it does not.
  • check_in_window and check_out_window: local times the guest can arrive on the check-in day and leave on the check-out day. Send a check_in_time inside the first one when booking; leave it out and the stay starts when the window opens.
  • nights[].remaining: room left that night, before this stay.
  • A resource that does not fit carries no windows, price or prepayment.
reason is null when the resource fits, or one of:
  • FULL:<date>: the first night without room.
  • CLOSED_CHECK_IN / CLOSED_CHECK_OUT: the resource takes no check-ins, or no check-outs, that day (closed day, holiday).
  • MIN_NIGHTS / MAX_NIGHTS: the stay is shorter or longer than the resource’s stay allows.
  • PARTY_SIZE: the party does not fit one booking of the resource.
  • TOO_SOON / TOO_FAR: the check-in is before the minimum notice, or past how far ahead the business takes bookings.

400 Bad Request

RESOURCE_BOOKING_UNIT_MISMATCH when resource_id is a block resource.

404 Not Found

BRANCH_NOT_FOUND, or RESOURCE_NOT_FOUND when resource_id does not exist or belongs to another branch.

401 Unauthorized · 403 Forbidden

Same semantics as the rest of the public API.

Authorizations

Authorization
string
header
required

Personal Access Token con prefijo kbai_pk_. Generar desde el portal con permiso developer.manage_tokens.

Query Parameters

branch_id
string
required
check_in
string
required
Example:

"2026-12-03"

check_out
string
required
Example:

"2026-12-05"

party_size
number
default:1
Required range: x >= 1
resource_id
string

Only quote this resource.

exclude_booking_id
string

Booking (or legacy resource appointment) being moved: it does not count.

Response

200