Features

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.

51states + DC covered
36,847ZIP rate rows in D1
1,734taxability rules
34product categories

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.

MethodPathWhat it doesAuth
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

  1. Optional address verify (Census) when customer_address.street is present.
  2. Resolve rate via sst_street → sst_official → local_d1.
  3. Apply category taxability and sales-tax holidays for transaction_date.
  4. Return line taxes, combined rate, and jurisdiction breakdown.

Customer account features

Create account View pricing Open Swagger docs