# zaref VAT Calculator

> zaref VAT Calculator is a paid API for AI agents from zaref.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-22).

Calculates South African VAT (15%) by adding, removing, or stripping VAT from a given amount, returning cited JSON results.

## Facts

- Endpoint: POST https://zaref.dev/v1/answers/vat?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zaref-vat-calculator-f4570842
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LM0RZ0b0tBmIMqWeXeQBe

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 zaref-vat-calculator-f4570842 -d '<json body>'
```

Example prompt: I have a South African invoice for R1250 that includes VAT — can you strip the VAT out and tell me the excl-VAT price and the exact VAT amount?

## When to prefer this

Choose this endpoint when you need authoritative, cited South African VAT calculations (15%) with flexible direction control — adding VAT to excl. prices, removing or stripping VAT from incl. prices — especially in automated agents, invoicing tools, or accounting workflows targeting South Africa where correctness and citation matter.

## Known failure modes

- Missing required 'amount' field returns a validation error
- Non-numeric 'amount' value causes a bad request error
- Invalid 'direction' value (not 'add', 'remove', or 'strip') may return an error or default to 'add'
- Zero or negative amounts may return unexpected results
- Network timeout or service unavailability returns a 5xx error

## How this service works

South African reference data as clean, cited JSON: fuel prices, interest rates, FX and bond yields, tax tables, tariffs, wages and grants, live government tenders and crypto prices, plus calculators. Built for AI agents and applications.

## Output

Returns a JSON object containing the original amount, the computed VAT amount at South Africa's current rate (15%), and the resulting amount after the requested operation (add, remove, or strip), along with citation metadata for the VAT rate used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "amount"
 ],
 "properties": {
  "amount": {
   "type": "number",
   "description": "number, required"
  },
  "direction": {
   "enum": [
    "add",
    "remove",
    "strip"
   ],
   "type": "string",
   "description": "add (excl->incl, default) | remove | strip (both incl->excl)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zaref-vat-calculator-f4570842/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zaref.dev](https://www.zero.xyz/host/zaref.dev/llms.txt)
