Getting started
From zero to your first sales number in about ten minutes. Every step below is what works today.
What the API does
The TMBill Open API lets your own systems (ERP, accounting, BI, loyalty, head-office dashboards) read a restaurant's TMBill data over HTTPS. Phase 1 is read-only: stores, sales totals, item sales and payment modes. The numbers match the TMBill Backoffice day-end report.
Step by step
Ask the restaurant owner for a key
The owner creates it in TMBill Backoffice › Settings › API keys, picks which stores you may read and confirms with a one-time code sent to them. See Getting a key.
Store the key safely
It is shown once and looks like tmb_live_AbCd1234_.... Put it in a secret manager or an environment variable on your server. Never in a browser, mobile app or Git repository.
Check the key works
curl -H "Authorization: Bearer $TMBILL_KEY" https://openapi.tmbill.com/v1/meYou get the key's app, scopes and the stores it can read.
List the stores
curl -H "Authorization: Bearer $TMBILL_KEY" "https://openapi.tmbill.com/v1/stores?limit=50"Take a store_id from the result.
Read yesterday's sales
curl -sS -H "Authorization: Bearer $TMBILL_KEY" \
"https://openapi.tmbill.com/v1/sales/summary?store_id=1234&from=2026-12-01&to=2026-12-01"Money comes back as decimal strings, for example "24890.00", with the currency code.
Go further
Item sales, payment modes, report filters and paging: see the guides on the left, or the API reference.
Base URL: https://openapi.tmbill.com/v1. JSON in snake_case, ids are strings, timestamps are ISO-8601 UTC, query dates are the store's business dates (YYYY-MM-DD, store local time).