x402

VAT Format Validation (x402)

Validate a European VAT number format against country-specific rules. Pure algorithmic — does NOT check VIES. Use vat-validate for full VIES verification. Supports all 27 EU countries + GB, CH, NO.

get/x402/v2/vat-format-validate

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/vat-format-validate
  • Auth: none required

Query parameters

vat_numberstring required

VAT number including country prefix (e.g. SE556703748501)

Response

Success

validboolean
vat_numberstring
country_codestring
country_namestring
format_validboolean

Example response

{
  "note": "Format is valid. Use vat-validate for full VIES verification.",
  "valid": true,
  "vat_number": "SE556703748501",
  "country_code": "SE",
  "country_name": "Sweden",
  "format_valid": true,
  "expected_format": "SE123456789012"
}

Changes

No recorded changes to this operation across all 1 revision of this API.