Shopify calculates correctly, the ERP still books the discount wrong

Maria Ducos · updated November 20263 min read

Shopify rechnet richtig, das ERP bucht den Rabatt trotzdem falsch
In short

In the shop every discount was right. In the ERP some discounts didn't arrive at all, others as a separate voucher line instead of on the product. The reflex would have been to rebuild the shop. Instead, we tested where the error really arises, and it wasn't in Shopify.

The case

A wholesaler uses different types of discounts: volume discounts, "buy X, get Y", discount codes. In the cart and checkout everything calculated correctly. The orders were transferred to the ERP via a connector, and there things looked different. Individual discounts were missing, others showed up as a separate line item. For accounting, that meant manual work on every affected order.

The cause and how we found it

"Shopify shows it correctly" doesn't yet mean the record is processed correctly. A discount can appear in a Shopify order in different ways: directly on the product line, spread across the whole order or as a code. Every connector and every ERP reads these types differently.

Our approach:

  1. Same cart, different discount types. We created identical test orders and only changed the discount type.
  2. Before and after comparison. For each order: what's in Shopify, what arrives in the ERP?
  3. Spot the pattern. Discounts on the product line arrived cleanly. Order-level discounts were not imported by the ERP, or imported as a separate line item.
  4. Narrow down the error. That made it clear: the logic in the shop works, the translation in the ERP doesn't.

With this finding, the ERP vendor could make targeted fixes. Without it, discounts in the shop that were actually correct would have been rebuilt.

What you can take away

  • The visible spot is rarely the cause. With errors between two systems, test the boundary first, then repair.
  • Workarounds in the shop are dangerous when the error actually lies behind it. They shift the problem and make it harder to find.
  • Give the ERP vendor a concrete example. Discount type, order number, what's in Shopify, what arrives in the ERP. Nobody can work with "doesn't work".
  • Test new discount types before you go live with them. One test order through the whole chain, all the way into accounting.

Do you have discrepancies between shop and ERP? In our audit we find out which side the error is on, before anyone rebuilds anything.

Intro call with store check · free

20 minutes. Then you know.

Before the call we look at your store. In the call we show you what we noticed and tell you whether we’re a fit and what it costs. Honest and without obligation.

Maria Ducos
MariaDesign, brand
and development
Pascal Hippmann
PascalConversion, SEO
and AI

What's it about?

Budget

Rather write? Go to the contact page