Collect your business customersâ VAT ID and send it to iDoklad, so it shows on the document. In Czechia thatâs the DIÄ, for example CZ12345678. The company name and address come from the billing address.
đ§Ÿ VAT number on documents
Choose where the app takes the VAT ID from. Only the source you choose puts a VAT ID on the document.
An order with a valid VAT ID counts as a company (B2B) order, otherwise as individual (B2C).
Set it up
Open iDoklad | Integration app » Settings menu » Content section » VAT number on documents field » choose a source » Save
VAT ID check
Whatever the source, the app checks that the value looks like a VAT ID:
Spaces, dots, dashes, slashes and a typed label (for example âDIÄ:â) are removed first.
Accepted: an EU VAT number with the country code (all 27 EU countries, and GB, XI, CH, NO), or a number without the country code in the format of the billing country (or your storeâs country), for example a Czech DIÄ of 8 to 10 digits.
It goes to iDoklad as the customer typed it, without the label.
Anything else (for example a flat number, a phone number or a personal ID) is left out. Thatâs not an error.
If iDoklad still rejects a VAT ID in the right format, you see an error code on the Monitor.
Good to know
The VAT ID goes into the contactâs DIÄ field. A Slovak VAT ID typed with SK (for example SK2020202019) also goes into the IÄ DPH field. Without SK, it goes only into the DIÄ field.
iDoklad doesnât accept a value longer than 20 characters.
The iDoklad contact is updated with every new document (except credit notes), so an existing contact gets the VAT ID too.
Generate for and the Monitor use the company (B2B) or individual (B2C) decision. See Generate for.
If the source doesnât match (for example Address line 2 is chosen, but the customer filled in the checkout field), the customer counts as a company (B2B), but no VAT ID goes on the document.
With Donât send VAT number, the company (B2B) or individual (B2C) decision still works, from the checkout field.
VAT handling (reverse charge, exemptions, OSS) doesnât depend on this: it follows the Shopify order. See Tax logic.
The VAT ID isnât saved on the Shopify order.
A change only affects new documents.
Option 1: Company VAT number field (checkout)
The customer types the VAT ID into Shopifyâs Company VAT number field at checkout. This is the default.
How it works
Step 1 â Customer enters VAT ID
The customer enters their VAT ID at checkout. With Shopify Tax, Shopify checks it and applies reverse charge when itâs due.
Always with the country code: Shopify saves the VAT number only in the EU format, with the country code first (for example CZ12345678). If the customer types it without the country code (12345678), they can enter it, but Shopify doesnât save it on the order, so it never reaches iDoklad or the document. For a VAT ID without the country code, use Address line 2.
Step 2 â VAT ID is saved to the customer
Shopify saves it under Customer » VAT number. This works for checkout orders and for orders you create in the admin (there you enter it on the customer). You see it in Shopify Admin » Customers » the customer » Tax details » VAT number.
Step 3 â We send the VAT ID to iDoklad â
We send the VAT number to iDoklad with the customer details, exactly as typed, so it appears on the document. For a Shopify B2B company, we send the VAT number of the company location.
Set it up
In the app: Settings menu » Content section » VAT number on documents » Company VAT number field (checkout) » Save
In Shopify Admin: Settings » Checkout » Customer information, set Company VAT number to Optional (or Required) » Save
Good to know
This field belongs to Shopify Tax (EU/UK VAT). Checking the VAT number at checkout needs Shopify Tax (free up to Shopifyâs yearly sales limit, then Shopify may charge a fee). If you just want to collect any tax number, use Address line 2.
Option 2: Address line 2
The customer types the VAT ID into Address line 2 of the billing address. Itâs more flexible than the checkout field: a VAT ID with or without the country code (CZ12345678 or 12345678) goes to iDoklad, if it passes the VAT ID check.
How it works
If Address line 2 holds a VAT ID, itâs sent to iDoklad as the DIÄ, exactly as typed (without the label). It then isnât part of the address.
If it isnât a VAT ID (for example a flat number), it stays in the address, and the customer counts as an individual (B2C).
If the customer also filled in the checkout VAT field, that one doesnât go on the document, but the customer counts as a company (B2B).
Address line 2 and the checkout field both empty: no VAT ID on the document.
A Company ID (IÄO) canât be collected with this setting.
Set it up
In the app: Settings menu » Content section » VAT number on documents » Address line 2 » Save
In Shopify, rename the Address line 2 label in your checkout, for example to âVAT IDâ (Shopify Admin » Settings » Checkout » Checkout language). Otherwise customers type their flat number there.
Earlier Address line 2 setting
Stores that set the earlier Behavior of the âAddress Line 2â field setting to Collect VAT ID or Collect Company ID keep it, until you choose a source under VAT number on documents. The earlier setting isnât shown in the app any more.
Collect VAT ID: the checkout VAT number goes to iDoklad as the DIÄ, without the VAT ID check. If itâs empty, Address line 2 goes, also without the check, and then isnât part of the street.
Collect Company ID: Address line 2 goes to iDoklad as the Company ID (IÄO) and isnât part of the street. The checkout VAT number goes as the DIÄ, if there is one. A Company ID alone doesnât make the customer a company (B2B).
Important limitations
With the earlier Collect VAT ID setting, a checkout number that starts with SK, or an Address line 2 value that contains SK anywhere, also goes into the Slovak IÄ DPH field.
With the earlier Collect VAT ID setting, if the customer also fills in the checkout VAT number field, the checkout VAT number goes to iDoklad.
Company name and customer type
The contactâs company name is the Company field of the billing address; if itâs empty, itâs the customerâs full name. iDoklad has no separate company or individual contact type. Whether we treat the customer as company (B2B) or individual (B2C), for example in Generate for, depends on the VAT ID. Details: Company name.
