CartirraAPI
Get API keys

Getting started

Pay at table

Tables with QR codes, bills guests pay from their phone (all at once or split), the live board, refunds and the day's reconciliation. An add-on, per store.

Pay at table lets guests in your restaurant or lounge scan the QR code on their table and pay the bill from their phone: by one-time bank transfer, by card on your card provider's page, or from their Cartirra wallet. Usually one guest pays the whole bill. A group can split it equally, or each pay a custom amount. Every payment is confirmed by the provider, never by a guest's screen.

1. Turn it on at your stores

Pay at table is an add-on, priced per store at ₦10,000 a month, on Starter, Growth and Pro. Enterprise includes it at every store. Add it under Settings → Subscription, with as many stores as you want it at (up to your plan's store limit).

Then turn it on at each store. GET /v1/pay-at-table/stores shows which stores have it and how many the add-on covers.

curl -X PUT https://api.cartirra.com/v1/stores/$STORE_ID/pay-at-table \
  -H "Authorization: Bearer $CARTIRRA_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": true }'

Turning a store on when the add-on is already in use at as many stores as it covers returns plan_limit_reached. Turning a store off frees its place, and bills already open there can still be paid and closed. The add-on can't be reduced below the number of stores it's on at.

2. Add your tables

Add your tables once, then print each table's qr_url as its QR code:

curl -X POST https://api.cartirra.com/v1/stores/$STORE_ID/tables \
  -H "Authorization: Bearer $CARTIRRA_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "names": ["Table 1", "Table 2", "Patio 1"] }'

If a printed code is lost or copied, POST /v1/tables/{id}/rotate-qr gives the table a new link; the old one stops working.

3. Open a bill

A waiter opens a bill in the dashboard, or your POS opens one with the API. Send the items so guests can see what they had. Cartirra adds them up, then adds your service charges and VAT from your fee settings.

curl -X POST https://api.cartirra.com/v1/bills \
  -H "Authorization: Bearer $CARTIRRA_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "table_id": "tbl_0193a1b2c3d47e5f8a9b0c1d2e3f4a5b",
    "items": [
      { "name": "Jollof rice and chicken", "quantity": 2, "unit_price": { "amount": "3500.00", "currency": "NGN" }, "note": "No pepper" },
      { "name": "Chapman", "quantity": 1, "unit_price": { "amount": "3000.00", "currency": "NGN" } }
    ]
  }'

If you only have the total, send items_total instead of items. Guests then see one line for the items.

The bill shows on the table's page as soon as it's open. Guests see each item, each charge, what's already paid and what's left. Change the items with PATCH /v1/bills/{id}: a waiter can before anyone pays, a manager after (with a reason).

A guest who pays the whole bill gets a receipt listing the items, charges and VAT. A guest who pays part of a split gets a receipt for their part.

4. Guests pay

  • The whole bill is the default: one guest pays the balance, plus an optional tip.
  • Splitting is optional. Guests choose an equal part (for 2 to 30 people) or a custom amount. While a guest is paying, their part is held, so two people can't pay the same part.
  • A bank transfer goes to a one-time account for the exact amount. If the guest sends less, what arrived is credited and the rest stays on the bill. If they send more, they're asked whether the extra is a tip. If they don't keep it as a tip, it goes to your refund queue.

You get bill.payment_received for each payment, and bill.closed when the bill is paid.

5. Manage the floor

EndpointWhat it does
GET /v1/bills/boardEach table: free, open, part paid, or paying right now
GET /v1/bills/paymentsFind a payment by SHR-/BILL- reference, transfer account number, or amount
POST /v1/bills/{id}/outsideRecord cash or POS money paid outside Cartirra
POST /v1/bills/{id}/closeClose the bill; any remainder is recorded as paid outside Cartirra
POST /v1/bills/{id}/voidVoid the bill; anything paid through Cartirra goes to the refund queue
GET /v1/bills/refundsThe refund queue: overpayments guests didn't tip, and money a bill no longer needed
GET /v1/bills/reconciliationThe day: bills, money by method, outside money, tips per waiter, fees, refunds

Waiters can change a bill only before anyone has paid. After that, a floor manager makes the change and gives a reason. Waiters are free seats: they don't count toward your plan's team-member limit, up to 50 per store.

Payments toward bills are not orders

Each payment toward a bill is recorded as an order of kind bill_share, numbered SHR-…, so it has a receipt and can be refunded. These don't appear in GET /v1/orders, and don't send order.* or payment.* webhooks. Use the bill.* events instead.