Skip to Content
TMBillOpen API

Authentication

One header on every request. Server to server only.

Authorization: Bearer tmb_live_AbCd1234_9fQ...

All endpoints except /v1/health need it. HTTPS only.

Key format

PartExampleMeaning
Environmenttmb_live_ / tmb_test_Live stores or sandbox stores
PrefixAbCd1234Public id of the key, shown in Backoffice and in /v1/me. Safe to log.
Secret32 charactersNever log it. TMBill stores only a hash and can't show it again.

When the key is refused

HTTPcodeWhat to do
401invalid_keyTypo, wrong environment or unknown key. Check the value.
401key_revokedThe owner revoked it. Ask for a new key.
401key_expiredPast its expiry, or the old key after a roll. Use the new key.
401ip_not_allowedCalling from an IP not in the key's allow-list.
403insufficient_scopeThe key may not read this (e.g. Sales unticked).
403app_suspendedThe integration is paused. Contact TMBill support.
403ip_blockedCalls from your network are blocked (for example after many invalid keys). Contact TMBill support with the request_id.

Never put a key in a browser, mobile app or public repository. Anyone with the key reads that restaurant's sales. Call the API from your server and pass on only what your app needs.

On this page