# Thai VAT (Tax ID) Validator

> Thai VAT (Tax ID) Validator is a paid API for AI agents from toll402.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-18).

Validates a 13-digit Thai Tax ID number, returning whether it is structurally valid along with an optional branch code check

## Facts

- Endpoint: POST https://toll402.dev/v1/t/vat_th_validate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/thai-vat-tax-id-validator-f80564a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6D5s7UCePD5fwoyatV-iQ

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 thai-vat-tax-id-validator-f80564a3 -d '<json body>'
```

Example prompt: Can you check if Thai tax ID 0105556091152 is valid, using the head office branch code?

## When to prefer this

Use this endpoint when you need a fast, lightweight, offline-style structural check on a Thai Tax ID (TIN) number — ideal for pre-validating supplier, customer, or employee tax IDs before submitting to government systems or generating compliant invoices. It does not perform a live registry lookup but catches formatting errors instantly and cheaply at $0.001 per call.

## Known failure modes

- Invalid format: tax ID is not 13 digits, returning ok: false
- Non-numeric characters that cannot be normalized cause a validation failure
- Invalid branch code format (not 5 digits) results in an error
- Missing required taxId field returns a schema validation error
- Network or payment failure (HTTP 402 not fulfilled) prevents the call from completing

## How this service works

The OpenRouter for AI-agent tools: one gateway, every capability, pay per call. Built-in tools, agent-forged tools, a global verified business directory, 2,791 provider API endpoints (SEO, social, enrichment, ads, market data, AI generation) and aggregated x402 services. Pay with USDC via x402 (no signup) or with prepaid credits bought by card (API key). Charged only on success.

## Output

A JSON object with an 'ok' boolean indicating whether the Thai Tax ID is structurally valid; may include parsed or normalized components and branch code validation status.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "taxId"
     ],
     "properties": {
      "taxId": {
       "type": "string",
       "description": "13-digit Thai Tax ID, digits only or with dashes/spaces"
      },
      "branchCode": {
       "type": "string",
       "description": "5-digit branch code, defaults to 00000 (head office) if omitted"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

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