# Afriref Tax-ID / VAT Validation

> Afriref Tax-ID / VAT Validation is a paid API for AI agents from afriref.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-29).

Validates Tax-ID and VAT numbers for Pan-African countries, returning valid/invalid status, normalised form, ID type, and failure reason based on official check-digit algorithms

## Facts

- Endpoint: GET https://afriref.dev/v1/taxid/validate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/afriref-tax-id-vat-validation-920c9efa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6yo-mxZp8B29F9P_MfUS6

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 afriref-tax-id-vat-validation-920c9efa
```

Example prompt: Can you validate this South African tax ID — 9315141800186 — and tell me if it's correctly formatted and passes the official check-digit algorithm?

## When to prefer this

Use this endpoint when you need algorithmic Tax-ID or VAT number validation for African countries based on official check-digit rules and format specs — especially when you don't need or cannot perform a live government registry lookup. Ideal for KYB/KYC pipelines, invoice validation, onboarding workflows, and compliance checks where speed and cost-efficiency matter. Prefer this over generic global VAT validators if your use case is Pan-African and you need cited, authoritative format rules.

## Known failure modes

- Unsupported country code returns an error or empty coverage response
- Malformed or missing 'id' query parameter returns a 400-level error
- Country not yet in coverage returns an error indicating unsupported jurisdiction
- Network or payment (x402) failure prevents the call from completing
- Edge-case formatting (unusual separators) may cause parsing ambiguity

## How this service works

Tax-ID / VAT-number validation for Pan-African countries: valid/invalid, normalised form, id type and the reason it failed. Format plus the official check-digit algorithm where the tax authority publishes one; every rule cited to an official source with its date. Pure algorithmic, no registry lookup

## Output

Returns a JSON object containing: a valid/invalid boolean verdict, the normalised canonical form of the tax ID, the identified ID type (e.g. TIN, VAT, etc.), and if invalid, a structured reason for failure — all derived from official check-digit algorithms cited to their source and date, with no live registry lookup.

## 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",
     "required": [
      "country",
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "The tax ID / VAT number as written (spaces, dots, dashes and the VAT country prefix are accepted)"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 country code on this brand (see GET /v1/taxid/coverage)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/afriref-tax-id-vat-validation-920c9efa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from afriref.dev](https://www.zero.xyz/host/afriref.dev/llms.txt)
