BizKitHub
DokumentacePrůzkumník APICustomer/api/v1/customer/event-access
getCustomerVeřejné API v1

/api/v1/customer/event-access

Returns the smart-lock access code of a reservation for the logged-in customer. Allowed only for an event the customer has a paid, not cancelled order line for, or is an attendee of (shared training); otherwise PUBLIC_CALENDAR_EVENT_DOES_NOT_EXIST (404). The code is returned no earlier than the calendar-event-ping e-mail is sent and never after the event ends. status: ready (own code), backup (the lock's backup code was used), not_generated, no_lock, failed (generation failed and no backup was available), not_yet_available (access e-mail not sent yet), expired, cancelled. password, startDate and endDate are present only with ready / backup.

customergetApiV1CustomerEvent-access

Parametry

3 v query

Parametry v query

· 3
apiKeystringPovinné

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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
identityIdstringPovinné

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

PříkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
eventCodestringPovinné

Calendar event code (lines[].event.id in GET /customer/order-list).

Délka: 1–32
Příklad7lRIAiC69gZMfwsDbG3CJvQdqnY15XdS

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
eventCodestringPovinné
Příklad7lRIAiC69gZMfwsDbG3CJvQdqnY15XdS
status"ready" | "backup" | "not_generated" | "no_lock" | "failed" | "not_yet_available" | "expired" | "cancelled"Povinné

Access code state, see the endpoint description.

Příkladready
passwordstringVolitelné

Keypad code.

Příklad48213907
startDateDate | string | string | numberVolitelné

Code valid from.

Jedna z 4 možností:
Varianta 1
Date

Code valid from.

Příklad2026-11-08T09:59:00.000Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
endDateDate | string | string | numberVolitelné

Code valid until.

Jedna z 4 možností:
Varianta 1
Date

Code valid until.

Příklad2026-11-08T11:05:00.000Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
eventStartTimeDate | string | string | numberPovinné
Jedna z 4 možností:
Varianta 1
Date
Příklad2026-11-08T10:00:00.000Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
eventEndTimeDate | string | string | numberPovinné
Jedna z 4 možností:
Varianta 1
Date
Příklad2026-11-08T11:00:00.000Z
Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number

Ukázka odpovědi

application/json
{
  "eventCode": "7lRIAiC69gZMfwsDbG3CJvQdqnY15XdS",
  "status": "ready",
  "password": "48213907",
  "startDate": "2026-11-08T09:59:00.000Z",
  "endDate": "2026-11-08T11:05:00.000Z",
  "eventStartTime": "2026-11-08T10:00:00.000Z",
  "eventEndTime": "2026-11-08T11:00:00.000Z"
}

Ukázka požadavku

GET /api/v1/customer/event-access

get
curl -X GET "https://api.bizkithub.com/api/v1/customer/event-access?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg&eventCode=7lRIAiC69gZMfwsDbG3CJvQdqnY15XdS" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč