# x402toll.com US Sales Tax Calculator

> x402toll.com US Sales Tax Calculator is a paid API for AI agents from x402toll.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Adds or removes US sales tax from a dollar amount using verified 2026 state base rates for any US state or DC, with optional local rate support and flags for gross-receipts and local-only states.

## Facts

- Endpoint: POST https://x402toll.com/v1/commerce/sales-tax
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402toll-com-us-sales-tax-calculator-dfcf779a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gb1XR2T8QYcRHnrCRAE_2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402toll-com-us-sales-tax-calculator-dfcf779a -d '<json body>'
```

Example prompt: I'm selling a $79.99 item to a customer in Texas — can you add the 2026 state sales tax plus a 2% local rate to get the final price they should pay?

## When to prefer this

Use this endpoint when you need accurate, up-to-date 2026 US state sales tax calculations for e-commerce checkout, invoice generation, or price display — especially when you need to handle edge cases like Hawaii/New Mexico gross-receipts taxes or Alaska's local-only tax structure. Prefer this over generic tax APIs when you need to both add AND remove tax (e.g., back-calculating pre-tax amounts from tax-inclusive prices).

## Known failure modes

- Invalid or missing state code returns a 400 error
- Amount is zero or negative — API may reject or return zero tax
- Unsupported state code (non-US territory) returns an error
- localRatePct provided as a negative number may cause unexpected results
- Network timeout or payment failure returns a 402 or 5xx response

## How this service works

US sales tax — add or remove tax using the verified 2026 STATE base rate for any state + DC, plus an optional local rate. Flags gross-receipts states (HI/NM) and local-only states (AK).

## Output

Returns the tax-adjusted total amount, the tax amount applied, the effective combined tax rate, the verified 2026 state base rate, and flags indicating whether the state uses a gross-receipts tax model (HI, NM) or relies solely on local rates (AK).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "add",
    "remove"
   ],
   "type": "string",
   "default": "add"
  },
  "state": {
   "type": "string",
   "description": "2-letter US state/DC code"
  },
  "amount": {
   "type": "number"
  },
  "localRatePct": {
   "type": "number",
   "default": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402toll-com-us-sales-tax-calculator-dfcf779a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402toll.com](https://www.zero.xyz/host/x402toll.com/llms.txt)
