Skip to main content

B2B handling: collect VAT ID and send it to inFakt

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

Collect your business customers’ VAT ID and send it to inFakt, so it shows on the document. In Poland that’s the NIP UE: PL + NIP, for example PL1234567890.

đŸ§Ÿ 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.

  • Metafield: see Option 3.

  • 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). Company ID / registration number isn’t supported yet.

Set it up

Open inFakt | 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 “NIP:”) 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 Polish NIP of 10 digits.

  • It goes to inFakt 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 inFakt still rejects the NIP, you see it on the Monitor. See Invalid NIP on the order.

Good to know

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

  • If the chosen source holds a value that isn’t a VAT ID, no VAT ID goes on the document, and the Monitor still shows the document as successful.

  • 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 PL1234567890). If the customer types it without the country code (1234567890), they can enter it, but Shopify doesn’t save it on the order, so it never reaches inFakt 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).

Step 3 – We send the VAT ID to inFakt ✅

We send the VAT number to inFakt 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 (PL1234567890 or 1234567890) goes to inFakt, if it passes the VAT ID check.

How it works

  • If Address line 2 holds a VAT ID, it’s sent to inFakt as the NIP, 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.

  • With any other source chosen, Address line 2 is always part of the address.

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.

Option 3: Metafield

For a VAT ID that another app or form saves in a metafield, for example Checkout Blocks or a B2B sign-up form.

How it works

  • You pick one of your store’s metafields: an order, customer or B2B company metafield. The list shows the metafields you created and named in Shopify admin » Settings » Custom data, for example “NIP (checkoutblocks.nip)”.

  • When the document is created, the app reads that metafield on the order, on its customer or on its B2B company.

  • The value goes through the same VAT ID check. A VAT ID goes to inFakt and the customer counts as a company (B2B). Empty or not a VAT ID: the customer counts as an individual (B2C), and that’s not an error.

  • Address line 2 always stays part of the address.

  • Only the VAT ID is read from the metafield.

Set it up

  1. Open inFakt | Integration app » Settings menu » Content section » VAT number on documents field » Metafield

  2. In the Metafield list under it, choose the metafield that holds the VAT ID » Save

  3. No metafield in the list? Create one first in Shopify admin » Settings » Custom data.

Company name and customer type

The company name comes from the Company field of the billing address. inFakt saves the client as a company when a VAT ID goes on the document, otherwise as an individual. For company invoices, ask business customers to fill in both fields. Details: Company name and Customer type in inFakt.

Did this answer your question?