# Mearef Tax ID / VAT Validation for Middle Eastern Countries

> Mearef Tax ID / VAT Validation for Middle Eastern Countries is a paid API for AI agents from mearef.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-30).

Validates and normalises tax IDs and VAT numbers for Middle Eastern countries, returning validity status, normalised form, ID type, and failure reason based on official check-digit algorithms

## Facts

- Endpoint: GET https://mearef.dev/v1/taxid/validate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mearef-tax-id-vat-validation-for-middle-eastern-countries-18dcf38d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zl64Skb247pSjze8dZEjE

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 mearef-tax-id-vat-validation-for-middle-eastern-countries-18dcf38d
```

Example prompt: Can you check whether the UAE VAT number '100123456789003' is valid and give me its normalised form?

## When to prefer this

Choose this endpoint when you need algorithmic validation of tax IDs or VAT numbers for Middle Eastern countries (UAE, Israel, Saudi Arabia, etc.) with official rule citations and check-digit verification. Prefer it over generic international VAT validators when Middle East coverage and cited official sources are required, and when you do not need a live registry lookup — this is a fast, pure-computation check with no external registry dependency.

## Known failure modes

- Unsupported country code — the country is not in Mearef's coverage list
- Malformed or missing 'id' parameter — returns validation error
- Malformed or missing 'country' parameter — returns error
- Tax ID that structurally cannot be parsed — returns invalid with reason
- Network or payment failure (x402 protocol) — 402 or 5xx response

## How this service works

VAT number and tax ID validation for Middle Eastern countries: valid or invalid, normalised form, ID type and the reason a number failed. Checks the format plus the official check-digit algorithm where the tax authority publishes one; every rule cited to an official source with its date. Algorithmic, no registry lookup. Coverage list free at GET /v1/taxid/coverage. GET /v1/taxid/validate?country={cc}&id={number}.

## Output

Returns whether the tax ID is valid or invalid, the normalised (standardised) form of the ID, the specific ID type (e.g. TRN, TIN), and a human-readable reason explaining any validation failure. All rules are cited to official tax authority sources with effective dates. No live registry lookup is performed — validation is purely algorithmic.

## 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/mearef-tax-id-vat-validation-for-middle-eastern-countries-18dcf38d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mearef.dev](https://www.zero.xyz/host/mearef.dev/llms.txt)
