Skip to main content
GET
Search the resource bookings of a customer
Finds the resource bookings of a customer, newest first. It covers stays and block bookings, plus the resource appointments the business made before stays existed (kind: "appointment"). Cancelled ones are left out. Use the id of an item with GET, PATCH or cancel: they accept both kinds.

Endpoint

Required scope

scheduling:appointments:read

Query params

  • query: required. A phone (with or without +), an email, or a name (each word matches the first or last name). 1 to 200 characters.
  • limit: 1 to 15. Defaults to 15.

Example request

curl

Response

200 OK

  • start_time and end_time: local date-times with the branch’s offset.
  • A stay carries check_in, check_out and nights. A block carries date and duration_minutes.
  • An older resource appointment (kind: "appointment") keeps its block label and carries no check_in, check_out or nights, even on a night resource. It took the night of its day.
  • customer_phone: the phone stored on the booking. It is what you pass as customer_phone to read, change or cancel it.

400 Bad Request

query missing, empty or longer than 200 characters, or limit outside 1 to 15.

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

query
string
required

Phone, email or name of the customer.

limit
number
default:15
Required range: 1 <= x <= 15

Response

200