Connecting a second order source

Your e-shop's plugin sends the shop's orders. If you also sell in a physical shop and its tills keep the orders in another system, that system can send its orders into the same store in Intelligence. The engine then sees the whole customer: what they bought online and in the shop.

The channel field that marks an in-store order is part of contract 1.30.0.

Who creates the key

The second system gets its own API key. A Smaily operator creates it for your store in the admin; ask us. Keep the key secret, like the plugin's key. The second system does not run the plugin's setup link.

The key is a connection of your store like the plugin: while it is active, the store is not paused when the plugin is disconnected.

The rules for the second system

The second system uses the same order API as the plugin, with these rules:

  • Its own order numbers, with a prefix — for example POS-1234. No order number may equal one of the e-shop's: an equal number replaces the e-shop's order.
  • Only orders with the customer's email. The engine knows a customer by email. An order without an email cannot be sent.
  • The e-shop's product codes. Every line uses the same product code the plugin sends for that product (for example woo-123), never the shop's own stock code. The engine knows a product only from the e-shop's catalog.
  • channel: in_store on every order, also when the same order is sent again. An order without the field counts as an online order.
  • No catalog and no history import. The plugin keeps sending the products and runs the history import; the second system sends orders only.
  • Customer details only when it owns them. A customer is created from the order's email. If the second system also sends customer rows, it sends only the fields it knows (name, phone, country, language) and never the e-shop's customer number or website: a sent value replaces the stored one.

What you see in the console

An in-store purchase is credited by the same rules as any purchase: when the customer clicked a recommendation in an email in the 30 days before the purchase. It counts in one of the three channels as usual — there is no fourth channel.

Under the credited purchases on Home and in Insights, one more line says Of which in store: the revenue and the number of the credited purchases made in the shop. The line is shown only when there is at least one.

The comparison group counts in-store purchases like any purchase, so the extra revenue covers the shop too.

What does not work yet

  • Orders without an email — for example a shop sale where the customer gave no email — cannot be sent.
  • Products that only the shop sells — the second system sends no catalog, so a product the e-shop does not have is unknown to the engine: it is never recommended, and the engine cannot tell what kind of product the customer bought.

Last updated: 2026-11-13