Skip to content
PLEN
Abstract visualisation of system integrations and process automation

Guide · integrations

ERP and ecommerce integration, store and wholesaler feeds, and KSeF: cost and approach

A store, a marketplace, a sales and warehouse program and KSeF must see the same orders, stock and invoices. We show typical scenarios, the questions to ask before starting and the point where a ready connector is no longer enough.

Published: · Store, BaseLinker, Subiekt, KSeF integration

Kamil Kosiorek „Kosior”Author: — owner of Vis-Sol, author and process owner

First decide which system is the source of truth

Every e-commerce integration starts with one question: where does each piece of information “live”. Stock is usually kept in the warehouse program (e.g. Subiekt), prices may sit in the ERP or the store, orders are created in the store and on marketplaces, and invoices in the accounting program and in KSeF.

If you do not settle this, two systems will overwrite each other's data. A typical symptom is a stock level in the store that reverts to the old value a few minutes after a change in the warehouse.

Integrating a store with BaseLinker and Allegro

BaseLinker is a platform for handling orders from many sales channels. It has ready connections to popular stores, marketplaces (including Allegro), courier companies and invoicing programs. In many companies BaseLinker is the hub that all orders pass through.

Connecting a store to BaseLinker usually means configuring a ready plugin or connection rather than programming. Custom code is needed when the store is unusual, when fields must be transferred that the standard connection does not handle, or when data must reach a system BaseLinker does not know. BaseLinker provides an API that makes this possible.

Allegro API integration: when to connect directly

Allegro provides a REST API; access requires registering an application and OAuth authorisation. A direct Allegro integration makes sense when you need something an intermediary does not provide: your own listing logic, unusual reporting or a connection to an in-house system.

  • The API has request limits, so synchronisation must be planned, e.g. incrementally rather than “everything every minute”.
  • Access tokens expire and must be refreshed automatically.
  • Allegro evolves the API and retires old resource versions, so the integration needs maintenance.

Integrating BaseLinker with Subiekt GT

Subiekt GT by InsERT is a popular Polish sales and warehouse program that runs locally, on a computer or server in the company. Programmatic access to its functions is provided by the paid Sfera module. Without it, integrations read data straight from the database, which is possible, but writing to the database while bypassing the program is risky.

BaseLinker offers a connection to Subiekt that transfers orders into the program and lets you issue documents. Before ordering a custom integration, check whether the standard connection covers your requirements: warehouses, price lists, document types, bundles.

Integrating Subiekt with WooCommerce

WooCommerce has a REST API and webhooks, i.e. notifications sent on a new order or a status change. A Subiekt–WooCommerce integration usually covers three flows: products and prices from Subiekt to the store, stock from Subiekt to the store, and orders from the store to Subiekt.

Because Subiekt GT runs on the company network and the store on a server on the internet, an intermediary is needed: a service on a company computer that talks to both. It must run continuously, keep logs and retry when the store or the internet is briefly unavailable.

Integrating an online store with a wholesaler

Wholesalers usually publish product, price and stock data as an XML or CSV file at a fixed address, less often through an API. The integration downloads the file regularly, matches products by EAN or SKU, recalculates prices with your margin and updates the store.

  • Decide what to do with products that disappear from the file: hide them, mark them unavailable or delete them.
  • Do not overwrite descriptions you have improved in the store for SEO.
  • With several wholesalers, define a rule for choosing the supplier of the same product.

KSeF integration and BaseLinker with KSeF

Poland's National e-Invoicing System (KSeF) became mandatory for businesses from 2026, in stages and with exceptions. Check the current dates on the Ministry of Finance website. A structured invoice is sent to KSeF as an XML file matching the official schema, and the system assigns it a KSeF number.

Most invoicing programs, including InsERT products, have built-in KSeF support. An integration is needed when invoices are created outside such a program, e.g. in an in-house system, or when you want to pull cost invoices from KSeF into a document workflow automatically. If you invoice through BaseLinker, check whether your chosen invoicing method sends documents to KSeF in your setup.

What drives the cost of an integration

We do not quote prices off the cuff, because cost depends on a few concrete factors that can be established in a short call:

  • whether the systems have APIs or you have to work with files or the database,
  • how many flows you need (orders, stock, prices, invoices) and in which direction,
  • how many exceptions there are: bundles, variants, several warehouses, currencies,
  • whether configuring a ready connector is enough or custom code is needed,
  • who will maintain the integration and how quickly failures must be handled.

The cheapest integration is often the one you do not have to write, because a ready connection is enough. That is why we start by checking available connectors and propose code only where they fall short.

Questions about store and KSeF integrations

Do I need Sfera to integrate Subiekt GT?

For a full, safe integration that writes documents into Subiekt GT, usually yes, because Sfera is InsERT's official programming interface. Reading data is sometimes possible without it, but writing while bypassing the program risks corrupting data.

How often should stock be synchronised?

As often as your sales pace requires and API limits allow. For low-stock products it is better to sync changes right after the event (webhook) than the whole catalogue every few minutes.

How much does KSeF integration cost?

If your invoicing program supports KSeF, the cost is mainly configuration and training. A custom integration is needed for in-house systems or automatic retrieval of cost invoices; then the cost depends on the number of flows and exceptions.

What happens to an order when the integration stops working?

A well-designed integration stores events in a queue, processes them once the connection is back and sends a notification about the problem. Without that, orders can get lost along the way, which is why monitoring is part of the integration, not an extra.

Can I connect a store to several wholesalers at once?

Yes. You need a common product key (usually EAN), a supplier selection rule and a way to combine stock. Without these rules the same product will appear in the store several times.

See also: System and API integration · Business process automation · Case study: processes on shared hosting (PL) · Process audit and mapping

← All guides

Do your store, marketplace and warehouse program not see each other?

Describe the systems and flows. We will check what a ready connection can do and what needs an integration. We work remotely for companies across Poland and on site in the Kuyavian-Pomeranian region.