ThoughtAPI

Docs c3

Venues (c3)

Creating a venue, staff, jobs and the kiosk token 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.

Create a venue, manage staff and jobs, and read a venue's audience, statement and terminals. Most calls need a staff role at the venue in the path.

POST /v1/venues#

Create a venue. The caller becomes its owner.

Auth Member session token

NameInTypeDescription
venueName requiredbodystringThe venue name.
suburbbodystringThe suburb shown on the public map. A street address is not accepted.

Request

bash
curl -X POST "https://c3.thought.bz/v1/venues" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"venueName": "Mira Room", "suburb": "Sandton"}'

Response

json
{ "venueId": "vn12345abcde", "venueName": "Mira Room", "role": "owner", "status": "active" }
StatusMeaning
400The name or suburb is not valid. Code invalid_body.
403This token cannot create a venue. Code forbidden.
409A venue with that name already exists. Code handle_unavailable.

GET /v1/venues/{venueId}#

Read a venue's name and status.

Auth Member session token

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{ "venueId": "vn12345abcde", "venueName": "Mira Room", "status": "active" }
StatusMeaning
404No such venue. Code not_found.

GET /v1/venues/{venueId}/staff#

List the venue's staff.

Auth Member session token with a venue staff role

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{
  "venueId": "vn12345abcde",
  "items": [
    { "memberId": "u12345abcde", "staffId": "vf12345abcde", "role": "owner", "permissions": [], "canSubmitInvoices": false, "handle": "aquaone", "status": "active" }
  ]
}
StatusMeaning
403The caller is not staff at this venue. Code forbidden.
404No such venue. Code not_found.

Staff are listed by member id and handle. No name or phone number is returned.

POST /v1/venues/{venueId}/staff#

Give a member a role at the venue.

Auth Member session token, venue owner or manager

NameInTypeDescription
venueId requiredpathstringThe venue id.
e164 requiredbodystringThe member's phone number.
role requiredbodystringowner, manager, supervisor or staff. An owner can grant any role. A manager can grant supervisor and staff.
permissions requiredbodyarray of stringAny of scan_entry, pos, refunds, orders.free.give, boards.manage, products.create, products.edit, products.price.edit, products.status.set, attach_codes and sticker_init. Can be empty.

Request

bash
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/staff" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"e164": "+27821234567", "role": "staff", "permissions": ["scan_entry", "pos"]}'

Response

json
{
  "venueId": "vn12345abcde",
  "memberId": "u54321edcba",
  "role": "staff",
  "permissions": ["scan_entry", "pos"],
  "handle": "bluetwo",
  "levelIconId": "level.1"
}
StatusMeaning
400The phone number, role or permissions are not valid. Codes invalid_phone and invalid_body.
403The caller may not grant this role. Code forbidden.
404No member with that number, or no such venue. Code not_found.

PATCH /v1/venues/{venueId}/staff/{memberId}#

Change a staff member's role or permissions.

Auth Member session token, venue owner or manager

NameInTypeDescription
venueId requiredpathstringThe venue id.
memberId requiredpathstringThe staff member's member id.
rolebodystringThe new role.
permissionsbodyarray of stringThe new permission list.

Request

bash
curl -X PATCH "https://c3.thought.bz/v1/venues/<venueId>/staff/<memberId>" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"permissions": ["scan_entry", "pos", "refunds"]}'

Response

json
{
  "venueId": "vn12345abcde",
  "memberId": "u54321edcba",
  "role": "staff",
  "permissions": ["scan_entry", "pos", "refunds"],
  "handle": "bluetwo",
  "levelIconId": "level.1"
}
StatusMeaning
403The caller may not change this role. Code forbidden.
404No such staff member. Code not_found.

DELETE /v1/venues/{venueId}/staff/{memberId}#

Remove a staff member who is not an owner.

Auth Member session token, venue owner or manager

NameInTypeDescription
venueId requiredpathstringThe venue id.
memberId requiredpathstringThe staff member's member id.

Request

bash
curl -X DELETE "https://c3.thought.bz/v1/venues/<venueId>/staff/<memberId>" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>"

Response

json
{ "removed": true }
StatusMeaning
403The caller may not remove this person. An owner can remove anyone but an owner, and a manager can remove supervisors and staff. Code forbidden.
404No such staff member. Code not_found.

PUT /v1/venues/{venueId}/staff/{staffId}/can-submit-invoices#

Allow or stop a staff member from submitting invoices.

Auth Member session token, venue owner or manager

NameInTypeDescription
venueId requiredpathstringThe venue id.
staffId requiredpathstringThe staff id from the staff list.
allowed requiredbodybooleanThe new state.

Request

bash
curl -X PUT "https://c3.thought.bz/v1/venues/<venueId>/staff/<staffId>/can-submit-invoices" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"allowed": true}'

Response

json
{ "venueId": "vn12345abcde", "staffId": "vf12345abcde", "memberId": "u54321edcba", "canSubmitInvoices": true }
StatusMeaning
404No such staff member. Code not_found.

GET /v1/venues/{venueId}/jobs#

List the job titles set up at the venue and their permissions.

Auth Member session token with a venue staff role

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{
  "venueId": "vn12345abcde",
  "items": [ { "name": "Waiter", "permissions": ["pos"] } ]
}
StatusMeaning
403The caller is not staff at this venue. Code forbidden.
404No such venue. Code not_found.

PUT /v1/venues/{venueId}/jobs#

Set the permissions that go with a job title.

Auth Member session token, venue owner or manager

NameInTypeDescription
venueId requiredpathstringThe venue id.
name requiredbodystringOwner, Manager, Supervisor, Cashier, Waiter, Bartender, Kitchen, Host / Door or Stock clerk.
permissions requiredbodyarray of stringThe permissions for that job.

Request

bash
curl -X PUT "https://c3.thought.bz/v1/venues/<venueId>/jobs" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"name": "Waiter", "permissions": ["pos"]}'

Response

json
{ "venueId": "vn12345abcde", "name": "Waiter", "permissions": ["pos"] }
StatusMeaning
400The title or permissions are not valid. Code invalid_body.
403Only an owner or manager can change jobs. Code forbidden.

POST /v1/venues/{venueId}/kiosk#

Issue a 12 hour kiosk token locked to this venue.

Auth Member session token, venue owner or manager

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

bash
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/kiosk" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>"

Response

json
{
  "token": "<kiosk-token>",
  "tokenType": "kiosk",
  "expiresAt": "2026-12-03T02:15:15Z",
  "venueId": "vn12345abcde"
}
StatusMeaning
403The caller is not an owner or manager here. Code forbidden.

Use the kiosk token for the shared venue tablet. It cannot be used at any other venue.

GET /v1/venues/{venueId}/audience#

Read how many active staff a venue has and how many open public events it has.

Auth Member session token with a venue staff role

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{ "venueId": "vn12345abcde", "staff": 4, "events": 12 }
StatusMeaning
403The caller is not staff at this venue. Code forbidden.
404No such venue. Code not_found.

GET /v1/venues/{venueId}/statement#

Read the card sales already taken at a venue.

Auth Member session token with a venue staff role

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{ "venueId": "vn12345abcde", "cardSalesCents": 125000, "paymentCount": 18 }
StatusMeaning
403The caller is not staff at this venue. Code forbidden.
404No such venue. Code not_found.

This is a read of sales recorded from the card machine. It takes no payment.

GET /v1/venues/{venueId}/terminals#

List the card machines registered at a venue.

Auth Member session token with a venue staff role

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{ "venueId": "vn12345abcde", "terminals": [] }
StatusMeaning
403The caller is not staff at this venue. Code forbidden.
404No such venue. Code not_found.

The list is empty until a card machine is registered.

Updated 2026-12-02