Skip to content

vatNumberCheck

Queryin Vat check

Whether a VAT number is registered, checked live against the EU's VIES service. VIES covers the member states' VAT numbers, so another country answers UNKNOWN.

The number may carry its country prefix, spaces or dots; the country argument says which register to ask.

Arguments

ArgumentTypeDescription
countryCountryCode!
vatNumberString!

Returns

VatNumberCheck!

FieldTypeDescription
statusVatNumberStatusType!Whether the number is registered, or that this could not be told.
nameStringThe registered company name, when the register gives one. Only set when the status is VALID.
addressStringThe registered company address as one text, when the register gives one. Only set when the status is VALID.

Example

query VatNumberCheck($country: CountryCode!, $vatNumber: String!) {
vatNumberCheck(country: $country, vatNumber: $vatNumber) {
status
name
address
}
}

The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.

Used by

The storefront packages that send it, in these GraphQL documents: