Sales Tax API

TaxLite is a general sales tax API with address-level jurisdiction matching (including special districts), plus reporting and filing-ready exports built from recorded transactions.

Quickstart (60 seconds)

1) Create a trial key → 2) Calculate tax → 3) Charge customer → 4) Record the sale.

1) Create a trial key

curl -X POST https://taxlite.io/api/keys/create-trial

2) Calculate sales tax

curl -X POST https://taxlite.io/api/calculate \
  -H "Content-Type: application/json" \
  -H "x-company-key: tl_trial_your_key" \
  -d '{
    "state_code": "CO",
    "lat": 39.7392,
    "lng": -104.9903,
    "taxable_base_cents": 10000
  }'

Response (example shape)

{
  "taxable_base_cents": 10000,
  "tax_amount_cents": 915,
  "total_amount_cents": 10915,
  "total_rate_dbps": 9150,
  "state_rate_dbps": 2900,
  "local_rate_dbps": 6250,
  "api_log_id": "abc123...",
  "expires_at": "2026-01-01T00:00:00.000Z"
}

3) Charge customer → 4) Record sale

After payment succeeds, record the sale so it appears in reports/exports:

curl -X POST https://taxlite.io/api/record-sale \
  -H "Content-Type: application/json" \
  -H "x-company-key: tl_trial_your_key" \
  -d '{
    "idempotency_key": "order-123",
    "event_id": "order-123",
    "payment_id": "pi_...",
    "api_log_id": "abc123..."
  }'

Try it live

Use the live tester on the homepage:

Open the live tester →