TrueSKU Logo
Article

How to prevent an old marketplace order reducing stock twice

If an order gets processed, then later re-appears in a sync (a re-run job, a delayed webhook, a re-import) and gets treated as new again, the stock it already reduced gets reduced a second time - for a sale that only happened once.

Why this happens

Marketplace order feeds aren't always exactly-once: retries, pagination overlaps, and re-imports of historical data can all resurface an order your system has already acted on.

The fix is idempotency, not carefulness

Relying on "the sync just won't re-process old orders" isn't reliable on its own - the system needs to recognise an order it's already applied (by its channel order ID, not just its contents) and skip re-applying the stock reduction, regardless of how many times that order shows up in a feed.

Risky imports need a review step, not blind trust

Some imported sales genuinely can't be safely auto-applied - an ambiguous match, a duplicate-looking order, a listing that isn't linked yet. Rather than guessing, those should be held for a human to confirm before they're allowed to touch stock at all.

How TrueSKU handles this

Orders are tracked by their channel identity so a re-synced or re-imported order that's already been applied doesn't reduce stock again. Sales that can't be safely auto-applied are held in TrueSKU's Sales Inbox for review instead of silently changing inventory.

See TrueSKU with your own listings

21-day free trial, no card required.

← Back to Resources