Skip to main content
POST
Cancel a resource booking of the customer
Cancels a resource booking of the customer, or an older resource appointment. Its nights or its block are free again right away, and the customer is notified. A payment already made is not refunded automatically. The business handles it from its sales.

Endpoint

Required scope

scheduling:appointments:cancel

Path params

  • id: booking id, or the id of an older resource appointment.

Query params

  • customer_phone: required. The booking must belong to this phone; if it does not, the answer is 404.

Body

  • reason: optional, at most 500 characters. Stored as the cancellation reason.

Example request

curl

Response

200 OK

The booking with status: "cancelled", shaped like an item of the search:
To book the same resource again, send new dates to PATCH on the cancelled id: it creates a new booking.

404 Not Found

RESOURCE_BOOKING_NOT_FOUND: it does not exist, belongs to another company, or is not the customer’s.

409 Conflict

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

Body

application/json
reason
string
Maximum string length: 500

Response

200