Docs / Checks

Validate a VAT number

Asks the European Commission VIES service whether an EU VAT number is listed as active. valid: false means VIES does not list it, not that the number never existed. A rejected format returns 400.

POST/v1/vat/validate
import { Client } from "@liveapiio/liveapi";

const client = new Client({ token: process.env.LIVEAPI_TOKEN });

const vat = await client.validateVat("NL004495445B01", "NL");

Request

Send Authorization: Bearer YOUR_TOKEN. The token stays on your server. Each library reads it from the environment and calls this endpoint for you.

FieldTypeDescription
vat_numberstringThe VAT number. Required.
countrystringISO country code. Optional when the number already includes the country prefix.

Response

A 200 response uses one call, including when valid is false. name and address are null when the member state does not share them.

Errors

A failed request returns { "error": { "code", "message" } } and does not use a call.

StatusCodeWhen
400invalid_requestVIES rejected the number format.
503upstream_unavailableVIES or the member state is unavailable.
401unauthorizedThe bearer token is missing or not recognized.

We value your privacy

We use necessary cookies to run this website. With your consent, we would also like to use analytics and marketing cookies. Read our cookie policy.