Guide

How to sync inventory between Mercado Libre and WooCommerce

Why overselling happens even when both dashboards are well looked after, and what a stock sync has to solve to prevent it: direction, frequency, echoes, and the safety net underneath.

All guides6 min read

Overselling is not carelessness. It is what happens when the same unit shows as available in two places and both can sell it: it gets sold twice, and one of the two sales ends in a cancellation. On Mercado Libre that cancellation costs you reputation, which is what decides whether your listings get seen.

Syncing stock looks like copying a number from one side to the other. It is not. There are four things to solve, and if one is missing, the sync either arrives late or chases its own tail.

  1. 1

    Decide which side is in charge

    If both channels can change the stock, you need to define what happens when both change. The simplest and safest way to start is one direction: one side is the source of truth and the other mirrors it. Once you see it working, you switch to two-way. The choice is made per connection, so you can have one store sending stock to Mercado Libre and another receiving it, in the same account.

    Tip

    Start one-way and in manual mode. Nothing moves until you press the button, and you can check the result before automating.

  2. 2

    The change should travel when it happens, not every so often

    A sync every fifteen minutes leaves a fifteen-minute window where overselling is possible. Both platforms announce changes: Mercado Libre sends a notification when a listing changes, and WooCommerce fires its webhooks when a product is created, edited, or deleted. By listening to both sides, the change is processed right away.

  3. 3

    Keep the system from chasing its own tail

    When two systems sync with each other, a write from one looks like a new change to the other, which responds by writing back, and so on forever. It is the real problem in any two-way integration. It is solved by tagging your own writes before making them and discarding them when they come back as notifications. It is the difference between a two-way connection and an infinite loop.

  4. 4

    Have a safety net underneath

    Webhooks fail. A notification gets lost, the platform has a bad day, the process restarts at exactly the wrong moment. That is why real time cannot rely on webhooks alone: you also need a scheduled reconciliation that compares the state of both stores every so often and fixes whatever drifted apart. Notifications give you speed; reconciliation gives you the guarantee.

    Watch out

    An integration that only listens to webhooks works perfectly until the day it does not, and on that day nobody notices until the canceled sale shows up.

  5. 5

    A variation’s stock is not the product’s stock

    If you sell by size, what runs out is not "the sneaker": it is size 10. The sync has to go down to the variation level and pair it with the one on the other side, one by one within the product. Syncing only the product total is the same as not syncing at all when half your catalog is variable.

What this doesn’t solve

  • No sync fully eliminates the overselling window: between someone pressing "buy" on Mercado Libre and the deduction reaching your store, a few seconds pass. What goes away is the window of minutes or hours, which is where it almost always happens.
  • If you also sell in a physical store and deduct stock by hand, that side has to write to the channel in charge too, or the problem comes back that way.

Questions

About this guide

How often does it sync?

You choose per connection: manual, every 5, 15, 30, or 60 minutes, or in real time. In real time, the webhooks from both platforms push the change as soon as it happens, and a scheduled reconciliation still runs every so often to check that nothing drifted out of sync.

Does a sale on Mercado Libre deduct the stock in my store?

Yes, and it is the direction that matters most: it is the one that prevents overselling. What it does not do is create the Mercado Libre sale as if it were a sale in your store, since that would skew your metrics. The order itself can be imported, which is a different thing.

Does it use a lot of resources with a large catalog?

It depends on how much changes, not on how big it is. Before writing, the product’s state is compared against a snapshot of the last sync: if nothing changed, the API is not called. A large, quiet catalog is cheap; a small one that changes all day, not so much.

How it’s built, in detail:

Try it with your catalog

Connect a store and a Mercado Libre account, list one product and see how it looks on the other side before moving the rest.