Tax packs: import, preview, apply, versions
Written for the person who sets up tax. A tax pack is one state's taxes as a file: its places, its tax categories, its taxes and their rules — and, on every rule, the statute it rests on, where that statute is published and the day it was last checked. The product ships packs for Pennsylvania, Maryland and the vapour regimes of several other states. You can also import a pack a consultant or your accountant wrote, and move from one version of a pack to the next.
A pack is a draft of what the statute said on the day it was checked, not a guarantee of what it says today. Read its caveats and check its rules with your accountant before you file on them.
What a pack carries
- Its rules, each with its evidence. The citation (
authority), the publisher's page (source_url), the day it was checked (checked_on), and counsel marked on a reading that is still open. A pack whose caveats include the line citation not confirmed has at least one rule whose section nobody could find on the state's own statute or revenue site: that rule is marked counsel and still links the publisher's home page. Its rate is what the pack has always charged; check it with your accountant before you file. - Its own test. Every pack carries a table of hand-worked sales — lines in, every tax and amount out. Before a pack is kept, the product prices every one of those sales through the same calculation an order uses. A pack whose own table disagrees is refused, and the message names the sale, the tax and both figures.
- Its schedules, where a statute charges by a table or by tiers rather than a
rate (
schedules): Maryland's 6% bracket — 6 cents a dollar and a step for the cents left over, on the whole sale — or tiers such as "0.50 a cigar for the first 100, 0.30 after" (marginal) or "12% of a line once it reaches 20.00" (whole-amount). A rule names the schedule it is charged by; a schedule is refused at import beside a minimum or maximum, or on a tax that adds to a later tax's base. - A version.
2026.10.1is October 2026, first issue. A pack's key (us-md) stays the same across versions.
Importing a pack
You need Manage tax (tax.manage).
- Go to Settings → Import and export, choose Tax packs, and upload the pack's JSON file as it is (Import and export).
- Run the dry run first. It checks the file against the pack format and runs the pack's own table. Nothing is kept.
- Run the import. The version is kept, ready to apply. Importing never changes what anything is taxed — only applying does.
A file with the same key and version as one you already have is skipped if it is identical and refused if it differs: a version is never edited. Give a changed pack a new version number.
Applying a pack, and moving to a new version
You need Manage tax.
- The first time, applying a pack sets up its places, categories, taxes and rules. Anything you already had by the same code is kept as it is, and the result lists what was kept.
- The first time a versioned pack is applied over taxes you set up from it before (an application from before packs had versions), it adopts each of your rules that matches one of the pack's — same place, tax code, category, first and last day — instead of adding a second copy. The result lists what it adopted, what it created, and what it left alone, naming each rule left alone and why (for example, a rule whose start date you moved). Adopting changes nothing a rule charges; it only records which pack rule it is, so the pack's next version can update it.
- Applying the same version again changes nothing you have corrected.
- Moving to a newer version shows a preview first: the rules it adds, the rules it ends (each the day before its replacement starts) and what each charged before and charges after. Confirm the preview you read to apply it. If the pack changed since you read the preview, the apply is refused.
- A move applies from the day you apply it. Where a version ends a rule earlier than today, or starts one before today, the preview shows it moved to today instead — the old rule ends yesterday, the new one starts today — so a correction never re-prices a document you have already charged. Documents charged under the old rule keep what they were charged; deciding whether to credit any is yours. Where a second person confirms applies, the dates are worked out on the day they confirm, not the day it was asked for: a request confirmed the next day is not refused for that, only for a real change to the pack or its preview.
- An older version cannot be applied. A pack only moves forward. To undo a rule, end it.
- Example packs. Pennsylvania is the only pack verified for production;
Maryland is kept for the Maryland expansion. Every other shipped pack is marked
Example — not verified for production, and applying one is refused until you
confirm you have checked its rates yourself (on the screen, the checkbox in the
preview; through the API,
rates_checked: trueonPOST /api/v1/tax/rule-packs/{key}/apply). A version your company imported is your own and is never an example.
A second person confirms an apply
Out of the box an apply needs only the person who presses it (with Manage tax). To ask for a second person, use the approval settings every workflow has (Settings → Approval rules):
| Key | Tier | Default | What it does |
|---|---|---|---|
workflow.tax_rule_pack_application.apply.approval_role | Setting | empty (nobody) | The role whose people confirm every pack apply. admin or manager is the usual choice. |
tax_rule_pack_application.apply.approval | Rule set | none | Rules that decide per pack, before the setting. They see key, version, origin (shipped or imported), from_version, ends and adds (how many rules the apply ends and adds). A rule with {"required": false} asks for nobody. |
Who may confirm: a person in that role who holds Manage tax (tax.manage),
or an administrator — never the person who asked, even where People may
approve their own requests is on. What is confirmed is pinned when the apply
is asked for: the version, its file's SHA-256 and the preview's hash. If any of
them is different when somebody confirms (the pack's rules were corrected here,
another version was applied), the confirmation is refused and the request should
be sent back; the requester asks again with the preview as it is now. Only one
request waits per pack, and while it waits the pack is not applied again.
Each request is kept with who asked, who confirmed, sent back or withdrew it,
when, and the reason; the audit log records tax.rule_pack_apply_requested,
…_confirmed, …_rejected and …_withdrawn, each naming both people. A request
is decided on the pack's page or in the approvals inbox — the same checks run
either way.
A pack you import binds your orders as a shipped one does. Its expected excises refuse a regulated product it expects a tax on and finds none, and its licence gates refuse a gated product while your company holds no licence for it in that state. To lift either, end the pack's rules: a pack whose rules have all ended binds nothing.
A version that only corrects a citation (its statute section, its page, the day it was checked) brings your rules' citations up to date when applied; what they charge does not move. Every document keeps the citation it was taxed under — the tax trace names the pack version and the page.
A new version never edits a rule you have already charged under. A changed rate is a new rule from the day it applies; the old rule ends the day before. A version that would change a rule from the day it started, or leave a rule out instead of ending it, is refused at the preview, naming the rule.
Rules you changed here
A rule a pack wrote can be corrected on the rules screen — its citation at any time, what it charges only before it has priced a document (see Editing a rule). Each change is remembered against the value the pack wrote:
- the rule shows Changed here, and the pack's version list says how many of the applied version's rules were changed;
- the preview of the next version shows your change beside the pack's: a rule the new version changes too carries what the pack wrote and what you have, and a rule the new version leaves alone is listed as changed here so you can see it is yours and not the pack's;
- applying the next version never writes over a change you made to a rule it leaves alone. A rule it supersedes is ended the day before its successor, as every superseded rule is — your change to it ends with it, so read the preview;
- change a field back to the pack's value and it is no longer a local change.
Exporting a pack
Anyone who can read tax (tax.read) can download a version as its JSON file:
GET /api/v1/tax/rule-packs/{key}/versions/{version}/file, or Settings →
Import and export → Tax packs for every version you hold. The file is byte
for byte what was imported, with the same SHA-256, so a pack carried to another
company carries its evidence and its test with it. The packs screen — list,
version, preview and apply on one page — is Settings → Tax → Rule packs
(Rule packs).
Settings that change what a pack's table finds
The table runs under your company's own settings, because those are what your orders run under:
| Setting | Effect on a pack's table |
|---|---|
tax.require_a_rule | a line no rule covers is refused rather than untaxed |
tax.require_excise_for_regulated | a regulated product a pack expects an excise on, with none, is refused |
tax.rounding | per line or per tax |
Common mistakes
- Expecting an import to change prices. It does not. Apply the version.
- Editing a pack and keeping its version number. Refused. Raise the patch
number:
2026.10.1→2026.10.2. - Deleting a rule from a new version. Refused. Keep it, with the last day it applies.