Tax engine capabilities
Destination-based US sales tax for all 50 states + DC. Production Cloudflare Workers API backed by D1 rate tables and optional R2 street packs.
Authenticate with x-api-key using your customer API key from /account.
Nationwide ZIP rates
50 states + DC. SSTGB official ZIP5 (Z) rates in D1, with local fallback when needed.
Street-level SST matching
When a street is provided, prefer SSTGB A-records from R2 (`rate_source=sst_street`).
Category taxability
Apply state-law treatment by `items[].category` (e.g. clothing exemptions, reduced rates).
Sales-tax holidays
Holiday windows are applied when `transaction_date` falls in a published state holiday period.
Free address verification
Default provider is the US Census Geocoder (no extra vendor fee). Optional Google / Smarty via secrets.
Jurisdiction breakdown
Each calculation returns state / county / city / special district amounts and combined rate.
Per-client API keys
Authenticate with `x-api-key: ustax_…`. Reveal, rotate, and manage keys in your account profile.
Daily plan quotas
Starter / Growth / Business enforce hard daily request caps. Over limit returns HTTP 429 until UTC midnight.
HTTP API reference
These are the live routes on this host — try them in Swagger.
| Method | Path | What it does | Auth |
|---|---|---|---|
POST |
/api/v1/tax/calculate |
Calculate tax for a ship-to address and line items | x-api-key |
POST |
/api/v1/address/verify |
Verify / standardize an address (Census Geocoder by default) | x-api-key |
GET |
/api/v1/tax/rates |
Look up ZIP tax rates by state, ZIP, and date | x-api-key |
GET |
/api/v1/tax/categories |
List product taxability categories for a state | x-api-key |
GET |
/api/v1/tax/coverage |
Coverage stats (states, ZIPs, taxability rules) | public |
GET |
/health |
Health check and feature flags | public |
GET |
/docs |
Interactive Swagger UI | public |
GET |
/openapi.json |
OpenAPI 3 specification | public |
How calculation works
- Optional address verify (Census) when
customer_address.streetis present. - Resolve rate via
sst_street→sst_official→local_d1. - Apply category taxability and sales-tax holidays for
transaction_date. - Return line taxes, combined rate, and jurisdiction breakdown.
Customer account features
- Email + password registration / login (HTTP-only session cookie)
- Profile: plan, status, today’s usage vs daily limit
- Reveal / rotate / create API keys (within plan max)
- Stripe Checkout + Customer Portal when secrets are configured