How to Plan an E-commerce Site Synced With Stock and Orders
Decide where stock lives, how an order changes it and what happens after payment before you design a single page. A planning checklist for online stores.

Short answer: plan the data before the design. Decide which system owns the stock number, what an order does to that number at each step, and how a confirmed payment reaches the warehouse, then build the storefront on top of those decisions. A beautiful online store that shows the wrong stock or loses paid orders costs more than a plain one that gets both right.
Most e-commerce projects start with page layouts and colour choices. The problems that hurt later, such as overselling, orders stuck between "paid" and "packed", or a product page that says "in stock" when the shelf is empty, come from questions nobody answered at the start. This article walks through those questions in the order we work through them.
Why the connection matters more than the storefront
An online store is the visible end of a chain: product data, stock, cart, payment, order, picking, shipping, and the books. If any link in that chain depends on someone copying data by hand, the store can only be as accurate as that person on a busy day.
The cost shows up in two places.
Customers. Baymard Institute's running list of 50 studies, published between 2006 and 2025, puts the average documented cart abandonment rate at 70.22%. In its survey of US shoppers, 17% of those who abandoned an order cited website errors or crashes, and 12% said they could not see or calculate the total order cost up front. Stock that disappears at checkout, or a total that changes at the last step, adds to exactly those frustrations.
Advertising. If you run Google Shopping ads, Google requires the availability in your product data to match the landing page and checkout. Its Merchant Center help page says a mismatch will trigger a product disapproval. A store that is not connected to real stock can lose its ads, not just its sales.
Five decisions to make before design starts
1. Choose one owner for the stock number
Pick a single system that holds the real quantity for every product: your ERP, a warehouse or inventory system, or the e-commerce platform itself if it is your only channel. Every other place that shows stock, including the website, marketplaces and a point-of-sale till, reads from that owner or sends changes to it.
When two systems both think they own the number, you get the classic overselling problem: the last unit sells twice, on two channels, a minute apart.
2. Define what "available" means
"Stock" is not one number. Shopify's help centre, for example, separates on-hand stock into units that are available to sell, units committed to unfulfilled orders, and units held back as unavailable, such as damaged goods or safety stock. Incoming transfers are tracked separately and cannot be sold until received.
Your store should show the available figure, not the on-hand one. Decide early whether you keep a safety buffer for fast-moving items, and whether some stock is reserved for a particular channel.
3. Decide when an order reserves stock
There are three common moments to take stock out of "available":
| Moment | Benefit | Risk |
|---|---|---|
| When the item is added to the cart | Customer never loses the item at checkout | Abandoned carts lock stock; needs a time limit |
| When the order is placed, before payment | Protects stock during payment | Unpaid orders must release stock when payment expires |
| When payment is confirmed | Stock only moves for real sales | Two buyers can race for the last unit during payment |
There is no universally right answer. Low-volume stores with unique items often reserve at order placement with an expiry. High-volume stores with plenty of stock often deduct on confirmed payment. What matters is that the rule is written down and the system follows it every time.
4. Treat the payment notification as the source of truth
When a customer pays, the browser is redirected back to your "thank you" page. That redirect is not proof of payment: the customer may close the tab, lose signal, or tamper with the page. Payment gateways solve this with a server-to-server notification, often called a webhook.
Midtrans, an Indonesian payment gateway, sends these notifications as HTTP POST requests to a URL you configure, and includes a signature key so your server can confirm the message came from Midtrans. Its documentation also advises checking any payment status shown in the browser against the Midtrans API, because the customer can alter it. Other gateways work on the same principle.
In practice: mark an order as paid only when your server has received and verified the gateway's notification, and make that handler safe to run twice, because notifications can arrive more than once.
5. Map the order's life after payment
Write down every status an order passes through and who or what moves it: paid, picking, packed, shipped, delivered, returned, refunded. For each status, decide:
- which system changes it (website, warehouse, courier integration, a person),
- what the customer is told (email, WhatsApp, order page),
- what happens to stock and to the books.
Returns and cancellations deserve the most attention. A refunded order that never returns its units to available stock is a slow leak that only shows up at the next stock count.
The planning checklist
Use this list in your first meeting with whoever builds the store. If an item has no answer yet, that is the work to do before design.
- Product data: one master list of SKUs, variants, prices, weights and images, with one person responsible for it.
- Stock owner: the single system that holds the real quantity per product and per location.
- Sync direction and timing: which systems push changes, which pull, and how quickly. "Every few minutes" and "instantly" lead to different builds.
- Reservation rule: when an order takes stock out of available, and when it releases it.
- Payment confirmation: server-side notification, verified, safe to receive twice.
- Order statuses: the full list, who changes each one, and what the customer sees.
- Shipping: how rates are calculated at checkout so the total does not change at the last step.
- Channels: which marketplaces or outlets share the same stock, and which channel wins when stock is low.
- Feeds and structured data: if you advertise products, availability on the page, in structured data and in your product feed must come from the same number.
- Access: who can change prices and stock, and who can only view orders.
- Failure handling: what happens when a sync fails or a marketplace is down, and who gets alerted.
- Reporting: where the owner sees today's orders, stock alerts and payments in one place.
Platform, integration or a custom build
There are three broad ways to get there.
An e-commerce platform as the hub. Hosted platforms handle catalogue, cart, checkout and basic inventory well. They suit a business whose website is the main or only channel, and whose stock rules are standard.
A platform connected to your existing systems. If stock already lives in an ERP or warehouse system, the store becomes one channel among several. The work is mostly in the integration: mapping SKUs, choosing sync timing and handling failures.
A custom store built around your operation. This makes sense when your process is unusual, for example made-to-order products, stock shared across outlets with their own rules, or orders that must flow into an internal system your team already uses.
If you are unsure whether your operation has reached the point where stock and orders need one shared system, our article on when a business needs an ERP gives eight signs to check.
How we plan this at Kaff Labs
Our online store service is built around one idea: catalogue, cart and checkout on your own domain, with stock and orders connected to your marketplaces and warehouse. That shapes the order we work in.
- We draw the order's journey first, from the first click to the stock count, before any screen is designed. Most of the risk sits in the handovers between systems, not in the pages.
- We agree on one stock owner and one reservation rule, and write them into the scope so they are tested, not assumed.
- We build the payment and order handlers early, then test them with failed, expired, duplicated and refunded payments, because those are the cases that cause support tickets.
- We give the owner one view of today's orders, payments and low-stock alerts, the same principle we follow in Kaff OS, the internal system our own team uses every working day.
If customers ask about stock or order status in chat, the same data can feed a WhatsApp AI agent for customer service, so answers come from the system rather than from someone checking a spreadsheet.
Frequently asked questions
Can I connect my website and marketplaces to one stock?
Yes, as long as one system owns the stock number and the others read from it or report sales to it. Many large marketplaces document an API for sellers' software, or work with integration partners; check what yours offers. The hard part is agreeing on timing and on what happens when a sync fails.
How fast does stock need to sync?
It depends on how quickly your stock runs out. For slow-moving items, updates every few minutes are usually enough. For limited stock or flash sales, you need near-instant updates and a reservation rule, or you will oversell.
Is the payment redirect enough to confirm an order?
No. Use the payment gateway's server-to-server notification, verify it, and only then mark the order as paid. The redirect is for the customer's experience, not for your records.
What should I prepare before talking to a developer?
Your product list with SKUs, a note of where stock is counted today, every channel you sell on, and a simple sketch of what happens to an order after payment. That is enough to scope a first phase.
Where to start
Take the twelve-point checklist above and answer it with your team, even roughly. The gaps you find are the real scope of your e-commerce project. If you want help turning those answers into a plan, see what Kaff Labs builds or book a call with our team.
Sources:


