Skip to content
VAT validation

vat.audit

Retrieve completed VAT verifications and their consultation numbers for your account.

POSThttps://api.kanagu.dev/v1/vat/audit
Price
$0.03 per successful call
Without a key
Needs an API key.
MCP tool
vat.audit at https://api.kanagu.dev/mcp
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
    }
  }
}
Request body
{
  "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 objectrequired
records[].verificationIdstring (uuid)
Audit ID for an authenticated verification.
records[].vatNumberstringrequired
records[].country"AT" | "BE" | "BG" | "CY" | "CZ" | "DE" | … (29 values)required
records[].validbooleanrequired
records[].source"checksum" | "vies" | "hmrc"required
records[].checkedAtstring (date-time)required
records[].upstreamDatestring
records[].namestring
records[].addressstring
records[].consultationIdstring
records[].rawStatusstringrequired

Try it

vat.audit

$0.03/call

This operation reads account data and needs an API key.

Response

Run the request to see the live response here.

Errors

Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.

StatusCode and meaning
400invalid_input

The body does not match the request schema. The message names each field.

400invalid_json

The body is missing or is not valid JSON.

400invalid_idempotency_key

Idempotency-Key must be 1–128 visible ASCII characters.

401invalid_api_key

The Bearer key is missing, malformed, invalid or inactive.

402free_allowance_exhausted

This 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.

404not_found

No operation at this path.

409idempotency_conflict

The Idempotency-Key was already used with a different body.

413payload_too_large

JSON bodies may be at most 64 KiB.

429trial_limit

The anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left.

500internal_error

The 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
}