Validate the structural correctness of a Japan qualified invoice T-number (T + 13 digits with check digit) before hitting the NTA registry. Useful as a pre-check to filter obviously invalid input.
https://torify.dev/v1/invoice/validate
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
number |
string | Yes | T-prefixed 13-digit qualified invoice number | T8010401050783 |
{ "ok": true, "data": { "valid": true } }
curl "https://torify.dev/v1/invoice/validate?number=T8010401050783"
import { wrapFetchWithPayment } from 'x402-fetch';
import { privateKeyToAccount } from 'viem/accounts';
const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const fetchWithPayment = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPayment(
'https://torify.dev/v1/invoice/validate?number=T8010401050783'
);
const data = await res.json();
console.log(data); // { ok: true, data: { ... } }
import requests
# Free MCP tier (no auth) or API key (X-API-Key header)
res = requests.get(
"https://torify.dev/v1/invoice/validate?number=T8010401050783",
headers={"X-API-Key": "your_torify_pro_key"}
)
print(res.json())
/v1/invoice/verify — Japan Invoice Verification: Qualified Invoice (T-Number) API
/v1/tax/calculate — Japan Consumption Tax Calculation API
/v1/eltax/check — Japan Electronic Bookkeeping Compliance API
/v1/houjin/lookup — Japanese Corporate Number Lookup: Houjin Bangou (法人番号) API