Skip to main content

B2B handling: collect VAT ID and send it to iDoklad

Use Shopify’s built-in VAT ID field to collect VAT ID (DIČ) during checkout and send them to iDoklad automatically

The app sends the customer’s VAT ID (DIČ) to iDoklad. The company name and address come from the billing address. A Company ID (IČO) can only come from Address line 2 (see below).

Setup (1 min)

In Shopify Admin

  1. Settings → Checkout

  2. Under Customer information, set Company VAT number to Optional

  3. Save

Note: Shopify applies reverse charge to valid VAT numbers on eligible EU cross-border orders. Checking the VAT number at checkout needs Shopify Tax (free up to Shopify’s yearly sales limit, then Shopify may charge a fee). This is up to Shopify: our app reads the VAT number once Shopify saves it on the order or the customer.

How it works:

Step 1 – Customer enters VAT ID

The customer enters their VAT ID at checkout, and Shopify checks it in VIES right away.

Note: if your tax service doesn't include VAT ID checking, customers can enter any value, not only a valid VAT ID.

The VAT number field appears only after the Postal code (ZIP) and Country/region are filled in:

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.

Step 3 – We send the VAT ID to iDoklad ✅

We send the VAT number to your invoicing system with the customer details, so it appears in the right place on the document.


Option 2: Address line 2

Instead of the checkout VAT number field, the customer can type the VAT ID (or the Company ID) in Address line 2.

You find it in Settings » Content » Behavior of the 'Address Line 2' field.

It reads data from Billing address line 2.

Options:

  • COMPANY_ID / ICO

    • The value is used as the buyer company’s Czech company ID.

  • VAT_ID / DIC

    • The value becomes the contact's VAT ID in iDoklad.

    • If the value contains SK, it's also set as the SK VAT ID in iDoklad.

    • iDoklad can't process values longer than 20 characters.

Default behavior

With no option selected, Address line 2 stays part of the customer's address.

Important limitations

The iDoklad contact is updated with every new document, so an existing contact gets the value too.

If both methods are on and DIC is selected, the checkout VAT ID wins when there is one.

Did this answer your question?