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

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.

  • Company VAT number field (checkout) (default): see Option 1.

  • Address line 2: see Option 2.

  • Don’t send VAT number: no VAT ID goes 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.

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 (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.

Did this answer your question?