vat.audit
Retrieve completed VAT verifications and their consultation numbers for your account.
https://api.kanagu.dev/v1/vat/audit- Price
- $0.03 per successful call
- Without a key
- Needs an API key.
- MCP tool
vat.auditathttps://api.kanagu.dev/mcp- Markdown
- /docs/vat.audit.md
curl https://api.kanagu.dev/v1/vat/audit \
-H "Content-Type: application/json" \
-d '{"limit":5}'curl https://api.kanagu.dev/v1/vat/audit \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":5}'const res = await fetch("https://api.kanagu.dev/v1/vat/audit", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"limit": 5
}),
});
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.audit",
"arguments": {
"limit": 5
}
}
}{
"limit": 5
}Request body
application/json
Exactly one of these 2 shapes:
1. With verificationId
verificationIdstring (uuid)required
2. With limit
limitinteger (1 to 100)
Response
200 · application/json
recordsarray of objectrequiredrecords[].verificationIdstring (uuid)- Audit ID for an authenticated verification.
records[].vatNumberstringrequiredrecords[].country"AT" | "BE" | "BG" | "CY" | "CZ" | "DE" | … (29 values)requiredrecords[].validbooleanrequiredrecords[].source"checksum" | "vies" | "hmrc"requiredrecords[].checkedAtstring (date-time)requiredrecords[].upstreamDatestringrecords[].namestringrecords[].addressstringrecords[].consultationIdstringrecords[].rawStatusstringrequired
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",
"oneOf": [
{
"type": "object",
"properties": {
"verificationId": {
"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)$"
}
},
"required": [
"verificationId"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"limit": {
"default": 10,
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"additionalProperties": false
}
],
"examples": [
{
"limit": 5
}
],
"type": "object"
}Response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"records": {
"type": "array",
"items": {
"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
}
}
},
"required": [
"records"
],
"additionalProperties": false
}