BizKitHub
DokumentacjaEksplorator APICalendar/api/v1/calendar/event-late-cancel
postCalendarPubliczne API v1

/api/v1/calendar/event-late-cancel

Cancels a reservation less than onlineChangeDeadline before its start: the slot is released, the order stays paid, nothing is refunded and no e-mail is sent. Allowed only when the calendar has late cancellation enabled, at least lateCancelMinBefore before the start and before the access-code e-mail was sent. Idempotent (already_cancelled). 409 responses carry the current cancellation state.

calendarpostApiV1CalendarEvent-late-cancel

Parametry

1 w query · Treść JSON

Parametry query

· 1
apiKeystringWymagane

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Treść żądania

application/json
orderIdstringWymagane
Długość: 32
PrzykładsSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S
orderItemIdstringWymagane

Order line id from /customer/order-list (or <orderId>_<internal id>).

Przykłady2d33677772eddbd4e869c6ed6bf6d9f3sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S_4186
identityIdstringWymagane

Logged user identity (from your frontend cookies). Learn more

PrzykładZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg

Schemat odpowiedzi

3 udokumentowane kody statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
status"cancelled"Wymagane
cancelledAtstringWymagane
Przykład2026-10-19T16:05:00+02:00
lockCodeDeletedbooleanWymagane

False = the lock was unreachable; deletion is retried.

Wariant 2
status"already_cancelled"Wymagane
cancelledAtstringWymagane

Przykład odpowiedzi

application/json
{
  "status": "cancelled",
  "cancelledAt": "2026-10-19T16:05:00+02:00",
  "lockCodeDeleted": false
}

Wszystkie udokumentowane kody statusu

· 3

Przykład żądania

POST /api/v1/calendar/event-late-cancel

post
curl -X POST "https://api.bizkithub.com/api/v1/calendar/event-late-cancel?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "orderId": "sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S",
  "orderItemId": "2d33677772eddbd4e869c6ed6bf6d9f3",
  "identityId": "Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg"
}'

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API