Compatibility & versioning
Open response schemas, additive changes, 6-month deprecation policy, and primary vs. compatibility endpoints.
The VAT.tools v1 API evolves through additive changes without breaking existing clients. Published OpenAPI response and webhook schemas are intentionally open so SDK generators and runtime validators ignore newly introduced properties safely.
Additive vs. breaking changes
The following changes are considered non-breaking within v1:
- Additive JSON fields on success envelopes, error objects (such as
error.retryable,error.meter,error.allowance, orerror.rate_limit), and webhook payloads. Published response and webhook schemas in OpenAPI do not setadditionalProperties: false. - New optional request parameters or headers with backwards-compatible defaults when omitted.
- New enum values on outcomes, reasons, headers, error codes, or webhook
typeevent names.
Notices are posted in the API changelog.
Client design rules
- Ignore unknown properties: configure JSON decoders and generated SDKs not to fail when unexpected fields appear on responses or webhook events.
- Handle unknown enum and event values: route unrecognised status labels, error codes, or webhook event types safely instead of throwing.
- Read error.retryable: every controlled error object includes a non-identifying
error.retryableboolean. Never retryQUOTA_EXCEEDED,TRIAL_QUOTA_EXCEEDED,TRIAL_EXPIRED,LIVE_ACCESS_UNAVAILABLE,ENVIRONMENT_FORBIDDEN,NOT_COVERED,BULK_ROW_LIMIT_EXCEEDED, or validation failures. - Send Idempotency-Key on retries: supported on
POSToperations and charged resourceGETendpoints so retries never double-bill.
interface PublicErrorEnvelope {
error: {
code: string;
message: string;
retryable?: boolean;
request_id?: string;
[extra: string]: unknown;
};
}
export function shouldRetryFromEnvelope(status: number, body: PublicErrorEnvelope): boolean {
if (typeof body.error.retryable === "boolean") {
return body.error.retryable;
}
return status === 503;
}Primary vs. compatibility v1 endpoints
New integrations should start with the canonical POST /v1/vat/verify and POST /v1/companies/search endpoints. Earlier routes remain supported for existing integrations under the 6-month deprecation notice policy.
Primary entry points (recommended for new integrations)
| Endpoint | Purpose |
|---|---|
POST /v1/vat/verify | Primary VAT verification (supports verify_company_status, view, references, and Idempotency-Key) |
POST /v1/companies/search | Primary company search and optional VAT discovery |
POST /v1/companies/lookup | Primary exact company register lookup with retained facts |
POST /v1/vat/calculate | Reviewed Great Britain (GB) and Northern Ireland (XI) rate cards |
GET /v1/verifications, GET /v1/verifications/{operationId} | Retained verification history and operation detail records |
Compatibility routes (preserved, deprecated for new integrations)
| Endpoint | Compatibility guidance |
|---|---|
POST /v1/validations | Compatibility VAT validation (legacy verification envelope); use POST /v1/vat/verify for new integrations |
POST /v1/vat-validations | Compatibility VAT validation alias; use POST /v1/vat/verify for new integrations |
GET /v1/vat-numbers/{countryCode}/{vatNumber} | Compatibility VAT resource lookup; supports optional Idempotency-Key (prefer POST /v1/vat/verify) |
GET /v1/companies, GET /v1/companies/{jurisdiction}/{id} | Compatibility company resource reads; support optional Idempotency-Key (prefer POST /v1/companies/search and POST /v1/companies/lookup) |
Legacy Gen 1 validation history listing endpoints are retired in favour of GET /v1/verifications.