Connecting to Shopify via WebHook

The Shopify integration works via the WebHook mechanism. When an order in Shopify is fulfilled, the data is automatically sent to Kigo which creates an invoice or quote, fiscalizes the document and sends it to the customer by email.

Activation procedure:

  1. In the Shopify Admin, open Settings → Notifications.
  2. At the bottom of the page, click Create Webhook.
  3. Select the event type Order Fulfillment (all orders/* events are supported).
  4. In the URL field, paste the WebHook address from the Kigo settings (available on the Shopify integration page).
  5. Save the WebHook and test by sending a test order.

Creating an Invoice or Quote

The document type depends on the payment status of the order when the WebHook sends data:

  • If the order is marked as paid (financial_status = paid) — an invoice is created.
  • If the order is not paid — a quote is created.

This behavior can be further customized through the Additional Rules tab where you define the combination of event, payment method and desired document status.

Items are automatically taken from the Shopify order along with price and tax. It is important that each item in Shopify has a defined SKU to prevent duplication with each new order.

Payment Method Mapping

Kigo automatically recognizes the payment method from the Shopify order according to the following rules:

  • Card payments — recorded as payment method Card.
  • Bank transfer, Cash on Delivery (COD), Bank deposit, PayPal — recorded as Transaction.

For specific configurations, use the Additional Rules tab where you can map individual Shopify payment gateways to the desired Kigo payment method.

VAT Setup and B2B Invoices (R1)

VAT is automatically taken from the Shopify order. For correct setup:

  1. In Shopify, open Settings → Taxes and duties and add Croatia with a 25% VAT rate.
  2. On each product, check the Charge tax on this product option.

For B2B customers (issuing R1 invoices), the customer enters the company name and OIB in the Company name field during checkout (e.g. Company d.o.o. / 12345678901). Kigo automatically recognizes the OIB (11 digits) from that field and creates a B2B client.

Enable the Company name field in Shopify Admin → Settings → Checkout, Customer information section, set to Optional or Required.

Item Synchronization (PREMIUM)

For two-way synchronization of items, stock levels and categories with Shopify, the Shopify Synchronization option is required, which needs a PREMIUM license.

Vehicles on the web. Only an administrator may change a vehicle with Vidljiv na webu (visible on the web) ticked; a salesperson makes the offer on the vehicle in stock. When an administrator archives a vehicle that is on the web, it leaves the web and its variant is deleted from Shopify. If it was the last variant of the product, the product goes to draft (images, description and address stay) and is active again when a vehicle of that product is back on the web.

On the Postavke → Postavke sinkronizacija tab, tick what Kigo sends to Shopify: Količine (quantities), Cijene (prices), Bazne cijene (base prices, with the Anchor prices module), Naziv i opis (name and description), Kolekcije i proizvođač (collections and vendor) and Stvaraj nove proizvode (create new products). What is not ticked stays as edited in Shopify. Until you save the setting, everything is sent.

On the Masovni izvoz artikala tab (bulk export) the same checkboxes apply to that one export only: they start as in the settings, and changing them changes neither the settings nor the automatic sync. Items selected on the Web artikli tab wait on the bulk export until you click Pokreni izvoz.

Shopify API credentials are required for synchronization:

  1. In the Shopify Admin, open Apps → Apps and sales channels → Developer apps.
  2. Create a new application (e.g. KigoPOS) and enable permissions: write_inventory, read_inventory, read_locations, read_products, write_products.
  3. Copy the API key, password and shared secret and enter them in the Kigo Shopify settings.

Items must have a Web Title set (unique for all variations), Visible on Web = Yes option, and optionally attributes for variations (e.g. Size: XL) and metadata.

FAQ

  • The order doesn't appear in Kigo? Verify that the WebHook URL is correctly copied and the correct event is selected. You can check the WebHook delivery status in Shopify Admin → Settings → Notifications → Webhooks.
  • How do I reverse an invoice created from Shopify? Reversal is done exclusively in the Kigo application. Find the invoice and use the reversal option — fiscalized reversal is automatically reported to the tax authority.
  • Can I use categories with subcategories? Yes, use the > character in the group name to define hierarchy (e.g. Clothing > Women's > Dresses). Kigo will automatically create the corresponding collections on Shopify.
  • Do I need to manually enter items? No, if you don't manage inventory. Items are automatically added from each order, but they must have a defined SKU in Shopify.

Language of the invoice and e-mail to the customer

On the Additional rules tab every rule has the field Email language. The customer gets the e-mail and the PDF invoice in that language:

  • In Croatian or In English — always that language.
  • In Slovenian or In Italian — always that language.
  • In customer language (HR or EN) — customers from Croatia get Croatian, others English.
  • In the order language (HR, SL, IT or EN) — the language the customer ordered in on the web shop: Croatian, Slovenian, Italian, and English for other languages. When the order language is not known, the customer country decides.

The language applies when the rule sends the e-mail to the customer. Every invoice in Kigo is still printed and downloaded in Croatian or English, e.g. for the accountant.

Companies from other EU countries (VAT ID)

Kigo puts VAT on the invoice as Shopify charged it on the order. When Shopify does not charge VAT to a company from another EU country and Kigo has the customer VAT ID, the invoice gets 0 % VAT, the customer VAT ID and the reverse charge note and is not fiscalized. When Shopify charged VAT, the invoice carries that VAT as for other customers.

Kigo takes the customer VAT ID:

  • from the Company field, when it is written next to the name with the country code (e.g. Company Ltd SI12345678);
  • from the cart field vat_number;
  • from the Standard plan, from the Shopify VAT number field at checkout (Shopify validates it and saves it to the customer profile). Kigo needs access to customer data for this: through the Kigo.Cloud Fiskalizacija app or, with the WebHook connection, through an Admin API token with the read_customers permission.

The VAT number field is switched on in Shopify under Settings → Checkout (Company VAT number), with Shopify Tax and an EU VAT registration.