E-commerce15 min read•

Ecommerce Website Development in Pune: Syncing Stock Between Your Shop, Billing Software and Online Store Without Overselling

How to sync stock between a shop, billing software and an online store: choose the stock master, pick a sync pattern, prevent overselling and test before launch.

#ecommerce inventory sync#overselling#Tally integration#ecommerce website development Pune

If you sell the same products from a physical shop and an online store, the website should never be the place where you discover that a product has already been sold. The fix is to decide which system owns the stock number, send every sale and every purchase receipt to that system, and let the website read from it on a schedule or through live notifications, with a small safety buffer so two customers cannot buy the last unit at the same time. This guide is for retailers and wholesalers who are planning ecommerce website development in Pune and already run a billing, accounting or point-of-sale system such as Tally, Zoho Inventory, Busy or a retail POS. It explains the options, what each costs you in effort and risk, how to prevent overselling and how to test the integration before the first festival rush.

It covers why overselling happens, the choice between the website and the back-office as the master of stock, the three integration patterns (manual upload, scheduled sync and event-driven sync), how SKUs and variants must be prepared, how to handle reservations and cancellations, a safety-stock rule, what to do when the sync fails, platform notes for Shopify and WooCommerce, and a test plan and developer brief. It does not quote integration prices, because they vary with the software you use and the number of stock locations; ask for a written scope and a fixed list of deliverables.

Why Online Stores Oversell, and Why It Hurts

Overselling means accepting an order for stock you do not have. In a business with one shop and one website it usually happens in one of four ways.

  1. Delay. A customer buys the last item in the shop at 4:00 pm, but the website only learns at the nightly update. For several hours the product shows as available.
  2. Two systems, two numbers. Staff adjust stock in the billing software, and someone else adjusts it in the website admin. Neither knows about the other, and the numbers drift apart.
  3. Race condition. Two customers add the last unit to their carts and both pay within seconds. If the site checks stock only when the item is added to the cart, both orders go through.
  4. Returns and cancellations. A cancelled order should put stock back; an unpaid order should release its reservation. If either is missed, the website shows less than you have, which is a quieter version of the same problem: lost sales.

The cost is not only an apologetic phone call. A cancelled order after payment means a refund process, a disappointed customer and possibly a negative review. Marketplaces and ad platforms can also penalise sellers whose listings are frequently out of stock. If you advertise products that are not available, you pay for clicks you cannot convert; our guides on Google Merchant Center and Meta catalogue ads explain how out-of-stock items reach ads and what to do about it.

Step One: Decide Which System Owns the Stock Number

Every integration begins with one decision that has nothing to do with software: where is the true stock count kept? There are three arrangements, and only the first two are safe.

Option A: The back-office system is the master

Your billing, accounting or inventory software holds the truth. Every shop sale, purchase receipt, stock transfer and return is entered there. The website reads the number and never changes it directly, except to tell the back-office that an order was placed. This suits businesses with an established billing routine, several staff entering stock and a need for accounting accuracy. It is the common choice for retailers and distributors that already use Tally or a similar package.

Option B: The website platform is the master

If the online store is the main channel and the shop is secondary, stock can live in the ecommerce platform, and a point-of-sale tool that connects to it records shop sales there. Shopify, for example, supports stock at multiple locations and has point-of-sale options for physical stores. This suits businesses that are building their operation around the web store and are willing to run billing from it.

Option C: Two masters (do not do this)

If staff can edit stock in both places and no rule says which wins, the numbers will diverge. Some businesses try to reconcile weekly by hand. That works for a handful of products and fails when the catalogue grows. If you are in this state today, choose A or B before building anything else.

Write the decision down in one sentence, for example "Stock is mastered in the billing software; the website receives stock levels and sends back orders." Every later discussion with a developer refers back to it.

Step Two: Choose an Integration Pattern

There are three broad patterns. They differ in cost, speed and the way they fail.

Pattern How it works Typical delay Best for Main risk
Manual file upload Export stock from back-office as CSV, import into the website Hours to a day Under a few hundred SKUs, low sales volume Human forgetfulness, overselling between uploads
Scheduled sync A small program or connector pulls stock from the back-office at fixed intervals and updates the site Minutes to an hour Most small and mid-sized stores Overselling inside the interval, silent failures
Event-driven sync Each stock change or order triggers an immediate message between systems Seconds Fast-moving or limited-stock products, higher volumes More complex build, needs monitoring and retry logic

Manual upload: honest and cheap

Do not dismiss it. For a store with a small catalogue and a few orders a day, a daily CSV import done by a named person at a fixed time is sensible, as long as you pair it with a safety buffer (below) and you only list in stock what you can reliably supply. Shopify and WooCommerce both support product and inventory import through CSV files; their documentation describes the file format and the columns that update stock. The danger is that the process depends on a person and stops when that person is on leave.

Scheduled sync: the usual answer

A connector reads stock from the back-office system on a schedule, often every ten to thirty minutes, and writes it to the site. The way a connector gets data depends on the software: some back-office packages offer an API or a cloud service, some can export files to a shared folder, and some older desktop programs expose data only through a local connection or an add-on. Tally, for instance, can exchange data through XML requests to a running instance or through ODBC, which is why integrations with it usually run as a small program on the shop's own computer. Ask your vendor and the developer to confirm what your exact version supports; do not assume.

Event-driven sync: fast, but earn it

When a sale happens, the system that records it sends a message to the other. Shopify offers webhooks that notify your own system when an order is created, and WooCommerce offers webhooks too. If the back-office has an API, the website can call it as well. The result is that the stock number is accurate within seconds. The costs are more build effort, the need for retries when one side is down and the discipline to log every message. Choose it when you sell limited quantities, run flash sales or have enough volume that a thirty-minute gap would regularly cause problems.

A hybrid usually works best

Many stores do a scheduled full sync every hour as a safety net, plus event messages for each order so that the stock drops immediately after a sale. If an event is lost, the next full sync repairs the number. This "events for speed, snapshots for correctness" design is worth asking for by name.

Step Three: Prepare the Data Before Writing Any Code

Most failed integrations fail on data, not on code. Before the developer starts, clean the following.

  • One SKU per sellable variant. Every product-size-colour combination needs a unique SKU that is identical in both systems. If the shop's software has "Blue Kurta M" and the website has "KURTA-BLU-M", a person must map them, and the map must be kept up to date. Choose a SKU scheme and apply it to both.
  • No duplicates and no blanks. Products without SKUs, or two items with the same SKU, are the commonest source of wrong stock. Our guide to preparing product catalogue data covers this clean-up, and the variant structure is covered in size charts, variants and fit guides.
  • Decide how to treat bundles and kits. A gift hamper made of five items is either its own SKU with its own stock or a bundle whose availability is the minimum of its components. Decide, and tell the developer.
  • Decide units. Items sold by weight or length need a rule for fractions, minimum order and unit conversion between the shop and the website.
  • Decide which locations count. If you have two shops and a warehouse, does the website sell from all of them, or only from one? Shopify supports stock at several locations and lets you choose which ones are available online; WooCommerce core tracks a single stock number per product, so multi-location stock usually needs an extension or custom work. Check the current documentation for your platform.
  • Agree what "available" means. Should items on hold for a pending shop order, or in quality check, appear as available online? Define it.
  • Fix the opening stock. Do a physical count and load the correct opening balance before go-live. A sync is only as good as its starting point.

Step Four: Stop Two People Buying the Last Unit

Even a perfect sync cannot prevent a race between two customers if the store only checks stock at the wrong moment. Good practice has three parts.

Check stock at the right moments

The website should check availability when an item is added to the cart, again when the customer begins checkout and, critically, at the moment of placing the order. The final check must be authoritative and must decrease the stock number atomically, in a way that prevents two simultaneous orders both succeeding. Shopify and WooCommerce handle the basic decrease themselves for stock they hold; a custom build must implement it deliberately.

Reserve stock for a short time during payment

When the customer is sent to the payment page, the unit can be held for a limited period, such as a quarter of an hour, and released if payment fails or times out. Without a hold, a customer may pay for something that has just sold. With a very long hold, abandoned checkouts lock up stock. The right period depends on how long your payment flow takes; with UPI and bank redirects, allow enough time for app switching. Our article on fake orders and bot checkout protection explains why bots that hold stock without paying are a real threat to limited items.

Use a safety buffer for scarce items

If the shop and the website share a small stock of a popular item, hold back a few units from online sale so that a delay between systems does not oversell. Express it as a rule: "For items with fewer than N units in stock, show N-1 to the website" or "keep 2 units for the shop." Pick the number by looking at your own sales speed and your sync interval. If you sell five units of a product per hour on busy days and sync every thirty minutes, a buffer of at least a few units is sensible. There is no universal figure, and we are not offering one.

Step Five: Send Orders Back to the Back-Office

Stock is one half of the integration; orders are the other. For accounting, invoicing and dispatch, each website order must appear in the back-office system, usually as a sales order or invoice with the customer, items, prices, taxes and shipping lines. Several rules matter.

  • Idempotency. If the same order is sent twice because of a retry, it must not create two invoices. The order number from the website should be stored in the back-office record and checked before creating a new one.
  • Status mapping. Decide how website states (paid, pending, cancelled, refunded) map to back-office documents. A cancelled order must reverse the stock movement.
  • Customer matching. Decide whether each web customer becomes a back-office contact, or all online orders post to a single "web sales" account. The first gives better records and takes more matching effort.
  • Shipping and dispatch. If a courier or aggregator is connected, make sure the tracking number reaches both the order record and the customer. Our guide to delivery estimates, courier options and order tracking describes the storefront side of that.

Step Six: Plan for Failure

Integrations break. The back-office computer is switched off, an API key expires, a platform changes its interface, the internet drops in the shop. The question is not whether, but what happens next.

  • Retries with a limit. A failed message is retried several times with increasing delays, then moved to a "failed" list that a human reviews.
  • A daily reconciliation report. A short report comparing the stock numbers in both systems for every SKU, listing mismatches. Review it each morning for the first month, then weekly.
  • Alerts. If no sync has succeeded for more than a set period, an email or WhatsApp message goes to a named person. Silent failure is the worst case, because everyone assumes the numbers are right.
  • A kill switch. The ability to mark all products as "contact us to order" or pause checkout for chosen categories while you fix a problem, which is better than accepting orders on bad data.
  • Logs. Each stock update records time, SKU, old value, new value and source. When a customer complains, you can see what happened.
  • Backups before bulk changes. Export the full product and stock list before any large import. See also our website backups and disaster recovery guide.

Platform Notes: Shopify and WooCommerce

These notes are general; check the platform's current documentation before you commit.

Shopify tracks inventory per variant and per location, lets you choose where each product is stocked and offers an API and webhooks for developers, as well as apps that connect to common accounting and inventory tools. Because Shopify holds the stock for its own products, the integration pattern is often "back-office pushes stock to Shopify" and "Shopify pushes orders to the back-office". Look closely at app reviews and ask the app vendor which Indian accounting software it supports, since many apps are built for overseas software only.

WooCommerce manages stock per product or variation, with a setting to enable stock management, and exposes a REST API and webhooks. Because WooCommerce runs on your own hosting, plugin quality and server performance affect how reliably a scheduled sync runs; a sync that triggers a heavy update on a slow server can slow the site. Our article on WooCommerce high-performance order storage explains how order data is stored in newer versions, which matters if a connector reads orders directly from the database, and our Shopify versus WooCommerce comparison helps when the platform choice is still open.

For stores that also sell wholesale at different prices and minimum quantities, stock rules interact with trade pricing; see wholesale and B2B ordering.

A Worked Example With Assumed Numbers

The figures are invented to show the reasoning; they are not benchmarks. A home-décor retailer has a shop and a web store and a catalogue of 600 SKUs. Billing runs on desktop accounting software in the shop. On a normal day the shop sells many items and the website sells a few. During a festival sale the website sells faster than the shop.

The owner chooses Option A, with the back-office as master. The developer sets up a connector that runs on the shop computer and pushes stock to the website every fifteen minutes, and the website sends each new paid order back as a sales order. For the thirty most popular items, the website shows two fewer units than the back-office, as a buffer. During the sale week, the store reduces the sync interval and the team reviews the reconciliation report morning and evening. A failed sync triggers an email to the store manager. If the shop computer is off at night, the website continues selling from the last known stock, which is acceptable for slow items and is why scarce items carry the buffer.

Test Plan Before Go-Live

  1. Load the opening stock and compare 20 sample SKUs against a physical count.
  2. Sell one unit in the shop and confirm the website number falls within the expected delay.
  3. Sell one unit on the website and confirm the back-office stock and sales order update.
  4. Place two simultaneous orders for the last unit from two devices and confirm only one succeeds.
  5. Abandon a checkout and confirm the reservation is released after the set period.
  6. Cancel a paid order and confirm stock returns and the back-office document is reversed.
  7. Process a return and confirm stock and records update as intended.
  8. Switch off the back-office connector for an hour and confirm the alert fires and orders are handled safely.
  9. Send the same order message twice and confirm no duplicate invoice.
  10. Run a bulk import on a copy of the store, then restore from a backup.
  11. Review the reconciliation report and explain every mismatch.

What to Put in the Written Brief

Give your developer, or any company you are comparing for ecommerce website development, a one-page brief:

  1. The stock master decision and the reason.
  2. The name and version of the back-office software, and who supports it.
  3. The number of SKUs, variants and stock locations.
  4. The sync pattern and interval wanted, and the products needing faster treatment.
  5. The reservation period and the safety-buffer rule.
  6. The order-to-back-office mapping, including cancellations and returns.
  7. Failure handling: retries, alerts, reconciliation report and kill switch.
  8. Who owns the connector's credentials and code, and how it will be maintained. See our website handover checklist.
  9. The test plan above, signed off before launch.

If you also want customers to check availability and ask questions over chat, our WhatsApp commerce page and checkout system service describe related work.

Frequently Asked Questions

How do I sync inventory between my shop and my online store?

Choose one system as the master for stock, usually your billing or inventory software, and send every sale and receipt to it. The website then reads stock by scheduled sync or event notifications, and sends its orders back. Start with a clean, matching SKU list in both systems.

How often should website stock be updated?

It depends on how fast you sell and how scarce the products are. A sync every ten to thirty minutes suits many small stores, while limited or fast-moving items may need event-driven updates within seconds. Pair any interval with a safety buffer and a daily reconciliation report.

Can Tally be connected to Shopify or WooCommerce?

Often yes, through connectors or custom integrations that exchange data with Tally using its supported interfaces. What is possible depends on your Tally version and setup, and on whether it runs on a local computer. Ask the connector vendor to confirm in writing which stock and order functions they support.

How do I stop two customers buying the last item?

Check stock again at the moment the order is placed and decrease it atomically, hold the unit briefly while the customer pays, and keep a small safety buffer for scarce items. Platforms such as Shopify and WooCommerce handle the basic decrease; custom builds must implement it deliberately.

What happens if the sync stops working?

Without monitoring, the website keeps selling from outdated numbers. Set up alerts for failed syncs, a daily comparison of stock in both systems and a way to pause checkout for affected products. Decide beforehand who responds and how quickly.

Where to Start

Write the one-sentence stock-master decision, then export your product list from the billing software and from the website and compare SKUs line by line. The mismatches you find are the real scope of the project, and they tell you whether you need a simple scheduled sync or something faster.

Govindani Infotech is a website design and development company in Pune, at Landmark Plaza, Satara Road, Parvati Paytha. We build and integrate online stores on Shopify, WooCommerce and custom stacks; see our ecommerce development services and website creation services. To discuss your stock setup, contact us or call 092019 58274.

Sources:

Need Help With Your Digital Strategy?

Govindani Infotech helps Indian businesses and NGOs build websites, run ads, and grow online. Contact us for a free consultation.