ThoughtAPI

Docs c3

Point of sale (c3)

Products, orders, till payments and the table view 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.

Products, orders, delivery, till payments and the table view. Staff send x-c3-mode: staff. A staff member can order for a guest by sending that guest's memberId. Prices are cents, and a product's member price is its base price plus 15% VAT rounded to the nearest rand.

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

Read the caller's role at the venue and what it allows.

Auth Member session token with a venue staff role

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{ "venueId": "vn12345abcde", "role": "manager", "ordersFreeGive": true, "boardsManage": true }
StatusMeaning
403The caller is not staff at this venue. Code forbidden.
404No such venue. Code not_found.

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

List the venue's products.

Auth Member session token

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{ "highestCode": 7, "width": 3, "products": [ {
    "id": "pr12345abcde",
    "code": 7,
    "displayCode": "007",
    "shortName": "Lager",
    "longName": "Lager 330ml",
    "description": "",
    "basePriceCents": 3000,
    "firstPriceCents": 3000,
    "memberPriceCents": 3500,
    "free": false,
    "status": "enabled",
    "everOrdered": false,
    "unit": "bottle",
    "collectionPointId": "bar",
    "version": 1
  } ] }
StatusMeaning
404No such venue. Code not_found.

Product codes only go up and are never reused. width is how many digits to show, 3 while the highest code is 700 or below and one more digit for each step above that. The member price is the base price plus 15% VAT, rounded to the nearest rand.

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

Create a product.

Auth Member session token, venue staff with products.create

NameInTypeDescription
venueId requiredpathstringThe venue id.
shortName requiredbodystringThe name shown on the till.
basePriceCents requiredbodyintegerThe price before VAT, in cents. A price of 0 needs free to be true.
longNamebodystringA fuller name.
descriptionbodystringA description.
freebodybooleanTrue for a free product.
unitbodystringThe unit, for example bottle.
collectionPointIdbodystringWhere the product is collected from.

Request

bash
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/products" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"shortName": "Lager", "longName": "Lager 330ml", "basePriceCents": 3000, "unit": "bottle", "collectionPointId": "bar"}'

Response

json
{
  "id": "pr12345abcde",
  "code": 7,
  "displayCode": "007",
  "shortName": "Lager",
  "longName": "Lager 330ml",
  "description": "",
  "basePriceCents": 3000,
  "firstPriceCents": 3000,
  "memberPriceCents": 3500,
  "free": false,
  "status": "enabled",
  "everOrdered": false,
  "unit": "bottle",
  "collectionPointId": "bar",
  "version": 1
}
StatusMeaning
400The name or price is not valid. Code invalid_body.
403The caller may not create products. Code forbidden.
409A product with the same name exists, and the response includes it. Code product_exists. A chosen code is already used. Code code_in_use.

The server issues the code. Sending a code is refused.

GET /v1/venues/{venueId}/products/{code}#

Read one product by its code.

Auth Member session token

NameInTypeDescription
venueId requiredpathstringThe venue id.
code requiredpathintegerThe product code. 7, 07 and 007 are the same product.

Request

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

Response

json
{
  "id": "pr12345abcde",
  "code": 7,
  "displayCode": "007",
  "shortName": "Lager",
  "longName": "Lager 330ml",
  "description": "",
  "basePriceCents": 3000,
  "firstPriceCents": 3000,
  "memberPriceCents": 3500,
  "free": false,
  "status": "enabled",
  "everOrdered": false,
  "unit": "bottle",
  "collectionPointId": "bar",
  "version": 1
}
StatusMeaning
404No such product. Code not_found.

PATCH /v1/venues/{venueId}/products/{code}#

Change a product.

Auth Member session token, venue staff with products.edit

NameInTypeDescription
venueId requiredpathstringThe venue id.
code requiredpathintegerThe product code.
shortNamebodystringThe new name.
longNamebodystringThe new long name.
descriptionbodystringThe new description.
basePriceCentsbodyintegerThe new price in cents.
freebodybooleanWhether the product is free.
unitbodystringThe unit.
collectionPointIdbodystringThe collection point.
statusbodystringenabled, disabled or archived.

Request

bash
curl -X PATCH "https://c3.thought.bz/v1/venues/<venueId>/products/<code>" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"basePriceCents": 3200}'

Response

json
{
  "id": "pr12345abcde",
  "code": 7,
  "displayCode": "007",
  "shortName": "Lager",
  "longName": "Lager 330ml",
  "description": "",
  "basePriceCents": 3200,
  "firstPriceCents": 3000,
  "memberPriceCents": 3700,
  "free": false,
  "status": "enabled",
  "everOrdered": false,
  "unit": "bottle",
  "collectionPointId": "bar",
  "version": 1
}
StatusMeaning
403The caller may not change this field. Code forbidden.
404No such product. Code not_found.
409A product that has been ordered cannot become a very different product. Create a new one. Code change_too_large.

A product that was never ordered can be renamed and repriced freely. Once it has been ordered, a name that changes a lot or a price that moves by more than half is refused.

GET /v1/venues/{venueId}/collection-points#

List the places orders are collected from.

Auth Member session token

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{ "points": [ { "id": "bar", "name": "Main bar" } ] }

PUT /v1/venues/{venueId}/collection-points#

Replace the venue's collection points.

Auth Member session token, venue staff with products.edit

NameInTypeDescription
venueId requiredpathstringThe venue id.
points requiredbodyarray of objectUp to 20 points. Each has an id of 1 to 32 lowercase letters, digits or hyphens, and a name of 1 to 40 characters.

Request

bash
curl -X PUT "https://c3.thought.bz/v1/venues/<venueId>/collection-points" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"points": [{"id": "bar", "name": "Main bar"}, {"id": "kitchen", "name": "Kitchen"}]}'

Response

json
{ "points": [ { "id": "bar", "name": "Main bar" }, { "id": "kitchen", "name": "Kitchen" } ] }
StatusMeaning
400More than 20 points, or an id or name is not valid. Code invalid_body.
403The caller may not change collection points. Code forbidden.

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

Place an order.

Auth Member session token (member order) or venue staff with orders.create (staff order)

NameInTypeDescription
venueId requiredpathstringThe venue id.
lines requiredbodyarray of object1 to 30 lines. Each has code (the product code), qty (1 to 99) and an optional note of up to 80 characters. A product can appear once.
tablebodystringThe table, 1 to 12 letters, digits or hyphens. Leave out for a collect-at-bar order.
guestsbodyintegerThe number of guests at the table.
memberIdbodystringRequired when staff place the order for a guest (x-c3-mode staff).

Request

bash
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/orders" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"table": "T4", "guests": 2, "lines": [{"code": 7, "qty": 2, "note": ""}]}'

Response

json
{
  "orderId": "2026-12-02.12",
  "id": "od12345abcde",
  "key": "<order key>",
  "seq": 12,
  "displayNumber": "012",
  "tradingDate": "2026-12-02",
  "memberId": "u54321edcba",
  "table": "T4",
  "guests": 2,
  "status": "placed",
  "progress": "0 of 2 delivered",
  "paid": false,
  "paidBy": "",
  "totalCents": 7000,
  "kind": "order",
  "lines": [ { "lineId": "<line id>", "kind": "product", "code": 7, "name": "Lager", "qty": 2, "qtyDelivered": 0, "status": "placed", "note": "" } ],
  "log": [],
  "notifications": [],
  "version": 1
}
StatusMeaning
400The lines are not valid, or staff did not send the memberId. Code invalid_body.
403The caller may not place orders, or a staff member without orders.free.give added a free product. Code forbidden.
404No such venue or product. Code not_found.
409Too many free products for the order or table. The body has limit, used, remaining and scope. Code free_limit_reached.
503The venue is busy. Retry. Code service_unavailable.

Order numbers start at 1 for each venue each trading day. A member can order by phone. Staff send x-c3-mode staff and the memberId the order is for. A free product is limited to 6 per member order, and per table to 2 times the guests (12 when guests is left out). Staff who hold orders.free.give are not limited.

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

List today's orders for staff.

Auth Member session token, venue staff with pos or orders.view.all

NameInTypeDescription
venueId requiredpathstringThe venue id.
tablequerystringOnly this table. An empty value means orders with no table.
statusquerystringOnly orders with this status.

Request

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

Response

json
{ "tradingDate": "2026-12-02", "orders": [ {
    "orderId": "2026-12-02.12",
    "id": "od12345abcde",
    "key": "<order key>",
    "seq": 12,
    "displayNumber": "012",
    "tradingDate": "2026-12-02",
    "memberId": "u54321edcba",
    "table": "T4",
    "guests": 2,
    "status": "placed",
    "progress": "0 of 2 delivered",
    "paid": false,
    "paidBy": "",
    "totalCents": 7000,
    "kind": "order",
    "lines": [ { "lineId": "<line id>", "kind": "product", "code": 7, "name": "Lager", "qty": 2, "qtyDelivered": 0, "status": "placed", "note": "" } ],
    "log": [],
    "notifications": [],
    "version": 1
  } ] }
StatusMeaning
403A member token, or staff without the permission. Code forbidden.
404No such venue. Code not_found.

Orders from earlier trading days are not included. status is placed, preparing, ready, partly_delivered, delivered or collected.

GET /v1/venues/{venueId}/orders/{key}#

Read one order.

Auth Member session token, the member the order is for or venue staff with orders.view.all or orders.create

NameInTypeDescription
venueId requiredpathstringThe venue id.
key requiredpathstringThe order key.

Request

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

Response

json
{
  "orderId": "2026-12-02.12",
  "id": "od12345abcde",
  "key": "<order key>",
  "seq": 12,
  "displayNumber": "012",
  "tradingDate": "2026-12-02",
  "memberId": "u54321edcba",
  "table": "T4",
  "guests": 2,
  "status": "placed",
  "progress": "0 of 2 delivered",
  "paid": false,
  "paidBy": "",
  "totalCents": 7000,
  "kind": "order",
  "lines": [ { "lineId": "<line id>", "kind": "product", "code": 7, "name": "Lager", "qty": 2, "qtyDelivered": 0, "status": "placed", "note": "" } ],
  "log": [],
  "notifications": [],
  "version": 1
}
StatusMeaning
403The order belongs to another member. Code forbidden.
404No such order. Code not_found.

POST /v1/venues/{venueId}/orders/{key}/delivery#

Move an order line forward or record items delivered.

Auth Member session token, venue staff with orders.status.set

NameInTypeDescription
venueId requiredpathstringThe venue id.
key requiredpathstringThe order key.
lineId requiredbodystringThe line to update.
status requiredbodystringpreparing, ready or delivered. A status only moves forward.
qtybodyintegerHow many were delivered, for a partial delivery.

Request

bash
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/orders/<key>/delivery" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"lineId": "<line id>", "status": "delivered", "qty": 1}'

Response

json
{ "lineId": "<line id>", "qtyOrdered": 2, "qtyDelivered": 1 }
StatusMeaning
400The line is unknown, the status goes backwards, or the order is paid. Code invalid_body.
403The caller may not update delivery. Code forbidden.
404No such order. Code not_found.
409More was delivered than ordered. Code qty_exceeds_order.

When a collect-at-bar order becomes ready, the member gets a notification to go and collect it.

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

Record a till payment for one or more orders.

Auth Member session token, venue staff with pos

NameInTypeDescription
venueId requiredpathstringThe venue id.
method requiredbodystringcash or card_machine.
scope requiredbodystringtable for every unpaid order on a table, or orders for the listed orderKeys.
tablebodystringThe table, when scope is table.
orderKeysbodyarray of stringThe order keys, when scope is orders.
slipAmountCents requiredbodyintegerThe amount on the slip or till, in cents.
cardLast4bodystringThe last 4 digits printed on the card slip. Required for card_machine.
rrnLast4bodystringThe last 4 characters of the slip reference. Required for card_machine.

Request

bash
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/payments" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"method": "card_machine", "scope": "table", "table": "T4", "slipAmountCents": 7000, "cardLast4": "1234", "rrnLast4": "0042"}'

Response

json
{
  "paymentId": "pm12345abcde",
  "method": "card_machine",
  "provider": "none",
  "gateway": false,
  "reference": "pm12345abcde",
  "amountCents": 7000,
  "expectedCents": 7000,
  "slipAmountCents": 7000,
  "amountMismatch": false,
  "cashback": false,
  "cashbackEligible": true,
  "paidBy": "u12345abcde",
  "orders": ["<order key>"],
  "tips": [],
  "result": "paid"
}
StatusMeaning
400The method, scope or amount is not valid, or a full card number was sent. Code invalid_body.
403The caller may not record payments. Code forbidden.
404No such venue or order. Code not_found.
409An order has no table, is on a different table, or is already paid (combine_not_allowed), or another payer holds it right now (order_locked).

This records money taken on the till or card machine. ChingChing.Club does not charge a card. Never send a full card number. A slip that differs from the bill is still recorded and marked with amountMismatch. Cash is not eligible for cashback.

GET /v1/venues/{venueId}/table-view#

See every table with its unpaid orders.

Auth Member session token, venue staff with tables.view or orders.view.all

NameInTypeDescription
venueId requiredpathstringThe venue id.

Request

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

Response

json
{
  "tradingDate": "2026-12-02",
  "tables": [
    {
      "table": "T4",
      "name": "T4",
      "orders": 2,
      "paid": 0,
      "unpaid": 2,
      "unpaidTotalCents": 7000,
      "oldestUnpaidAt": "2026-12-02T20:05:00Z",
      "label": "2 unpaid",
      "uncollectedReady": []
    }
  ]
}
StatusMeaning
403The caller may not see the table view. Code forbidden.
404No such venue. Code not_found.

Orders with no table are grouped last, with table null and name No table.

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

Leave a tip for a waiter by scanning their staff code.

Auth Member session token

NameInTypeDescription
venueId requiredpathstringThe venue id.
amountCents requiredbodyintegerThe tip in cents.
token requiredbodystringThe waiter's staff code from GET /v1/venues/{venueId}/staff-code.
tablebodystringThe table.

Request

bash
curl -X POST "https://c3.thought.bz/v1/venues/<venueId>/tips" \
  -H "Authorization: Bearer <token>" \
  -H "Idempotency-Key: <16 to 128 characters>" \
  -H "Content-Type: application/json" \
  -d '{"amountCents": 1000, "token": "s1.vn12345abcde.u54321edcba.<secret>"}'

Response

json
{
  "orderId": "2026-12-02.13",
  "key": "<order key>",
  "seq": 13,
  "displayNumber": "013",
  "kind": "tip",
  "status": "pending",
  "amountCents": 1000,
  "recipientId": "u54321edcba",
  "credited": false,
  "paid": false
}
StatusMeaning
403The caller may not tip here. Code forbidden.
404No such venue. Code not_found.
409The staff code is not valid for a waiter today. Code tip_recipient_invalid.

A tip is a pending order. It is credited to the waiter once the order is paid through the till.

Updated 2026-12-02