# Sales Tax & VAT/GST Calculator

> Sales Tax & VAT/GST Calculator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Add tax to a net amount or extract tax from a gross amount using a supplied rate or a built-in table of US state (with avg local) and worldwide VAT/GST rates.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/sales-tax-vat-calculator
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sales-tax-vat-gst-calculator-ad743f17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oTLhzyoL305HnBKCtuGS0

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 sales-tax-vat-gst-calculator-ad743f17 -d '<json body>'
```

Example prompt: I need to charge a customer $149.99 for software — can you calculate the total including sales tax for Texas, adding the average local rate on top of the state rate?

## When to prefer this

Use this endpoint when you need a quick, stateless tax calculation — either forward (net to gross) or reverse (gross to tax) — without needing to integrate a full tax compliance platform like TaxJar or Avalara. Ideal for pricing previews, invoice generation, and receipt breakdowns where a built-in rate table covering all US states (with average local rates) and major world VAT/GST jurisdictions is sufficient, and sub-cent precision is acceptable.

## Known failure modes

- Unknown or unsupported jurisdiction code returns an error asking for a valid country/state
- Missing required fields (amount or mode) return a 400-level validation error
- Negative amounts may be rejected or return unexpected results
- Ambiguous region strings that don't match the lookup table fall back to requiring an explicit rate

## How this service works

Add tax to a net amount or extract tax from a gross amount, using a supplied rate or an embedded table of US state (state + avg local) and worldwide VAT/GST rates.

## Output

Returns a JSON object with the computed tax amount, net amount, gross amount, the effective combined rate applied, and the jurisdiction name — whether calculated from a supplied custom rate or looked up from the embedded US-state or worldwide VAT/GST table.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "type": "string"
  },
  "amount": {
   "type": "number"
  },
  "region": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "net": 100,
  "tax": 20,
  "gross": 120,
  "rate_pct": 20
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sales-tax-vat-gst-calculator-ad743f17/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
