All documentation

Requests, errors and limits

Base URL and versions

All calls go to https://api.likom.co/v1/partner/… over HTTPS. The version is part of the path and is required: /partner/… without /v1 answers 404.

Within v1 we only make additive changes: new endpoints, new optional fields in requests, new fields in answers. Your code should ignore fields it doesn't know. Anything that would break an integration comes as v2, announced in the changelog first.

Requests

  • Send JSON with Content-Type: application/json. Answers are JSON in UTF-8.
  • Unknown fields in a request are ignored. In particular, nothing you send can set points, stamps or cashback: Likom Business works them out.
  • Texts meant for people (message, lines, skipped, blocker, note) may change wording at any time. Show them; don't parse them. The ones in these docs are examples.
  • Tickets and cursors are opaque strings: store and send them back as they are.

Formats

TypeFormatExample
MoneyA decimal string with up to 2 decimals, in the business's currency (GET /me → currency). Requests also accept numbers; send strings to avoid rounding."24.50"
Points, cashbackDecimal string"24", "1.25"
Stamps (punches)Integer1
IdsUUID strings"0193a1c2-7d4e-7a10-9b2f-5c8e1f0a2b3c"
TimesISO 8601 with a time zone"2026-11-16T02:14:05.381Z"

Bills are the full amount the customer pays, VAT included. When a rule counts the bill "before VAT", Likom Business takes off the branch's VAT itself (GET /branches → vat_percent).

Scan tickets

Identifying a customer gives a ticket: a short-lived handle on that customer's card at that branch, bound to your API key.

  • It lasts 15 minutes (expires_in, in seconds, says how long is left). After that: 410 scan_expired; scan again.
  • Each ticket records one purchase. A second one gets 409 already_recorded. For another purchase, scan again.
  • A ticket only works with the key that made it.

The QR codes customers show in Likom change all the time and are used up when you identify them: scanning a screenshot or the same code twice gets 410 pass_expired.

Idempotency keys

POST /transactions and POST /redemptions require an Idempotency-Key header: 1 to 100 visible ASCII characters, no spaces.

http
Idempotency-Key: order-10482
  • Use a new key for each purchase or reward: your order id or a UUID.
  • Use the same key when you retry the same purchase (a timeout, a dropped connection). Likom Business then returns the first result with "replayed": true instead of recording twice.
  • Keys are remembered for 30 days, separately for each API key.
  • A replay returns the first result even if the body is different, so never reuse a key for a different purchase.

A missing or malformed header gets 400 idempotency_key_required.

Receipt numbers

Every purchase needs receipt_ref, your receipt or order number (1 to 60 characters, with letters or digits). The same receipt number can't earn twice in a business, whether it came through the API or the Counter: the second one gets 409 receipt_used. Numbers are compared on their letters and digits only, ignoring case, spaces and punctuation: OR-10482, or 10482 and OR10482 are the same receipt. This stops one sale being claimed by two customers.

Pagination

GET /transactions returns pages of up to limit items (1–200, default 100), oldest first, and next_cursor. Pass it back as cursor with the same filters until next_cursor is null.

Rate limits

LimitValueWhen it's reached
Requests per key120 per minute429 rate_limited
Wrong API keys per network30 per 10 minutes429 rate_limited for that network
Wrong or expired QR codes per key20 per 10 minutes429 rate_limited

A 429 body has retry_after, the seconds to wait. Back off and retry after it; don't retry in a tight loop.

Errors

Every error has the same shape. code is stable, for your code. message is written for people: you can show it to your cashier as is.

json
{
              "detail": {
                "code": "receipt_used",
                "message": "Receipt OR-10482 was already recorded on 16 Nov 2026. Check the number."
              }
            }

Some errors add fields, such as scope, limit, daily_cap or retry_after. A request that doesn't match the schema gets 422 invalid_input with each problem in errors:

json
{
              "detail": {
                "code": "invalid_input",
                "message": "String should have at least 1 character",
                "errors": [{"field": "receipt_ref", "message": "String should have at least 1 character"}]
              }
            }

Status codes

StatusMeaningRetry?
200, 201Done
400Something in the request is wrongNo, fix the request
401No key, or the key doesn't workNo
403The key may not do this (scope, branch, address, limit)No
404Not found (or not this business's)No
409The state doesn't allow it (already recorded, already spent…)No
410The scan or QR has expiredScan again
422The body doesn't match the schemaNo, fix the request
429Too many requestsYes, after retry_after seconds
500, 502, 503, 504A problem on our sideYes, with the same Idempotency-Key

Error codes

CodeStatusWhat happened
api_key_missing401No Authorization: Bearer header
api_key_invalid401Wrong, revoked or expired key
missing_scope403The key lacks the permission in scope
ip_not_allowed403Called from an address the key doesn't allow
not_your_branch403The key is set to another branch
branch_required400Send branch_id (the key is for any branch)
branch_not_found404That branch isn't the business's, or is archived
not_a_pass400What was scanned isn't a Likom QR
not_supported400A gift or ticket QR: use the Counter in Likom Business
pass_expired410The QR expired or was already used
scan_expired410The ticket is older than 15 minutes
customer_not_found404No customer of the business matches, or they don't allow lookups
card_not_found404That card isn't one of this customer's cards here
card_paused409An owner paused the card
program_not_running409The program isn't running today (paused, not started or ended)
card_full409The stamp card is full: hand over its reward first
amount_required400This card earns by bill: send an amount above 0
receipt_invalid400The receipt number needs letters or digits
receipt_used409That receipt number already earned
already_recorded409This ticket already recorded a purchase
over_key_limit403The bill is over the key's largest bill (limit)
over_daily_cap403The key reached its daily total (daily_cap)
idempotency_key_required400Missing or malformed Idempotency-Key
needs_qr403Rewards need the customer's live QR, not a lookup
promotion_not_found404That reward isn't on this card
not_available409The reward can't be used now (see its blocker)
min_purchase409The reward needs a bill of at least its minimum
transaction_not_found404No such purchase, or older than 30 days
redemption_not_found404No such redemption, or older than 30 days
not_allowed403Undo refused: not this key's, or past 10 minutes without transactions:refund
already_undone409It was already undone
already_spent409What the purchase earned was already used
timezone_required400since / until need a time zone
range_too_long400Ask for 31 days at most
bad_cursor400Use next_cursor from the last page
rate_limited429Too many requests; wait retry_after seconds
counter_unavailable503Recording is briefly unavailable; retry
invalid_input422The body doesn't match the schema

New codes may be added. Handle unknown codes by their status, and show the message.

Still need help? Troubleshooting · [email protected]