vat.verify
Verify an EU or UK VAT number and return audit evidence. Upstream failures are unbilled.
https://api.kanagu.dev/v1/vat/verify- Price
- $0.03 per successful call
- Without a key
- 10 free calls per IP per UTC day, shared by REST and MCP.
- MCP tool
vat.verifyathttps://api.kanagu.dev/mcp- Markdown
- /docs/vat.verify.md
curl https://api.kanagu.dev/v1/vat/verify \
-H "Content-Type: application/json" \
-d '{"vatNumber":"DE143454214"}'curl https://api.kanagu.dev/v1/vat/verify \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"vatNumber":"DE143454214"}'const res = await fetch("https://api.kanagu.dev/v1/vat/verify", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"vatNumber": "DE143454214"
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "vat.verify",
"arguments": {
"vatNumber": "DE143454214"
}
}
}{
"vatNumber": "DE143454214"
}{
"verificationId": "0f8c2a51-6a3e-4c55-9d43-2b6a1f0c9e77",
"vatNumber": "DE143454214",
"country": "DE",
"valid": true,
"source": "vies",
"checkedAt": "2026-11-24T09:12:03.512Z",
"upstreamDate": "2026-11-24",
"consultationId": "WAPIAAAAZ…",
"rawStatus": "VALID"
}Request body
application/json
vatNumberstring (max 40 chars)required- VAT number with country prefix, e.g. DE143454214.
requesterVatstring (max 40 chars)- Your VAT number, to request a consultation ID.
Response
200 · application/json
verificationIdstring (uuid)- Audit ID for an authenticated verification.
vatNumberstringrequiredcountry"AT" | "BE" | "BG" | "CY" | "CZ" | "DE" | … (29 values)requiredvalidbooleanrequiredsource"checksum" | "vies" | "hmrc"requiredcheckedAtstring (date-time)requiredupstreamDatestringnamestringaddressstringconsultationIdstringrawStatusstringrequired
Try it
Errors
Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.
| Status | Code and meaning |
|---|---|
| 400 | invalid_inputThe body does not match the request schema. The message names each field. |
| 400 | invalid_jsonThe body is missing or is not valid JSON. |
| 400 | invalid_idempotency_keyIdempotency-Key must be 1–128 visible ASCII characters. |
| 401 | invalid_api_keyThe Bearer key is missing, malformed, invalid or inactive. |
| 402 | free_allowance_exhaustedThis month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left. |
| 404 | not_foundNo operation at this path. |
| 409 | idempotency_conflictThe Idempotency-Key was already used with a different body. |
| 413 | payload_too_largeJSON bodies may be at most 64 KiB. |
| 429 | trial_limitThe anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left. |
| 500 | internal_errorThe call failed on our side. It is not billed; retry with the same Idempotency-Key. |
JSON Schema
Request schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"vatNumber": {
"type": "string",
"minLength": 3,
"maxLength": 40,
"description": "VAT number with country prefix, e.g. DE143454214."
},
"requesterVat": {
"description": "Your VAT number, to request a consultation ID.",
"type": "string",
"minLength": 3,
"maxLength": 40
}
},
"required": [
"vatNumber"
],
"additionalProperties": false,
"examples": [
{
"vatNumber": "DE143454214"
}
]
}Response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"verificationId": {
"description": "Audit ID for an authenticated verification.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"vatNumber": {
"type": "string"
},
"country": {
"type": "string",
"enum": [
"AT",
"BE",
"BG",
"CY",
"CZ",
"DE",
"DK",
"EE",
"EL",
"ES",
"FI",
"FR",
"GB",
"HR",
"HU",
"IE",
"IT",
"LT",
"LU",
"LV",
"MT",
"NL",
"PL",
"PT",
"RO",
"SE",
"SI",
"SK",
"XI"
]
},
"valid": {
"type": "boolean"
},
"source": {
"type": "string",
"enum": [
"checksum",
"vies",
"hmrc"
]
},
"checkedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"upstreamDate": {
"type": "string"
},
"name": {
"type": "string"
},
"address": {
"type": "string"
},
"consultationId": {
"type": "string"
},
"rawStatus": {
"type": "string"
}
},
"required": [
"vatNumber",
"country",
"valid",
"source",
"checkedAt",
"rawStatus"
],
"additionalProperties": false
}