BizKitHub
DokumentacjaEksplorator APICustomer/api/v1/customer/event-access
getCustomerPubliczne 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 w query

Parametry query

· 3
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
identityIdstringWymagane

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

PrzykładZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
eventCodestringWymagane

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

Długość: 1–32
Przykład7lRIAiC69gZMfwsDbG3CJvQdqnY15XdS

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
eventCodestringWymagane
Przykład7lRIAiC69gZMfwsDbG3CJvQdqnY15XdS
status"ready" | "backup" | "not_generated" | "no_lock" | "failed" | "not_yet_available" | "expired" | "cancelled"Wymagane

Access code state, see the endpoint description.

Przykładready
passwordstringOpcjonalne

Keypad code.

Przykład48213907
startDateDate | string | string | numberOpcjonalne

Code valid from.

Jedna z 4 opcji:
Wariant 1
Date

Code valid from.

Przykład2026-11-08T09:59:00.000Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
endDateDate | string | string | numberOpcjonalne

Code valid until.

Jedna z 4 opcji:
Wariant 1
Date

Code valid until.

Przykład2026-11-08T11:05:00.000Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
eventStartTimeDate | string | string | numberWymagane
Jedna z 4 opcji:
Wariant 1
Date
Przykład2026-11-08T10:00:00.000Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
eventEndTimeDate | string | string | numberWymagane
Jedna z 4 opcji:
Wariant 1
Date
Przykład2026-11-08T11:00:00.000Z
Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number

Przykład odpowiedzi

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"
}

Przykład żądania

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"

Potrzebujesz klucza API?

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

Uzyskaj klucz API