Skip to main content
GET
Night-by-night occupancy of a night resource
Returns one entry per night of the range for a night resource. Use it to paint a calendar where the customer picks check-in and check-out, disabling the nights with no room. A night counts every stay that sleeps there and every older resource appointment of that day. A night inside a block the business set on the resource (maintenance, a private event) comes back blocked, with nothing left.

Endpoint

Required scope

scheduling:availability:read

Path params

  • id: resource id. It must be a night resource.

Query params

  • from: first night, YYYY-MM-DD. Required.
  • to: the day after the last night (excluded), YYYY-MM-DD. Required. At most 92 nights after from.

Example request

curl

Response

200 OK

  • used: guests that night in a shared resource (the sum of the party sizes), or 1 when an exclusive resource is taken.
  • remaining: what is left: capacity minus used in a shared resource, 1 or 0 in an exclusive one.
  • blocked: the business blocked the resource that night. remaining is 0 whatever used says.

400 Bad Request

Also STAY_INVALID_RANGE when to is not after from or the range is longer than 92 nights.

404 Not Found

RESOURCE_NOT_FOUND: the resource does not exist or belongs to another company.

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.

Path Parameters

id
string
required

Query Parameters

from
string
required

First night.

Example:

"2026-12-01"

to
string
required

Excluded. At most 92 nights after from.

Example:

"2026-12-08"

Response

200