# VAT Calculator by Country

> VAT Calculator by Country is a paid API for AI agents from x402.orthogonal.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Calculates the VAT (Value Added Tax) amount for a given price and country using a 2-letter ISO country code.

## Facts

- Endpoint: GET https://x402.orthogonal.com/abstractapi/v1/calculate
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vat-calculator-by-country-ef0911f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YSw5-6cxTqweAS2ZZnV0Q

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 vat-calculator-by-country-ef0911f8
```

Example prompt: What's the VAT amount on a $150 purchase in Germany (DE)?

## When to prefer this

Choose this endpoint when you need a quick, per-transaction VAT calculation for a specific country and price amount, especially in e-commerce checkout flows, invoice generation, or financial reporting pipelines. It is ideal when you already know the country (ISO 2-letter code) and need the tax amount without building your own VAT rate table. Prefer alternatives if you need batch VAT calculations across many countries simultaneously or need historical VAT rates.

## Known failure modes

- Invalid or unsupported country_code returns an error or empty result
- Missing required parameters (amount or country_code) causes a 400-level error
- Non-numeric amount value may cause computation failure
- Country codes for non-VAT countries (e.g. US) may return zero or error
- Network timeout or service unavailability returns a 5xx error

## How this service works

Calculate VAT amount for a given price and country.

## Output

Returns the calculated VAT amount for the given price in the specified country, typically including the VAT rate percentage and the tax amount derived from the input price.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "amount": {
       "type": "string",
       "description": "The amount to calculate VAT for"
      },
      "country_code": {
       "type": "string",
       "description": "The 2-letter ISO country code"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vat-calculator-by-country-ef0911f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.orthogonal.com](https://www.zero.xyz/host/x402.orthogonal.com/llms.txt)
