modules/tax · npm: @86d-store/tax
Installation
Current configuration
Use Store Admin or the administrative endpoints to create effective rates and nexus records. The current module also acceptsTAXJAR_API_KEY and TAXJAR_SANDBOX for its TaxJar provider path. It does not implement Avalara.
Cross-Module tax quotes use the
tax.quote capability. There is no public POST /tax/calculate route.
Where this is going
Tax is a free capability that runs inside your own Store Runtime. No paid provider is required to charge tax correctly, and none of your sales data has to leave your Store to work out a rate.Configuration is keyed on registrations, not rates
You will not switch tax on state by state. You attest to the states where you actually hold a permit, and those resolve toCOLLECT. Every state you have not attested to resolves to NO_NEXUS and produces no tax line at all.
That direction matters: collecting tax in a state you are not registered in means holding money you have no way to remit. The Feature will not let you do it by accident.
Each registration states its sourcing rule
The rate depends on which address governs the sale, and states disagree about which one that is.
Several states are hybrid. Texas sources an online order to the delivery address and a counter sale to the place of business. So sourcing is a property of each registration, not one setting for your whole Store.
Decisions are explicit
A jurisdiction resolves toCOLLECT, NO_NEXUS, MARKETPLACE_COLLECTED, or BLOCKED.
A quote returns CALCULATED, NO_NEXUS, EXEMPT, MARKETPLACE_COLLECTED, or REVIEW_REQUIRED, along with the policy and data versions it used.
Missing configuration, stale rate data, an unknown product treatment, an address that cannot be resolved, or a failed optional provider all produce REVIEW_REQUIRED. None of them produces a zero.
That is the whole point. A silent zero looks identical to a legitimate exemption right up until an audit, so Checkout will stop, or save a non-binding Checkout Request, rather than guess.
Where rates come from
Three sources sit behind one capability, in order of trust:- A state’s own published rate file. Authoritative and free.
- The Streamlined Sales Tax pool. The same thing for member states, in one standard format.
- Rates you supply yourself, for a state that publishes nothing convenient.