# Usaref Tax ID / VAT Number Validator (North America)

> Usaref Tax ID / VAT Number Validator (North America) is a paid API for AI agents from usaref.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-29).

Validates and normalises Tax IDs and VAT numbers for North American countries using official format rules and check-digit algorithms, returning validity, normalised form, ID type, and failure reason

## Facts

- Endpoint: GET https://usaref.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/usaref-tax-id-vat-number-validator-north-america-1e258295
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MvYQHfKYSxQOJGiF7BAJs

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 usaref-tax-id-vat-number-validator-north-america-1e258295
```

Example prompt: Can you check whether '12-3456789' is a valid US EIN — I need to know if it passes the official format and check-digit rules, and what type of tax ID it is?

## When to prefer this

Choose this endpoint when you need a fast, pure-algorithmic Tax ID or VAT number validation for North American countries (US, Canada, Mexico, and others in the coverage list) that does not require a live registry lookup. It is ideal for pre-validation in onboarding flows, invoice processing, or compliance checks where you need the normalised ID form, type classification, and an official-source-cited reason for any failure. Prefer this over EU VAT validation services for North American tax IDs specifically.

## Known failure modes

- Missing required 'country' or 'id' query parameter returns 400 error
- Unsupported or non-North-American country code returns coverage error or 400
- Malformed ID string that cannot be parsed returns invalid with reason
- Country code not in /v1/taxid/coverage list returns unsupported country error
- Network timeout or service unavailability returns 5xx

## How this service works

Tax-ID / VAT-number validation for North American 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 boolean validity flag, the normalised form of the tax ID, the detected ID type (e.g. EIN, SSN, BN, RFC), and if invalid, a human-readable reason explaining which format rule or check-digit algorithm failed, with citations to official sources

## 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/usaref-tax-id-vat-number-validator-north-america-1e258295/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from usaref.dev](https://www.zero.xyz/host/usaref.dev/llms.txt)
