Skip to main content

Overview

A VAT ID (Value Added Tax Identification Number) is an identification number used for tax purposes, specifically for value-added tax. It is assigned to organizations and helps authorities track and manage tax-related transactions. VAT ID names and formats vary from country to country. For example, in the European Union, it is referred to as “VAT identification number” or VATIN. Common names in other countries include Business Number (BN), Good and Services Tax number, and sales tax numbers.

Roles and permissions

To use the /entities/{entity_id}/vat-ids* endpoints with an organization user token, this organization user must have a role with the entity_vat_ids permission. If using a partner-level token, no special permissions are needed.

Check if VAT ID is required for organization

See Organization tax ID and VAT IDs.

Supported VAT ID types

Currently, Tesouro supports the following VAT ID types:
Need another VAT ID type?To request additional VAT ID types, send us an email to developers@tesouro.com.

Add a VAT ID to an organization

Note for Spanish organizationsOrganizations registered in the Canary Islands must use the country code IC instead of ES for their VAT ID.Organizations registered in Ceuta and Melilla must use EA as the country code.This is required for Tesouro to apply the regulatory compliance checks specific to those regions of Spain.
To add a VAT ID to an organization, call POST /entities/{entity_id}/vat-ids and specify the VAT ID type, value, and the country where this VAT ID is registered:
The successful response contains a unique id assigned to this VAT ID object, along with other information:
Note down the id of this VAT ID object - you will need to specify it later in the entity_vat_id_id field when creating invoices:
Invoice payload example

Multiple VAT IDs

An organization that sells globally may be registered for VAT in multiple jurisdictions. In this case, make sure to add all VAT IDs that this organization has.

Example: UK organizations that trade under the Northern Ireland Protocol

UK organizations that ship goods from Northern Ireland to the European Union fall under the Northern Ireland (NI) Protocol. Among other things, the NI Protocol requires that invoices for such sales display the seller VAT ID with the “XI” prefix instead of “GB”. To account for this, UK organizations need to add two VAT IDs:
  • one with type="eu_vat" - to be used for sales invoices that fall under the NI Protocol;
  • another one with type="gb_vat" - to be used for all other sales invoices.
Below are the payload examples to be used with POST /organizations/{organization_id}/vat-ids. Note that the VAT ID country (“GB”) and value (VAT number) are the same in both examples. The only difference is the type, which determines the VAT ID prefix that will appear on PDF invoices.
VAT ID payload for NI ProtocolVAT ID payload for all other sales
Do not include the “XI” or “GB” prefix in the value. Tesouro will add these prefixes to VAT IDs automatically when generating PDF invoices.
Make sure to specify the correct VAT ID (of type gb_vat or eu_vat) for each invoice or other document created by the organization:
Invoice payload example

List all VAT IDs

To get a list of all VAT IDs associated with an organization, call GET /entities/{entity_id}/vat-ids.

Retrieve a VAT ID

To get the details of a specific VAT ID associated with an organization, call GET /entities/{entity_id}/vat-ids/{vat_id}.

Edit a VAT ID

To update an existing VAT ID of an organization, call PATCH /entities/{entity_id}/vat-ids/{vat_id}.

Delete a VAT ID

To delete an existing VAT ID from the list of VAT IDs associated with the specified organization, call DELETE /entities/{entity_id}/vat-ids/{vat_id}.