Marketplace Integration: Automating Stock and Orders
Business

Marketplace Integration: Automating Stock and Orders

Which system holds the true stock, what happens when an API throttles you, and when is a ready-made integrator enough? A checklist to settle these before you ask for quotes.

Short answer

Marketplace integration connects your sales channels and your own shop to one source of truth for stock, prices and orders, so a sale on one channel updates all the others. Set it up by choosing a single stock source, keeping a safety buffer, recording each order under a unique ID, handling API limits with waits and retries, and going live one channel at a time. A ready-made integrator is enough for standard flows; custom integration pays off when your stock rules or systems are unusual.

What is marketplace integration, and why automate stock and orders?

Marketplace integration is the software layer that connects sales channels such as Trendyol, Hepsiburada and Amazon, plus your own web shop, to a single source of truth for stock, prices and orders. Done properly, a sale on one channel reduces the stock shown on every other channel within seconds, and orders flow to the warehouse and the accounts without being retyped. Done badly, or not at all, selling the same item twice becomes a matter of time.

The problem starts with the fact that each marketplace keeps its own product catalogue, its own order statuses and its own rules. If you update the stock of one product by hand in three different panels, one of them will always lag. Once you pass a few hundred products or more than two channels, manual tracking starts to produce errors, and cancellations, shipping and returns add to the load.

Most large marketplaces offer a public API for sellers. For example, Trendyol's integration documentation explains that companies in its partner programme can connect their own systems to their store and handle product transfer, stock and price updates, order processing, invoice submission and customer questions through the API. In other words, integration goes through the door the marketplace itself provides. Screen-scraping solutions are fragile and may also conflict with marketplace rules.

What should you decide in an integration architecture?

Fill in the table below before you ask for quotes. Each row answers the question "which system is treated as correct?" If code is written before these decisions are on paper, they come back later as the most expensive changes.

TopicDecision to makeCheck question
StockOne source of truth: ERP or warehouseHow is double selling prevented?
PricePer-channel rules and a floorCan a wrong price go live?
OrdersOne queue, duplicate detectionCan an order be processed twice?
ShippingTracking code written back to marketplaceWho is alerted when it is late?
Returns and cancellationsRule for restockingDoes returned stock rise automatically?
Invoicing and accountsWhich system issues the invoiceIs there a reconciliation report?
Errors and monitoringLogging, alerts, retriesIs a failed action visible?

The row most often skipped is stock. There is one stock source; the marketplaces show copies of it. When a copy and the source disagree, the source is what you trust and correct against.

Off-the-shelf integrator or custom integration?

An off-the-shelf integrator (a commercial package on a monthly subscription) is often the fastest route for a few marketplaces and standard workflows. Setup takes days, the provider maintains it, and when a marketplace changes its API the provider catches up on your behalf. If your catalogue is moderate, your processes are standard and you run a single ERP, a ready-made package may be enough.

A custom integration makes sense when:

  • Your stock rules are not standard, for example several warehouses, reserved stock or per-channel allocations.
  • No ready connector exists for your own ERP or a legacy system.
  • Orders carry business rules: bundles, sets, made-to-order items.
  • You want to keep the data on your own servers and report from your own system.
  • Subscription fees grow with your order volume and you want to work out the total cost.

Do not compare setup cost alone. Marketplace APIs change versions over time; Trendyol's integration page carries a notice with a deadline for moving to newer service versions. Maintenance is a cost either way. The difference is who carries it.

When you talk to an off-the-shelf integrator, ask: Which marketplace operations are supported (stock, price, orders, returns, invoices)? How quickly does a stock change reach the marketplace? How will you be told about errors? Can you export your data when the contract ends? Orders contain customer names, addresses and phone numbers, so also ask where the data is stored.

How do API limits and delays affect an integration?

Marketplaces limit how many requests you can make in a given time. Amazon's Selling Partner API (SP-API) applies this with a token bucket: the bucket holds a number of tokens, each request uses one, and tokens refill at a steady rate. A request made when the bucket is empty is throttled. Amazon's documentation also says that for some operations the limits can change with the seller's business, through dynamic usage plans. A flow that works today may therefore behave differently when your volume changes.

When a limit is exceeded, a server typically answers with HTTP 429 "Too Many Requests". RFC 6585 defines the code and says the response may include a Retry-After header, whose meaning is defined in RFC 9110. A good integration treats this response as a signal to slow down, not as a failure, and waits before trying again.

Where a marketplace offers event notifications, prefer them to constant polling. Amazon's Notifications API documentation says an application can receive information directly from Amazon when an event occurs instead of querying all the time. The same page recommends a backup mechanism for retrieving data in case notifications are delayed or interrupted. That is a sound rule for any marketplace: notifications make you faster, periodic checks make you safe.

How do you prevent double selling and lost orders?

Three measures solve most problems.

  1. Name one source of truth. Stock is held in one system and written to marketplaces only from there. Orders arriving from a marketplace reduce that source.
  2. Keep a safety buffer. If physical stock is 10, show 8 across channels in total. Even with an update delay, the risk of selling twice falls. Set the buffer according to how fast the product sells.
  3. Record each order under a unique ID. When the same order number arrives a second time, update the existing record instead of creating a new one. A repeated request after a network error then does no harm.

Every failed action should land in a queue, be retried, and notify a person after the third attempt. An order that disappears silently is the most expensive error in an integration.

What steps does an integration project follow?

A marketplace integration is built channel by channel and flow by flow, not in one go. That way you can see what works at each stage.

  1. Map the current flow. Write down how an order travels today from marketplace to warehouse, invoice and carrier, including who does what by hand.
  2. Clean up product matching. Every product's stock code must map one to one to its code on each marketplace. An unmatched product is where stock sync breaks first.
  3. Read first, write later. In the first week the integration only pulls orders and produces a comparison report. Once the figures match your manual records, switch on stock and price writing.
  4. Start with one channel. Take the channel with the most orders live, watch it for a week or two, then add the others.
  5. Rehearse campaign load. Test the number of updates you will send on a busy day in advance, using the marketplace's test environment if it offers one.

Track success with three indicators: orders cancelled because of double selling, the time a stock change takes to appear on the marketplace, and the share of orders that need manual intervention. Measured before and after the project, these three show whether the integration works without any argument.

Worked example: a store on three channels

For example, a home-textiles company sells the same product on its own site and on two marketplaces. Hypothetically, there are 12 units in the warehouse and the company holds back 2 as a safety buffer, so 10 units are shown. Then 3 sell on its own site, 4 on one marketplace and 2 on the other. That makes 9 sales and leaves 3 units in the warehouse. At that moment the integration recalculates every channel: 3 minus the buffer of 2 leaves 1 unit to show.

Done by hand, the two marketplace panels would keep showing "10 units" for a while, and the last item could be sold twice. In this example, automation prevents one disappointed customer and one order cancelled by the seller. The figures only illustrate the logic; set your own buffer from your sales speed and update delay.

Common mistakes

  • Not choosing a single stock source and keeping a separate number per channel.
  • Ignoring API limits and trying to update hundreds of products at once on a campaign day.
  • Relying on notifications alone, with no backup check.
  • Not logging failed actions, so you learn about errors from customer complaints.
  • Forgetting returns and cancellations, so stock never comes back and the product shows as sold out.
  • Not following marketplace API version notices, so the flow stops when an old version is shut down.

How Hatson Tech helps

Hatson Tech designs and builds the data flow between marketplaces, your own site, your ERP and your accounting systems as part of its custom software development. We start by filling in the table above with you: the stock source, the error queue, monitoring and the reconciliation report. If an off-the-shelf integrator is enough for you, we will say so. The first meeting and the discovery work are free; we do not publish fixed prices and quote once the scope is clear.

If you want to connect a legacy system to marketplaces, see our application modernisation decision guide, and for automatically reading order and invoice documents, our article on document processing automation.

Key takeaways

  • Pick one source of truth for stock, because marketplaces only show copies of it.
  • Use an off-the-shelf integrator for standard flows and a custom integration when stock rules, legacy systems or order logic are unusual.
  • Treat HTTP 429 responses as a signal to slow down and retry, and expect limits to change with your volume.
  • Use event notifications where offered, but keep a periodic check as a backup.
  • Go live one channel at a time, reading before writing, and measure cancellations, sync delay and manual interventions.

Frequently asked questions

What is marketplace integration?

It is software that links marketplaces such as Trendyol or Amazon and your own web shop to a single system for stock, prices and orders. Orders are pulled in automatically and stock and tracking information are written back to each channel. The aim is to remove retyping and the errors that come with it.

How do I stop selling the same product twice on different marketplaces?

Keep stock in one system and write to the marketplaces only from there. Show a little less than the physical stock as a safety buffer, and record each order under a unique ID so a repeated message does not reduce stock twice. Failed updates should be retried and reported to a person.

Is a ready-made integrator or a custom integration better?

A ready-made integrator is usually quicker and cheaper to start when you use a few marketplaces and standard flows. Custom integration fits when you have several warehouses, special order rules, a legacy ERP, or want the data on your own servers. Compare total cost including maintenance, not setup alone.

What happens when a marketplace API limit is exceeded?

The marketplace rejects the extra requests, commonly with an HTTP 429 response, and sometimes says how long to wait. The integration should pause, retry later and spread updates over time. Limits can also change with your volume, so test busy-day loads in advance.

Can marketplace orders be connected to accounting and invoicing?

Yes. Orders can be passed to your accounting or invoicing system, and the invoice can be sent back to the marketplace where its API supports it. Decide which system issues the invoice and add a reconciliation report so differences are caught early.

All articles