API documentationBahasa Indonesia
PATCH/api/v2/bookings/{id}
Change a booking
Move it (starts_at, provider_id) or change its status (checked_in, completed, no_show, cancelled, scheduled).
The customer gets a WhatsApp message when the booking is moved or cancelled. Send an Idempotency-Key.
Send an Idempotency-Key header (for example a new UUID per request). A repeat with the same key within 24 hours gets the first answer again, so nothing is sent twice.
Path parameters
idintegerrequiredbooking_id.
Body (JSON)
starts_atstringNew start time in ISO 8601.
provider_idintegerNew provider.
statusstring: scheduled | checked_in | completed | no_show | cancelledNew status.
reasonstringCancellation reason.
Possible errors
- 400
invalid_jsonBody is not valid JSON - 400
idempotency_key_invalidInvalid Idempotency-Key - 401
missing_keyAPI key not sent - 401
key_invalidUnknown API key - 401
key_revokedAPI key revoked - 401
key_expiredAPI key expired - 401
member_inactiveKey creator is no longer a member - 403
ip_not_allowedServer IP not in the key's list - 403
plan_no_apiPlan does not include the API for live keys - 403
tenant_blockedBusiness access suspended - 403
scope_missingKey lacks this permission - 403
permission_missingKey creator's role lacks this permission - 404
not_foundNot found - 409
idempotency_conflictIdempotency-Key used for different content - 409
request_in_progressThe same request is still being processed - 422
invalid_requestInvalid field - 429
rate_limitedToo many requests per minute - 500
internal_errorProblem at Klik Flow
Try it
Try it with a test key
/api/v2/bookings/{id}