API clients — giving a till or a webstore its key
The API clients tab of Settings → Integrations is where an administrator gives an outside system — a point-of-sale such as IgnitePOS, your webstore — a key to call this company's API, sees which keys exist, and stops one. Today a key can do one thing: ask what a basket would be taxed, the same answer an order of those lines would get. The Try the quote tab beside it asks that question for you, so you can see the answer a till would get before you hand the key over.
Every connection is on Integrations: the services this company calls out to, the
webhooks that call out, and the API clients that call in. Only an administrator sees the
API clients and Try the quote tabs — the rest of Integrations is unchanged for
everybody else. Nobody else can issue or revoke a key. A bookmark to the old
/settings/api-clients opens the tab.
Issuing a key
- Choose New API client.
- Name it after the system and where it runs — "IgnitePOS — Allentown" — so the list says which key is which.
- Choose its Role. The client can do what that role can do and nothing more. Sales is the usual choice for a till. The administrator's role is not offered: a key that leaks must not be able to run the company.
- Leave Scopes at
tax.quote. It narrows the role to asking for a tax quote, so a key that leaks can price a basket and do nothing else. Clearing it gives the client the whole role. - Choose Issue the key.
The key is shown once. Choose Copy the key, paste it into the other system, then choose I have copied it. You won't see it again — only its first characters are kept, so the list can tell keys apart, and nobody, support included, can show it again. If you lose it, revoke the client and issue a new one.
Reading the list
Each row is one client: its name, the role and scopes it acts with, the start
of its key (erpapi.…abc123), who issued it and when, when it was last used,
and whether it is live. A revoked client stays on the list with the day it was
revoked and why, because the audit log names it on everything it did.
Revoking a key, and rotating one
Choose Revoke on the client's row, say why — replaced, leaked, the till retired — and choose Revoke the key. The key stops working at once: the next call the other system makes is refused.
To rotate a key, revoke the client and issue a new one. There is no "rotate in place". That way the old key's last day is on the record, with the reason, and the new key is a new row.
Trying the quote
Try the quote asks POST /tax/quote exactly as a till or a webstore asks
it, and nothing is written — no order, no trace.
- Lines — the item, the quantity and the line's net price.
- Priced on — the date the rates are read on. Ships on — the promised ship date; a licence must be current on both days.
- Channel — Delivery and Webstore price as a shipped order. At the counter is a hand-over at a store: choose the store; a sale to a person is checked against the company's own retail licence, and the line is never on a PACT report.
- Buyer — On file: choose the customer (and a ship-to); their licences and addresses come from the record. Not on file: type the buyer's name and the licences they say they hold, and say whether they are a business or a person. A business's licences are judged like ones on file and never stored. A person is quoted as a sale to a person with no account: priced on what you typed, with the age and licence checks left to the moment of sale — the answer says so in a note.
- Where the goods land — leave empty to use the ship-to's address, then the customer's (at the counter, the store's).
The answer shows every tax on every line as the trace states it — the code,
the rate, what it was charged on, the amount and how it was worked out — with
whether the line would be on a PACT report, the net, the tax and the total. Its
basis says what the buyer half rests on: on_file (records only) or
caller_stated (the licences you typed).
A check the sale itself will make — the company's retail licence, a product's licence gate — is shown as a note on its line, with its cause, rather than refusing the quote.
If an order of those lines would be refused, the quote is refused too, in the
same sentence the order desk or the till would show, with its cause (for
example no_excise_rule or licence_expired) and the line it was about.
Help on these tabs
The Help menu on Settings → Integrations has a short tour of the API clients tab: the tab itself, New API client, the key that is shown once, and — if you may also ask for a tax quote — Try the quote. The ? on either tab opens this article, and the question marks beside Name, Role, Scopes and the revoke dialog's Reason say why each matters.
Common mistakes
- Closing the key dialog before copying the key. It cannot be shown again. Revoke the client and issue another.
- Giving a till the whole Sales role. Keep the scope at
tax.quote. - Typing licences for a customer who is on file. They are ignored — the record wins, and the answer says so. Correct the customer's record instead.
See also
- API clients — configuration: permissions, the rate limit, and what a key can and cannot reach.
- The API reference,
POST /tax/quote, for the request and the answer field by field.