Skip to main content

Setting up tax

For whoever configures the system. Read Tax first — this is the order to do things in and the decisions that are hard to undo.

The order to set it up in​

  1. Jurisdictions — the places you collect in.
  2. Tax categories — the kinds of thing you sell, for tax.
  3. Tax codes — a rate, what it is charged on, and which jurisdiction.
  4. Rules — which categories each tax applies to, from when.
  5. Categories and items — point them at a tax category, under Products → Categories and Products → Items.
  6. Exemption certificates — as customers give them to you.

Steps 1 to 4 for a state's excise can be done in one click with a rule pack, and for one tax of your own in one save with Add a tax (below).

Add a tax​

Settings → Tax → Taxes → Add a tax (with tax.manage) sets up one tax in one save, the way a small-business screen does. It is the one button on the tab. Everything it does not ask — a sequence, a tax charged on another, a statute's bracket, conditions, a VAT — is on the advanced form, opened from the Advanced link at the foot of Add a tax (it adds a tax to a place you already have, so it is offered once there is one); a tax made either way is edited in its Rules drawer afterwards.

The fields, in order:

FieldWhat it is
WhereCountry, state, county and city, chosen from the place picker (a place the list lacks can be added from it — see A place the reference does not have). Go as deep as the tax: the state for a state tax, the county (city blank) for a county's, the city for a city's — its county, if chosen, is the county the city sits in. The drawer says whether you already have that place or a new one will be added.
NameWhat the state calls it — it is what prints on the invoice. A name that is the code, or has no lowercase letter (MN-TOBACCO), gets a warning under it: use the state's name, e.g. Minnesota Tobacco Products Tax. It is not refused.
CodeSuggested from the place and the kind: MN-SALES, MN-EXCISE; a county's or a city's names it (PA-ALLEGHENY-SALES); -2, -3 where you already have that code. Change it if you file under another.
KindSales and use (saved as a sales tax) or Excise. A use tax or a VAT is made on the advanced form.
What it hitsOne of three: The categories I pick — a tree of your categories, any number; the rule is on the tax each one is taxed as (its own, a parent's or its legal class's), one rule per distinct tax. A category taxed as nothing but the company default takes its legal class's tax if it is regulated, and is otherwise given a tax of its own (its code and name) first, so the rule reaches it and nothing else. Every category regulated as … — a legal class (Disposable vapes), with the Compliance app on: the rule is on the class's tax, so a category regulated as it later is reached without editing the tax — how the shipped packs work. Everything — a sales tax only. An excise must name categories or a legal class; it is refused with neither. A collection never decides tax and is not offered.
How it is chargedOne choice: a percent of the price or the wholesale cost, or an amount per unit, millilitre, ounce or gram — and one number. The drawer reads it back ("This charges 0.55 USD per ounce (oz)").
Floor per package / cap per unitOptional, folded away. See A floor per package and a cap per unit.
Charged only on the first sale to a retailerSwitch it on for a tax a state charges only when the goods first reach a retailer — Pennsylvania's 40% is one, and so is a wholesale tax like Minnesota's 95% when the distributor licence decides who pays. A buyer holding a current licence of the type you pick (Distributor licence unless you choose another), issued by this tax's state, is then not charged it, and can buy the product without its retail licence; the line says why ("not the first sale to a retailer — buyer holds MN dealer licence …"). Also switchable on the Taxes list (One row per tax), audited. A pack that declares it (Pennsylvania's) sets it when applied. See the 40% falls on the first sale.
Passed on / included in the pricePassed on adds it to the invoice. Included in the price is an excise you pay and do not charge (absorbed); it is offered only when the kind is excise, because a sales tax cannot be.
Effective fromThe rule's first day. Today unless you change it.
GL accountThe account for its kind (sales tax payable, excise tax payable — see Where a tax posts), unless you choose another; only a different account is saved on the code. Shown to whoever may read the ledger; without that the tax posts by its kind.

One save, all or nothing. The drawer posts once, to POST /api/v1/tax/setups, and the server makes, in order and in one transaction:

  1. The place — reused when an active place already covers exactly the same addresses (same country, state, city, no postcode; for a county, the same county); otherwise added, its code derived (US-PA-ALLEGHENY).
  2. A tax category for each regulated category — the one already linked to it; else a tax category of the regulated category's own code that is not linked yet, which is linked; else a new one, linked.
  3. The tax code.
  4. One rule per tax category reached, each with the same charge, floor, cap and first day — or one rule on every category for a sales tax with nothing chosen. A rule names one tax category and each regulated category has its own, so a tax that hits three regulated categories is one code with three rules. End or add rules in its Rules drawer.

Each step is the same check the Places, Categories, Taxes and Rules screens make. If any step is refused, nothing is written — no place, no tax category, no code, no rule — and the drawer shows the server's sentence with the form as you left it: fix what it names and press Save again. There is never a half-made tax to tidy up.

Jurisdictions​

A jurisdiction covers every address whose fields match the ones it names. Leaving a field blank means "any".

You wantSet
A whole stateCountry and state
One cityCountry, state and city
One postcodeCountry, state and postcode
A countyLevel county, country, state and the county
A country-wide taxCountry only

Every place is chosen from a list, never typed. The state, the county and the city come from the product's geographic reference — every country's states (ISO 3166-2), every US county (the Census list) and every US city that has a ZIP — so a misspelling is refused when the place is set up rather than found months later as a jurisdiction that matches nothing ("Choose a state from the list; 'Pennsylvana' is not one."). A county is stored as its Census code (Cook County is 17031), a state as its code (US-PA).

On the screen, Settings → Tax → Places → New place chooses the place through the shared place picker, as deep as the level: a state row offers the country and state, a county row adds the county (only that state's counties), a city or special-district row adds the city (searched within the state, its county optional). The postcode is the picker's too: once the state is chosen, a US postcode is chosen from that state's ZIPs (the city's, once a city is chosen); typed first, it fills the state, and the county and city only on a row deep enough to have them. Outside the United States it is typed. The server checks it as it checks an address's ZIP: one the reference (or your company) has in the state, and the city's where the row names a city — ZIP 19103 is not in Pittsburgh, PA. — including through POST /api/v1/tax/jurisdictions. Places your company added are marked added by your company.

The code is made for you. Leave it out and the place's code is built from what you chose: US-PA for the state, US-PA-ALLEGHENY for Allegheny County, US-PA-PHILADELPHIA for the city, US-PA-19103 for a postcode. Only somebody who may manage tax can change a code afterwards, and they must say why; the change is recorded with the reason, because a return or an export may already carry the old code. A rule pack keeps the codes it ships with (Philadelphia is US-PA-PHL in the Pennsylvania pack), and its states are checked against the same list when it is applied.

A place the reference does not have — a municipality incorporated last spring, a transit district — is added once by somebody holding the company-settings permission (company_settings.manage, or setting.manage), with a reason. In any place picker, a state, county or city list that has nothing matching what was typed offers Add a place the list lacks: the name comes from what was typed, the reason is required, and the new place is chosen at once (POST /api/v1/reference/geo/places; a place the reference already has is refused, in the server's words). It is marked added by your company wherever it appears, and a later release that ships the same place merges it. A ZIP code is added the same way from a ZIP list (kind: "zip", five digits, with an optional city the state has): for a ZIP the Postal Service issued after the release. Districts are added through the API only.

A county reaches the addresses inside it, not the whole state. A county always needs a state — there are thirty Washington Counties. An address is in a county when:

  1. the address says so — an address can carry its own county, under the city. This always wins, because plenty of cities straddle a county line and a county's tax is assessed where the address actually is; or else
  2. its city says so — a city jurisdiction can name the county it sits in. Set Chicago's county to Cook, and every Chicago address without a county of its own is taxed by Cook County. This is a default, not a fact.

So a Cook County rule reaches an address in Chicago and not one in Springfield (which sits in Sangamon) — and not a Chicago address whose own county is DuPage, which is taxed as DuPage. A city naming a county you have not set up is fine: nothing is added. A city's county can be changed later; a county's own name cannot, for the reason below.

The match cannot be changed afterwards. Changing which addresses a jurisdiction covers would change what every order already priced should have been taxed. If you got a boundary wrong, switch that jurisdiction off and make a new one — the old orders keep making sense.

Postcodes match one at a time. A city defined by forty postcodes is forty rows today. If that is your situation, define it by city name where you can.

Orders and invoices are taxed by the whole address — country, state, county, city and ZIP (since 20 October). A city tax such as Philadelphia's, and a district bounded by postcodes, now reach orders and invoices; before, only the state and the address's own county did. Check your city and postcode places before this reaches you: any you set up are now charged on documents.

Put the registration number the state gave you on the jurisdiction. It is what goes on the return, and nobody should have to look it up.

Tax codes​

A code is a rate plus a basis:

  • Percent — a percentage of the line, and of anything earlier taxes added to the base.
  • Per measure — an amount for each millilitre, gram, unit, or one of your own fields. This is how excise is usually written.

Measures: what a per-measure tax counts​

A measure is a row in your tax settings (GET /api/v1/tax/measures). Six ship with the product — units sold, retail packages, countable units, millilitres, grams and ounces — and you can add your own with Manage tax:

FieldWhat it is
KeyWhat a tax names, e.g. nicotine_mg. It never changes.
FamilyCount, mass, volume or length. A unit converts within its family only.
UnitWhat a rate is quoted per: "milligram".
SourceThe quantity sold, the retail packages, the net volume, the net weight, the units per package, or one of your own product fields (custom_field:nicotine_mg, a number field).
FactorHow many grams, millilitres, millimetres or units one of your unit is (a kilogram is 1000). A product field's figure is taken in the measure's own unit.

A product with nothing in the measure's source is refused at the line, naming the field — it is never taxed at zero. A measure in use cannot be deleted, and its unit, family, factor and source cannot change — every document it priced was counted in that unit. Add a new measure instead and point the tax at it. Its label and description can always be corrected.

Two more settings matter:

  • Sequence decides the order taxes apply in. It only matters when one compounds.
  • Adds to base puts a tax's own amount into what later taxes are charged on. Use it where a state charges sales tax on the excise-inclusive price.

You cannot edit a rate that has taxed a document. That is deliberate: editing would restate every invoice you have already sent. A rate change is a new rule with a start date, which keeps last quarter reproducible: end the old rule the day before (End rule on the rules screen, or POST /api/v1/tax/rules/{rule_id}/end), then add the new one — or do both in one save with Change rate on the Taxes list (POST /api/v1/tax/rules/{rule_id}/supersede), which changes nothing if either half is refused. A rule nothing has been charged under yet can be corrected in place — see Editing a rule. A rate change has the steps and what ending a rule refuses.

Recoverable on purchases is for a VAT your suppliers charge that you claim back. Only a VAT code can be switched on; see VAT.

Where a tax posts​

By default a tax posts to the account for its kind — sales tax to Sales tax payable, excise to Excise tax payable. If you file in several states and want a separate account for each, set the account on the tax code itself.

Rules​

A rule joins a tax to a category, with dates. A tax's rules are under Taxes → Rules on the tax's row: the list, Add a rule, Edit and End rule (all with tax.manage). A rule that has priced a document is never re-priced; a rate change ends the old rule and adds a new one — see A rate change.

Editing a rule​

Edit (or PATCH /api/v1/tax/rules/{rule_id} with the expected_version you read) corrects a rule, split by what a field does:

  • Its evidence, on any rule — the Authority, Where it is published, Last checked and Counsel holds the reading open. Correcting a misquoted section on a rule that has taxed a year of invoices changes no figure, so it is allowed; the audit trail keeps the before, the after and the reason if you give one.
  • What it charges, only on a rule no document has been priced by — the dates, the category, not taxed, its own rate, what a percentage is of, the minimum and maximum, the schedule and the conditions. A typo on a rule nobody has charged under is fixed in place instead of leaving two rows for one mistake. On a rule that has priced documents these fields are disabled, and the API refuses them in the same words: This rule has priced documents; end it and add a new one. Nothing is changed by a refused edit.

Every check Add a rule makes is made again on the edited rule, including the tie with another rule (below). A rule that came from a tax pack and is edited here is marked Changed here, and the pack's next version shows your change beside its own — see Tax packs.

Conditions​

A condition narrows where a rule applies, and every condition on a rule must hold. Add a rule and Edit build them from pickers, never typed as text:

ConditionComparesFor example
A product fieldone of your item fields: is, is one ofConnecticut's open and closed systems (system_type)
A measurea number: is under, is at most, is over, is at least, is, is betweenNebraska's container of 3 mL or less
A categoryis, is one of — and everything filed beneath itVapour products
A brandis, is one of

A collection never decides tax. Collections are for finding and showing products, and a product can sit in several; reorganising them must not change what it is taxed. So a new condition on a collection is refused: key the rule on the category, or put it on the tax category that covers those products. A rule saved with a collection condition before still applies, shows the condition with that sentence beneath it, and is listed on your signals (Tax rules keyed on a product category) until you end it — take the condition off, or, once the rule has priced documents, end it and add a new one.

Two rules on one tax with the same number of conditions that could both match one line are refused — which of them charged would be a coin toss. The editor asks the server as you build the conditions and shows that refusal, in the server's words and naming the rule it would tie with, before you save; Save stays disabled until the conditions cannot both hold ("under 3 mL" and "3 mL or more" can sit side by side) or you narrow one rule with a second condition. A condition left half built is neither checked nor saved: finish it or remove it.

  • No category means every category — which is what a general sales tax is.
  • Exempt is a rule that says no. Use it for "everything is taxed here except food": a general rule, plus an exempt rule for food.

A rule naming a category beats a rule that names none. Between two of the same shape, the one that started later wins.

  • Minimum per package / maximum per unit — a floor and a cap on what the rule charges, per retail package and per countable unit. Pennsylvania's tobacco tax is $0.55 an ounce with a $0.66 minimum a package. Set them on Add a tax (each rule it makes), the advanced form (its first rule) or Add a rule, through the API as the rule is created (POST /api/v1/tax/rules with min_amount_per_package or max_amount_per_unit), or by applying a pack that carries them. See A floor per package and a cap per unit.
  • A schedule: a statute's bracket, or tiers. Maryland's 6% is not rounded half up but set by the statute's table on the whole sale; the Maryland pack writes it on its 6% rules, Add a rule offers it on a percentage tax, and Rounding does not change it. A tax whose rate changes with how much there is — "0.50 a cigar for the first 100, 0.30 after" (marginal), or "12% of a line at 20.00 or more" (whole-amount) — is a tiered schedule, written in a pack (schedules) or sent as schedule on POST /api/v1/tax/rules; GET /api/v1/tax/schedules lists the tables the shipped packs define, whole, ready to send. A rule no longer takes bracket: send the table. A schedule is refused beside a minimum or maximum, on a rule that says not taxed, and on a tax that adds to a later tax's base. See Maryland and What a pack carries.
  • A condition on a category reaches everything filed beneath that node; two rules on a node and a node beneath it, with the same number of conditions, are refused as a tie.

What a tax category is for. A tax category may name the regulated category it is for (one per regulated category). An item with no tax category of its own, on its template or category is taxed under the linked one before the company's default. Set it on the Categories tab, in the Regulated category column. See What a tax category is for.

Put the statute in the Authority field. When a rate looks wrong in two years' time, the first question is where it came from.

Rule packs​

A pack sets up a state's excise in one act. It never overwrites: anything you have already got with the same code is left exactly as it is, and the result tells you what was kept. Packs are files you can import, export and move to a new version of: see Tax packs.

Before you rely on one:

  • Check Checked on. A pack is what the statute said that day.
  • Read the caveats. They say what the pack cannot express — for example that Illinois taxes a percentage of the wholesale price, which is only the same as the line amount on a wholesale invoice.
  • Have your accountant confirm the rates before you file against them.

The Pennsylvania pack​

Most packs cover one state's excise. Pennsylvania is a whole regime — it sets up seven taxes across three jurisdictions, because a Pennsylvania invoice is not just excise:

WhatRateWhere
Cigarette tax$0.13 per cigarette ($2.60 a pack of 20)Statewide
Philadelphia cigarette tax$0.10 per cigarette ($2.00 a pack)Philadelphia
Electronic cigarettes40% of the price charged to the retailerStatewide
Roll-your-own, smokeless, pipe$0.55 per ounceStatewide
Sales tax6%Statewide
Local sales tax2% (Philadelphia), 1% (Allegheny)Those two

Three things are worth knowing before you use it:

Cigarettes are taxed per cigarette, not per pack. So the pack reads a cigarettes_per_unit field on the product — put 20 on a pack, 200 on a carton. Applying the pack defines the field (under Regulatory & MSA on the product's attributes) unless you already have one by that name. An item without it is refused rather than taxed at nothing. That is deliberate: at 13 cents a stick, a carton taxed as one unit undercharges by 199 of them and nobody notices until the Commonwealth does.

Cigars are not taxed, and the pack says so out loud. Pennsylvania is the last state that does not tax them. Rather than leave a hole — which reads exactly like somebody forgetting cigars — the pack writes an explicit exemption, so a cigar line is answered rather than refused when Refuse a line the tax matrix has no answer for is switched on. Cigars still pay sales tax.

The $0.55 an ounce has a floor, and the pack sets it. The statute sets a minimum of $0.66 per package, so packages under 1.2 ounces pay $0.66. The pack's tobacco products rule carries that minimum. A company that applied the pack before the floor was part of it keeps its old rule, because applying again never overwrites; adding the floor to it is described under A floor per package and a cap per unit.

Sales tax lands on the excise-inclusive price, which is what the Commonwealth says: a $80 carton into Philadelphia is $26.00 state cigarette tax, $20.00 city cigarette tax, and then 8% of $126.00 — not 8% of $80.

The four settings​

Settings → Apps → Tax.

  • Rounding — per line, or once per tax on the whole document. Per line is the default and is what your invoices show line by line. A long invoice can differ by a few cents between them.
  • Refuse a line the tax matrix has no answer for — off by default, so a company still setting up is not blocked. Switch it on once your categories and jurisdictions are done. Until you do, a line with no rule is treated as untaxed, and the difference between "not taxed" and "nobody set it up" is found at an audit.
  • Refuse a regulated product that an applied rule pack expects an excise on when no excise rule applies to it — on by default. A product whose regulated category an applied rule pack expects an excise on, going into that pack's state, with no excise rule applying, is refused instead of being sold with sales tax alone. Switch it off only while a pack's categories are being linked. See Refuse rather than undercharge.
  • A Resale or Exempt customer needs a certificate (tax.treatment_requires_certificate) — on by default. A customer's Tax treatment of Resale or Exempt is sold without sales tax only while a valid exemption certificate for that state is on file; without one the tax is charged and the account shows "no valid exemption certificate". Off, Resale and Exempt waive the customer's sales taxes on their own, and the trace says "exempt — Resale (customer setting)". Either way a treatment never waives an excise — that needs an excise certificate or first-sale relief — and Out of scope charges no tax of any kind.

Why a tax did not apply​

Settings → Tax → Check a line. Answer the question, and underneath the breakdown is What did not apply, and why — every tax you have set up, judged against that item, that address and that date, with a sentence for each one that did not decide the line.

This is the screen to open when somebody says the tax is wrong. The reasons are grouped, and the groups are ordered by who can do something about them:

ReasonWhat to do
The product is in a different tax categoryCorrect the item, or its category (Products → Items or Products → Categories)
The product does not meet a condition on the ruleFill in the attribute the rule keys on
The rule does not cover this dateNothing — it is history, or it starts later
The tax is switched offSwitch it back on, if it should be
The authority does not cover this addressCheck the jurisdiction's country, state, city and postcode
Another rule on the same tax was more specificNothing. This is the design working

Two answers are not failures and read differently: a rule that applies and says this category is not taxed, which is how "everything except food" is written; and a tax that applied and was zeroed by a certificate the customer holds.

No jurisdictions at all is its own message, because it is the commonest reason a line is untaxed and the one a list of rules cannot say: nothing you have set up covers that address, so nothing there is taxed. Add the jurisdiction; the tax matrix is not the problem.

What the screen says applied is what an invoice would charge — it reads the same decision the engine makes rather than making a second one, so the two cannot drift apart.

Permissions​

PermissionWho has it by default
tax.readEveryone — a salesperson quoting, an accountant reconciling
tax.manageManager and above. A rate is money
tax.fileManager and Accounting. A return is signed, not prepared in passing
tax_exemption.readManager, Sales, Accounting. Not the warehouse
tax_exemption.manageManager and Accounting

Certificates are deliberately not readable by everyone: one carries a customer's registration with a state.

tax.read is what it takes to ask what something is taxed: the check screen, the tax pages, and the assistant. It is not needed for a document to be taxed. Somebody who may take an order, post an invoice or book a delivery in gets the tax on it worked out without holding tax.read, and so does a customer accepting a quote from a link. None of them can open the tax setup.

What is not here yet​

  • Writing a schedule on the screen. Tiered and bracket schedules are set in a pack or through the API (above); the rules screen shows a rule's bracket and edits its conditions, not its tiers.
  • Tax on documents. The engine prices a line; wiring it to orders and invoices comes with them.