Door and staff (c3)
Gate codes, door lookup, tickets and identity checks at the door in the ChingChing.Club API.
This page is part of the c3 (ChingChing.Club) API reference.
Run the door with QR and NFC codes, and issue entry tickets. Most calls need a staff role at the venue, or the venue kiosk token.
GET /v1/venues/{venueId}/gate#
Read today's venue entry code.
Auth Member session token (venue owner, manager or staff with scan_entry), or the venue kiosk token
| Name | In | Type | Description |
|---|---|---|---|
venueId required | path | string | The venue id. |
Request
curl "https://c3.thought.bz/v1/venues/<venueId>/gate" \
-H "Authorization: Bearer <token>"
Response
{
"venueId": "vn12345abcde",
"code": "v1.vq12345abcde.<secret>",
"gateId": "vq12345abcde",
"businessDate": "2026-12-02",
"soundId": "sound.3",
"dutyStaffId": "vf12345abcde"
}
| Status | Meaning |
|---|---|
403 | The caller cannot run the door here. Code forbidden. |
The code changes with the business date. The venue shows it as a QR code or writes it to NFC for members to scan.
POST /v1/venues/{venueId}/gate-duty#
Set who is on door duty today.
Auth Member session token (venue owner, manager or staff with scan_entry), or the venue kiosk token
| Name | In | Type | Description |
|---|---|---|---|
venueId required | path | string | The venue id. |
memberId | body | string | The staff member taking duty. The caller is used when this is left out. |
Request
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/gate-duty" \
-H "Authorization: Bearer <token>" \
-H "Idempotency-Key: <16 to 128 characters>" \
-H "Content-Type: application/json" \
-d '{"memberId": "u54321edcba"}'
Response
{ "venueId": "vn12345abcde", "dutyStaffId": "u54321edcba", "businessDate": "2026-12-02" }
| Status | Meaning |
|---|---|
403 | The caller cannot set door duty here. Code forbidden. |
GET /v1/venues/{venueId}/staff-code#
Read the caller's own staff code for today.
Auth Member session token (venue owner, manager or staff with scan_entry), or the venue kiosk token
| Name | In | Type | Description |
|---|---|---|---|
venueId required | path | string | The venue id. |
Request
curl "https://c3.thought.bz/v1/venues/<venueId>/staff-code" \
-H "Authorization: Bearer <token>"
Response
{
"venueId": "vn12345abcde",
"code": "s1.vn12345abcde.u12345abcde.<secret>",
"businessDate": "2026-12-02",
"soundId": "sound.3"
}
| Status | Meaning |
|---|---|
403 | The caller is not staff at this venue. Code forbidden. |
Members scan a staff code to enter, and to tip the waiter who showed it.
POST /v1/venues/{venueId}/tickets#
Issue a 12 hour entry ticket to a member.
Auth Member session token (venue owner, manager or staff with scan_entry), or the venue kiosk token
| Name | In | Type | Description |
|---|---|---|---|
venueId required | path | string | The venue id. |
e164 required | body | string | The member's phone number. |
type required | body | string | paid, free, comp or allow. A label for the door. No price is stored. |
method required | body | string | qr or nfc. |
Request
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/tickets" \
-H "Authorization: Bearer <token>" \
-H "Idempotency-Key: <16 to 128 characters>" \
-H "Content-Type: application/json" \
-d '{"e164": "+27821234567", "type": "paid", "method": "qr"}'
Response
{
"ticketId": "kt12345abcde",
"venueId": "vn12345abcde",
"type": "paid",
"method": "qr",
"issuedAt": "2026-12-02T20:00:00Z",
"expiresAt": "2026-12-03T08:00:00Z",
"staffId": "u12345abcde",
"handle": "bluetwo",
"levelIconId": "level.1"
}
| Status | Meaning |
|---|---|
400 | The number, type or method is not valid. Codes invalid_phone and invalid_body. |
403 | The caller cannot issue tickets here. Code forbidden. |
404 | No member with that number. Code not_found. |
POST /v1/gate/scan#
Scan a venue code, staff code or NFC tag at the door.
Auth Member session token
| Name | In | Type | Description |
|---|---|---|---|
method required | body | string | venue_qr, staff_qr or nfc. |
code required | body | string | The scanned code. |
Request
curl -X POST "https://c3.thought.bz/v1/gate/scan" \
-H "Authorization: Bearer <token>" \
-H "Idempotency-Key: <16 to 128 characters>" \
-H "Content-Type: application/json" \
-d '{"method": "venue_qr", "code": "v1.vq12345abcde.<secret>"}'
Response
{
"result": "pass",
"reason": null,
"level": 1,
"levelIconId": "level.1",
"soundId": "sound.3",
"handle": "bluetwo",
"staffId": "vf12345abcde",
"ticketId": "kt12345abcde",
"reentry": false,
"scanId": "ey12345abcde",
"venueId": "vn12345abcde"
}
| Status | Meaning |
|---|---|
400 | The code is not shaped like a venue or staff code, or the method is not one of the three. Code invalid_body. |
A refused scan is still HTTP 200 with result deny and a reason such as no_ticket, ticket_expired, wrong_venue, not_today, bad_gate_code, suspended or signup_incomplete. Play soundId and show levelIconId so door staff can see at a glance that the scan is genuine.
POST /v1/members/lookup#
Look up a member by phone number from a venue.
Auth Member session token, venue staff
| Name | In | Type | Description |
|---|---|---|---|
e164 required | body | string | The member's phone number. |
venueId required | body | string | The venue the staff member works at. |
Request
curl -X POST "https://c3.thought.bz/v1/members/lookup" \
-H "Authorization: Bearer <token>" \
-H "Idempotency-Key: <16 to 128 characters>" \
-H "Content-Type: application/json" \
-d '{"e164": "+27821234567", "venueId": "vn12345abcde"}'
Response
{ "handle": "bluetwo", "levelIconId": "level.1" }
| Status | Meaning |
|---|---|
400 | The number is not valid. Code invalid_phone. |
403 | The caller is not staff at the venue. Code forbidden. |
404 | No member with that number. Code not_found. |
Only the handle and level icon are returned.
GET /v1/venues/{venueId}/door-lookup#
Look up a member by payment reference at the door.
Auth Member session token, venue owner, manager, supervisor or staff with scan_entry
| Name | In | Type | Description |
|---|---|---|---|
venueId required | path | string | The venue id. |
code required | query | string | The member's payment reference, for example c3-abcd-7. |
Request
curl "https://c3.thought.bz/v1/venues/<venueId>/door-lookup" \
-H "Authorization: Bearer <token>"
Response
{ "memberId": "u54321edcba", "handle": "bluetwo", "levelIconId": "level.1", "paymentCode": "c3-abcd-7" }
| Status | Meaning |
|---|---|
400 | The code is not a payment reference. Code invalid_body. |
403 | The caller cannot look up a member here. Code forbidden. |
404 | No member has that reference. Code not_found. |
No identity document or name is returned.
POST /v1/venues/{venueId}/kyc-verifications#
Record the result of checking a member's identity in person.
Auth Member session token with a venue staff role
| Name | In | Type | Description |
|---|---|---|---|
venueId required | path | string | The venue id. |
memberId required | body | string | The member who was checked. |
result required | body | string | verified or failed. |
note | body | string | A short note. |
Request
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/kyc-verifications" \
-H "Authorization: Bearer <token>" \
-H "Idempotency-Key: <16 to 128 characters>" \
-H "Content-Type: application/json" \
-d '{"memberId": "u54321edcba", "result": "verified"}'
Response
{
"verificationId": "kv12345abcde",
"ts": "2026-12-02T20:00:00Z",
"status": "verified",
"level": 1,
"levelIconId": "level.1"
}
| Status | Meaning |
|---|---|
400 | The result or note is not valid. Code invalid_body. |
403 | The caller cannot verify members here. Code forbidden. |
404 | No such member or venue. Code not_found. |
Updated 2026-12-02