# EU VAT Rules Engine

> EU VAT Rules Engine is a paid API for AI agents from api.eucompliance.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Determines EU VAT treatment for a transaction (place of supply, reverse charge, OSS, export, domestic), returning the applicable VAT rate, EN 16931 category code, exemption reason, and ready-to-use invoice wording in English and German.

## Facts

- Endpoint: GET https://api.eucompliance.tools/x402/vat-rules?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-vat-rules-engine-10dc426d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nlgGpkZ3PuHcXNSiE8vL-

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 eu-vat-rules-engine-10dc426d
```

Example prompt: What VAT treatment applies when my Austrian company (supplier) invoices a German business (B2B, customer VAT validated in VIES) for services — give me the rate, the EN 16931 BT-151 category code, the BT-121 exemption reason, and the correct invoice wording I can paste into my XRechnung?

## When to prefer this

Choose this endpoint when you need to programmatically determine the correct EU VAT treatment, EN 16931-compliant codes, and ready-to-use invoice wording for XRechnung, ZUGFeRD, Peppol BIS, or OSS workflows — especially for cross-border B2B and B2C transactions involving EU suppliers. Prefer it over manual lookup when automating invoice generation pipelines or when you need both the machine-readable VAT category codes and the legally compliant human-readable wording in one call.

## Known failure modes

- Missing required supplier or customer parameter returns a validation error
- Invalid or unsupported ISO-2 country code returns an error indicating unrecognised country
- Non-EU supplier country may return an unsupported or out-of-scope error
- Ambiguous transaction type (neither 'goods' nor 'services') may cause incorrect rule application
- Network or upstream service errors may return HTTP 5xx responses

## How this service works

EU VAT decision engine for invoicing and e-invoicing: determines place of supply, reverse charge, intra-Community supply, export or domestic VAT, returns the rate and the EN 16931 / UNCL5305 VAT category code (BT-151) plus exemption reason code (BT-121) and ready-to-use invoice wording (EN/DE) with the legal article reference. For XRechnung, ZUGFeRD, Peppol BIS and OSS workflows.

## Output

Returns the applicable VAT rate for the transaction, the EN 16931 / UNCL5305 VAT category code (BT-151), the exemption reason code (BT-121) where applicable, a ready-to-use invoice statement in both English and German, the relevant legal article reference, and the determined VAT treatment type (e.g. reverse charge, intra-Community supply, OSS, export zero-rate, or domestic).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "supplier",
      "customer"
     ],
     "properties": {
      "b2b": {
       "type": "boolean",
       "description": "true = business customer"
      },
      "type": {
       "type": "string",
       "description": "'service' or 'goods'"
      },
      "customer": {
       "type": "string",
       "description": "customer country, ISO-2, e.g. DE or US"
      },
      "supplier": {
       "type": "string",
       "description": "supplier EU country, ISO-2, e.g. AT"
      },
      "customer_vat_valid": {
       "type": "boolean",
       "description": "result of a VIES check, optional"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-vat-rules-engine-10dc426d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.eucompliance.tools](https://www.zero.xyz/host/api.eucompliance.tools/llms.txt)
