ThoughtAPI

Docs c3

Door and staff (c3)

Gate codes, door lookup, tickets and identity checks at the door in the ChingChing.Club API.

Base URL
https://c3.thought.bz/
Version
v1
Auth
Bearer session token in the Authorization header, except where an endpoint says None
Status
Beta

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

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

bash
curl "https://c3.thought.bz/v1/venues/<venueId>/gate" \
  -H "Authorization: Bearer <token>"

Response

json
{
  "venueId": "vn12345abcde",
  "code": "v1.vq12345abcde.<secret>",
  "gateId": "vq12345abcde",
  "businessDate": "2026-12-02",
  "soundId": "sound.3",
  "dutyStaffId": "vf12345abcde"
}
StatusMeaning
403The 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

NameInTypeDescription
venueId requiredpathstringThe venue id.
memberIdbodystringThe staff member taking duty. The caller is used when this is left out.

Request

bash
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

json
{ "venueId": "vn12345abcde", "dutyStaffId": "u54321edcba", "businessDate": "2026-12-02" }
StatusMeaning
403The 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

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

bash
curl "https://c3.thought.bz/v1/venues/<venueId>/staff-code" \
  -H "Authorization: Bearer <token>"

Response

json
{
  "venueId": "vn12345abcde",
  "code": "s1.vn12345abcde.u12345abcde.<secret>",
  "businessDate": "2026-12-02",
  "soundId": "sound.3"
}
StatusMeaning
403The 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

NameInTypeDescription
venueId requiredpathstringThe venue id.
e164 requiredbodystringThe member's phone number.
type requiredbodystringpaid, free, comp or allow. A label for the door. No price is stored.
method requiredbodystringqr or nfc.

Request

bash
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

json
{
  "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"
}
StatusMeaning
400The number, type or method is not valid. Codes invalid_phone and invalid_body.
403The caller cannot issue tickets here. Code forbidden.
404No 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

NameInTypeDescription
method requiredbodystringvenue_qr, staff_qr or nfc.
code requiredbodystringThe scanned code.

Request

bash
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

json
{
  "result": "pass",
  "reason": null,
  "level": 1,
  "levelIconId": "level.1",
  "soundId": "sound.3",
  "handle": "bluetwo",
  "staffId": "vf12345abcde",
  "ticketId": "kt12345abcde",
  "reentry": false,
  "scanId": "ey12345abcde",
  "venueId": "vn12345abcde"
}
StatusMeaning
400The 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

NameInTypeDescription
e164 requiredbodystringThe member's phone number.
venueId requiredbodystringThe venue the staff member works at.

Request

bash
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

json
{ "handle": "bluetwo", "levelIconId": "level.1" }
StatusMeaning
400The number is not valid. Code invalid_phone.
403The caller is not staff at the venue. Code forbidden.
404No 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

NameInTypeDescription
venueId requiredpathstringThe venue id.
code requiredquerystringThe member's payment reference, for example c3-abcd-7.

Request

bash
curl "https://c3.thought.bz/v1/venues/<venueId>/door-lookup" \
  -H "Authorization: Bearer <token>"

Response

json
{ "memberId": "u54321edcba", "handle": "bluetwo", "levelIconId": "level.1", "paymentCode": "c3-abcd-7" }
StatusMeaning
400The code is not a payment reference. Code invalid_body.
403The caller cannot look up a member here. Code forbidden.
404No 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

NameInTypeDescription
venueId requiredpathstringThe venue id.
memberId requiredbodystringThe member who was checked.
result requiredbodystringverified or failed.
notebodystringA short note.

Request

bash
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

json
{
  "verificationId": "kv12345abcde",
  "ts": "2026-12-02T20:00:00Z",
  "status": "verified",
  "level": 1,
  "levelIconId": "level.1"
}
StatusMeaning
400The result or note is not valid. Code invalid_body.
403The caller cannot verify members here. Code forbidden.
404No such member or venue. Code not_found.

Updated 2026-12-02