---
title: What Should a Grocery App Do When an Item Is Out of Stock?
description: "How grocery apps should handle out-of-stock items: checkout preferences, substitute rules, approval deadlines, refunds and the store screen that ties it up."
url: https://miracuves.com/blog/grocery-app-out-of-stock-management-guide
date_modified: 2026-11-16
author: Miracuves Editorial Team
language: en_US
---

*Written by the Miracuves Editorial Team. Reviewed by [Yash Narayan](https://miracuves.com/author/yash-narayan/), SEO Associate, Miracuves.*

    
        
### Key Takeaways

        
- Live inventory sync cuts stockouts but cannot remove them. Store stock records are often wrong, so every grocery app needs a defined path for an item that is missing at packing time.
- Ask once, at checkout: one visible basket-wide default plus item-level overrides for products that need care, such as baby food, allergy-sensitive items and brand-specific goods.
- A pending approval should never stop packing, and silence is never approval. Every unresolved item needs a published fallback before the basket is handed to the driver.
- A substitution is not finished until the money is: price difference, coupons, delivery thresholds, weighed items and refunds that cannot fire twice.
- Judge the workflow by complaints, refunds and packing delay per store and category, not by how many replacements customers accepted.

    

A customer pays for a dinner basket: vegetables, cooking oil and one particular brand of pasta. Twenty minutes later a picker stands in front of an empty pasta shelf. Whatever your app does next, whether it swaps the brand, drops the item, phones the customer or freezes the order, decides whether that customer orders again.

This guide is for founders and product leads building or fixing a grocery delivery app. By the end you should be able to specify what the customer sets at checkout, what the store screen does when an item is missing, how long the app waits for an answer, what happens to the payment, and which numbers tell you the process works.

Stockouts cannot be designed away, especially when the same shelf serves walk-in shoppers and online orders. What you can design is the decision that follows, so that every replacement, removal or refund follows a rule the customer agreed to.

## Why Items Still Run Out After the Customer Pays

![Grocery shopping bag with out-of-stock sign highlighting customer experience, store operations, and business performance problems.](https://miracuves.com/wp-content/uploads/2026/11/grocery-app-out-of-stock-customer-experience-store-operations-1024x575.webp)

It is tempting to assume that connecting store inventory to the app solves the problem. It narrows it. A live stock count is only the latest number the system knows, not proof that the item is on the shelf, undamaged and reachable by the picker.

Three things break the link between the number and the shelf:

- **Timing.** The app shows five boxes of a cereal. Two app customers buy three, a walk-in shopper takes two, and the point-of-sale update lands a few minutes late. One online order reaches packing short.
- **Phantom inventory.** The system records stock that cannot be found or sold because of scanning mistakes, misplaced or damaged goods, or unrecorded shrinkage. Refreshing the count does nothing; someone has to correct it.
- **Store-level differences.** In a multi-store marketplace the same drink can be in stock at one store and gone at another. A product held by a distant store is not a valid substitute unless that store can actually fill this order.

Record errors are not rare. In a study published in Management Science, [Nicole DeHoratius and Ananth Raman examined nearly 370,000 inventory records from 37 stores of one retailer and found 65% of them inaccurate](https://ideas.repec.org/a/inm/ormnsc/v54y2008i4p627-641.html). That is one retailer and an older dataset, but it explains why a stock feed alone will not keep orders whole.

Log every “item not found” event with the SKU, store and time. Repeated misses on the same product or store point to a catalog, counting or integration problem, which substitution logic cannot fix. Our piece on [**dark-store inventory management and product waste**](https://miracuves.com/blog/profit-problem-in-15-minute-grocery-delivery/) covers the replenishment side. The rest of this guide deals with the order that has already been hit.

## What Instacart, Walmart and DoorDash Already Do

The large grocery apps publish how their substitution choices work, which gives you a tested starting point. The table summarizes each company’s own help, newsroom or developer pages as of November 2026. Labels and policies change, so treat it as a snapshot.

| Platform | Where the choice is made | Options the customer gets | What happens to a missing item |
| --- | --- | --- | --- |
| [Instacart](https://www.instacart.com/help/section/360007902831/360039162252) | Per item in the cart, editable until checkout | Replace with best match (the default if the customer picks nothing), up to 3 specific replacements, or a refund | The shopper replaces or refunds the item, the customer is alerted if notifications are on, and the price difference is charged or refunded |
| [Walmart](https://corporate.walmart.com/newsroom/2021/06/24/headline-how-walmart-is-using-a-i-to-make-smarter-substitutions-in-online-grocery-orders) | A substitute suggested by a deep-learning model, which the customer is asked to approve in advance | Approve the suggested item or say they do not want it | The answer settles the item and is fed back into the model |
| [DoorDash](https://developer.doordash.com/en-US/docs/drive/how_to/Drive_DSX/how_to_subs_other_shopping_use_cases/) | Retailers using DoorDash Drive set a preference per item in the delivery request | “Contact” (the Dasher reaches the customer to agree a substitute) or “refund” | Items that are not found or not substituted are refunded |

Three patterns repeat. There is always a default, so no order stalls on a missing answer. The customer can override that default for one item. And the money follows the decision without a support ticket: a refund for a removed item, a charge or credit for a price difference.

Walmart’s [June 2021 description](https://corporate.walmart.com/newsroom/2021/06/24/headline-how-walmart-is-using-a-i-to-make-smarter-substitutions-in-online-grocery-orders) of its model lists what it weighs: size, type, brand, price, aggregate shopper data, individual customer preference and current inventory. Walmart reported that customer acceptance of substitutions rose to over 95% after the system launched. That figure is company-reported and comes with no baseline, so treat it as a direction, not a launch target.

The checkout design matters as much as the model. In [Baymard Institute usability testing published in January 2022](https://baymard.com/blog/grocery-substitutions), 76% of users had at least some difficulty with substitutions, and setting preferences item by item took some of them upwards of 10 minutes. Baymard recommends one global option that is visible by default, and asking per item only when that item is actually at risk of being unavailable.

## The Workflow, From Checkout to Handover

Real-time does not mean every substitution is automatic. It means the system catches each stockout, applies the right rule and tells everyone the current state before the basket leaves the store. The diagram shows the six stages after an item goes missing; the preference step at checkout comes before all of them.

### A Practical Substitution Decision Flow

**1. Item unavailable:** The store identifies the stockout during packing.

**2. Preference checked:** The platform reads the customer’s replacement instructions.

**3. Alternative verified:** A suitable, currently available product is identified.

**4. Decision requested:** The customer approves, rejects, or relies on prior authorization.

**5. Order adjusted:** The item, quantity, price, and payment status are updated.

**6. Fulfillment continues:** The store completes the basket and prepares it for delivery.

![Six-step grocery app out-of-stock substitution workflow, from marking an item unavailable to approval, order adjustment and handover](https://miracuves.com/wp-content/uploads/2026/11/miracuves-131561-1-substitution-flow.webp)A substitution workflow connects the packing floor, the customer’s preferences and the final payment in one sequence.

### Before the order: one default, a few overrides

The cheapest moment to learn what a customer wants is before anything is missing. Offer four choices, at basket level and per item:

- **Use my selected alternative:** the store uses a product the customer picked, if it is in stock.
- **Ask before replacing:** the store proposes an alternative and waits for approval.
- **Allow comparable alternatives:** the store may substitute within set product and price limits.
- **Do not replace:** the item is removed and the payment adjusted.

Make the basket-wide choice visible at checkout without opening a menu, prefilled with whatever the customer chose last time. Put an “If out of stock” control on the product or cart line only for items flagged as low in stock. A customer might allow any comparable dish soap while insisting on approval for every food swap; the design should let them say that in two taps, not twenty.

![Four grocery app replacement preferences set at checkout, compared on what happens to a missing item and when no reply comes](https://miracuves.com/wp-content/uploads/2026/11/miracuves-131561-2-checkout-options.webp)A basket-wide default with item-level overrides keeps checkout short; Baymard Institute research supports the same pattern.

### Stages 1 and 2: mark the item missing, read the rule

The picker scans each item as it goes into the bag. When something cannot be found, one action on the packing screen marks that exact order line unavailable, recording SKU, variant, requested quantity, store and order ID. The picker should never have to cancel the order or leave the screen to report a stockout.

The platform then reads the customer’s rule for that line: the item override if there is one, otherwise the basket default.

### Stage 3: filter first, then rank

Candidates come from the same store’s live stock. Run hard exclusions first: allergens, dietary flags such as lactose-free or vegan, wrong product use, size outside the allowed range, price above the customer’s limit, and anything already reported missing. Only then rank what is left by brand preference, pack size, unit price and past approvals.

The order matters. A customer who ordered unsweetened almond milk should never be offered sweetened dairy milk because both sit in “beverages”, and no similarity score should outrank a dietary exclusion. When catalog data is too thin to judge, ask the customer instead of guessing. A new platform can launch with these rules alone and add learning from approvals and rejections once they have order history, always with consent and an editable preference screen.

### Stage 4: an approval request a customer can answer in one tap

The notification should show the missing item, the proposed item with image and pack size, the price difference and the deadline, with Approve and Reject buttons in the notification itself. For example: “Your 500 g pasta is unavailable. The store suggests a 500 g alternative for ₹15 more. If we do not hear from you in 5 minutes, we will refund this item.” The 5 minutes is illustrative; set the window from your delivery promise, shorter for rapid delivery and longer for a scheduled slot.

### Stage 5: keep packing, then adjust the order

One open line should not stop the rest of the basket. The store screen parks it in a “pending” state, keeps it visually separate from confirmed items and blocks the order from being closed until it is resolved. Staff use the customer’s response time to pack everything else.

Once decided, the order records the substitute SKU, quantity, price difference, tax, discounts and new total. The money rules are covered in their own section below.

### Stage 6: close the basket, then hand over

The customer gets an updated summary: original items, accepted replacements, removed items and the payment change per line. The driver gets a collection task, not an open conversation. In store-packed grocery, the driver collects the finished basket and does not make product decisions, which keeps it clear who authorized each change.

## Match the Rule to the Product

One rule for the whole catalog either annoys customers with questions or delivers the wrong thing. Combine the customer’s choice with a risk category on each product, so the store’s default for baby formula is never the same as its default for table salt. A starting framework:

| Product type | Suggested default | What the match must respect |
| --- | --- | --- |
| Packaged staples | Selected or closely comparable replacement | Size, brand, ingredients and unit price |
| Fresh fruit and vegetables | Ask, or follow a saved preference | Variety, ripeness and weight |
| Dairy and dairy alternatives | Strict attribute match; ask when unsure | Ingredients, dietary restrictions and storage |
| Baby and specialized nutrition | Exact match or explicit approval only | Suitability and safety |
| Household cleaning | Comparable alternative within limits | Formulation, use, size and price |
| Premium or brand-specific | Customer-selected substitute or ask | Personal preference and value |

This is a policy starting point, not a rule. The right setting depends on your product data, local consumer rules and how well the store can check a replacement’s quality.

## When the Customer Does Not Answer

Unanswered requests need the most careful design. The customer is driving, in a meeting or asleep, and the delivery slot is coming. The app needs a deadline and a fallback that the customer saw before they ordered:

- **Pre-authorized replacement:** use it if it is still in stock and within the agreed limits.
- **Approval required:** never treat silence as a yes. Remove and refund the item.
- **Do not replace:** remove the item and adjust the order; there is nothing to ask.
- **Notification failed:** log each attempt, send at most one reminder, and do not spam duplicates.

Late answers need a rule too. If the customer taps Approve after the basket has been closed, the system must check the order state and reply that the item was refunded, not quietly reopen a finished order.

### One order, three missing items

A hypothetical 18-item order reaches packing with three gaps. The cereal has a pre-selected alternative of the same size, which is in stock, so the store uses it. The fresh coriander has a comparable bunch, but the customer asked for approval on produce, so a request goes out. The lactose-free milk has no verified lactose-free match, so it is removed instead of swapped for regular milk.

Staff pack the other 15 items while the herb request is open. The customer rejects it, so it is removed too. The final summary shows one replacement and two refunds, and the store checks the bag against the order record before handover. Not every item arrived, but nothing arrived that the customer did not agree to.

## Getting the Money Right

Customers who are happy with a replacement still complain about a surprise charge. Each case needs its own rule:

- **Replacement costs more.** Show the difference before approval unless the customer set a price tolerance. If the original costs ₹120 and the substitute ₹145, the request says “₹25 more”, and the system checks that the card authorization covers the new total. If it does not, the app asks for approval of the higher amount or refunds the item; it never assumes it can collect more.
- **Replacement costs less, or the item is removed.** Reduce the captured amount, issue a partial refund, or lower the cash-on-delivery total, depending on how the payment was taken. Recalculate tax and line discounts.
- **Basket rules change.** Removing an item can push the order below a free-delivery threshold or break a coupon’s minimum. Decide in your published policy whether the original benefit is kept, so staff never decide it case by case.
- **Weighed items.** Produce and meat are priced on packed weight, which already differs from the checkout estimate. If a substitute changes both the product and the weight, the order needs the new unit price and the verified weight, and the summary must show both.

Keep separate reason codes for “not found”, “customer rejected substitute” and “picking error”. They tell you whether lost revenue comes from inventory accuracy, catalog quality or customer preference. Test with realistic baskets that combine coupons, taxes, weighed items, two stockouts and a partial refund; a single-item test proves very little.

## What the Store Screen and the Backend Must Guarantee

Customer screens get the attention, but the store panel is where shortages are handled. If staff cannot report a missing item quickly or see what was approved, the customer experience fails however good the app looks. The store panel needs four things: a one-tap unavailable action on the exact order line, a queue of pending, approved, rejected and expired decisions so a supervisor can see orders at risk of missing their slot, the approved product and quantity shown as structured data rather than a chat message, and an audit record of who reported the shortage, what was proposed and what the customer said.

Behind those screens, the platform should guarantee five things:

1. **A state machine per line.** Each substitution moves through defined states: unavailable, proposed, awaiting approval, approved, rejected, expired, finalized. Version the order so an answer to an outdated proposal cannot change a newer one, and nothing changes after finalization.
2. **Notifications are messages, not consent.** A delivered push proves nothing. The approval is the record saved in the order system, so a late, duplicated or hidden notification cannot change the outcome.
3. **Re-check stock before finalizing.** Several orders may want the same last few units of a popular substitute. Reserve or re-validate stock, or require a physical scan, before the swap is final. Customer approval is not proof the item exists.
4. **Payment actions safe to retry.** Use idempotency keys on captures and refunds so a network retry cannot charge or refund twice, and show a total as settled only after the payment provider confirms it.
5. **Offline-tolerant store app and limited access.** A dropped store connection should not create duplicate actions or lose a recorded decision. Purchase preferences and approval records are customer data: limit access by role and log changes.

## How to Tell Whether It Is Working

![Grocery basket with vegetables, milk, and warning symbol representing common mistakes in product substitution workflows.](https://miracuves.com/wp-content/uploads/2026/11/common-grocery-product-substitution-mistakes-1024x576.webp)

A substitution feature can process thousands of swaps and still lose customers. The usual causes are swapping without clear consent, treating a shared category as a match, asking too many questions at checkout, letting one open line block a basket, and forgetting the payment side. Track these together:

| Metric | Definition | What it reveals |
| --- | --- | --- |
| Stockout incidence | Ordered lines reported unavailable, as a share of all lines | Inventory accuracy by store and category |
| Acceptance rate | Approved replacements divided by proposals the customer actually received | Whether suggestions fit |
| Response time and expiry rate | Time to decision; share of requests that time out | Notification and deadline problems |
| Item fill rate | Lines delivered, with substitutes counted separately | How much of the original basket arrives |
| Stockout refunds and complaints | Refunded lines and complaints linked to substitutions | Lost basket value and real satisfaction |
| Added packing time | Extra minutes on orders with a substitution | Cost to delivery promise |

Read them together. A high acceptance rate can hide unhappy customers who approve poor swaps under time pressure, and a store with repeated misses despite healthy stock counts has a stock update problem, not a recommendation problem. Once you have enough history, compare support contacts, refunds and repeat orders on baskets with and without substitutions, controlling for basket size, store and category.

## Where to Start

Not every grocery business needs the full system on day one. The signals below show which part to build first:

#### High Stockout Frequency

If unavailable products affect many orders, investigate inventory accuracy and introduce clear replacement decision rules.

#### Complex Catalog

If products have dietary, size, brand, or freshness constraints, prioritize detailed matching and customer approval.

#### Fulfillment Delays

If stores wait for replacement responses, introduce pending-item queues, deadlines, and defined fallback actions.

#### Customer Complaints

If shoppers dispute replacements or final charges, improve consent, order transparency, and payment reconciliation.

A practical order for an existing operation: first, review recent “not found” records by store, category and time of day, and separate real shortages from catalog and picking errors. Second, publish the permission rules: what can be swapped with prior consent, what needs approval, what is removed. Third, give the store panel the unavailable action, the pending queue and the audit log. Fourth, test the ugly paths: rejection, no answer, a second stockout, a failed notification, a weight change, a partial refund, a duplicate message and a late approval. Only then tune recommendations with real order data.

A small single-store operation can launch with saved preferences, a clear store alert and a published refund rule. A marketplace with many independent stores needs central approval rules, audit logs and per-store reporting from the start. In both cases, a clear, dependable process beats clever automation built on stock data nobody trusts.

## Where Miracuves Fits

Miracuves offers a [**ready-made grocery marketplace foundation**](https://miracuves.com/instacart-clone/) with customer, store and delivery apps, admin panels and full source-code ownership. The ready-made deployment takes six working days for the agreed standard scope. The useful conversation is which parts of the workflow above that foundation already covers in your setup, such as inventory alerts, order instructions, store workflows and refund controls, and which need to be configured or built.

Item-level approval rules, ranked substitute suggestions and multi-step payment reconciliation are scoped separately against your stores, integrations and payment provider rather than assumed to be standard. Where you need them, our [**grocery delivery app development**](https://miracuves.com/service/grocery-delivery-app-development/) team builds them on top of the foundation, so you can launch first and add the harder parts once real order data shows where stockouts hurt.

  

    Miracuves

    
      Keep grocery orders moving with smarter real-time product substitutions.
    

    
      Explore real-time inventory synchronization, intelligent replacement suggestions, shopper-to-customer communication, substitution approval workflows, price adjustments, refund handling, and order status updates for a smoother grocery delivery experience.
    

    
      
        Grocery Delivery • Inventory & Product Substitution Management
      
    

  

  

    

      

        [Chat on WhatsApp](https://api.whatsapp.com/send/?phone=919830009649&text=Hi%20Miracuves%2C%20I%20want%20to%20explore%20a%20grocery%20delivery%20platform%20with%20real-time%20product%20substitution%20workflows%2C%20including%20inventory%20synchronization%2C%20smart%20replacement%20suggestions%2C%20customer%20approval%2C%20shopper%20notifications%2C%20price%20adjustments%2C%20refund%20handling%2C%20and%20order%20fulfillment%20management.&type=phone_number)

        [Book a Consultation](https://miracuves.com/schedule-consultation/)

      

      
        Discuss inventory integration, substitution rules, customer approvals, shopper workflows, and grocery platform customization.
      

    

  

## Frequently Asked Questions

### How do grocery apps handle out-of-stock items?

Most grocery apps give every item a default instruction, such as best match, a specific replacement or a refund. When the picker cannot find an item, the app applies that instruction, asks the customer to approve a suggested substitute where approval is required, then updates the basket, the payment and the order status so the receipt matches what is delivered.

### How does Instacart handle out-of-stock items?

According to Instacart’s help center, customers set an instruction for each item in the cart. Replace with best match is selected if they choose nothing; they can also pick up to three specific replacements or ask for a refund. Customers with order notifications on are alerted when an item is replaced or refunded, and Instacart charges or refunds the price difference.

### Should a grocery app replace unavailable items automatically?

Only when the customer has clearly allowed it and the substitute meets the size, dietary, quantity and price limits they set. Automatic swaps suit low-risk staples and household goods. Baby food, allergy-sensitive items and brand-specific products should need an exact match or explicit approval, because two products in the same catalog category can still serve very different needs.

### What happens if a customer does not answer a substitution request?

The app should apply a fallback the customer saw before ordering. If approval was required and the deadline passes, the safer default is to remove and refund the item rather than deliver something unauthorized. The request itself should state the deadline and what happens when it expires, and a late answer should not reopen a basket that is already closed.

### Who pays when the replacement costs more?

The customer, but only after seeing the difference and approving it, or within a price tolerance they set in advance. The app must also check that the existing card authorization covers the new total. If it does not, the app should ask for approval of the higher amount or refund the item instead of assuming it can collect more.

### Can real-time inventory sync stop grocery stockouts?

No. It improves visibility, but shelves still differ from the system because of walk-in purchases, competing online orders, damaged goods, counting errors and delayed updates. One Management Science study found 65% of nearly 370,000 store inventory records inaccurate. Every grocery app therefore needs a substitution and refund workflow for the items that go missing after checkout.

### Do grocery apps need AI to suggest substitutes?

Not at launch. A rule-based filter that removes products breaking allergen, dietary, size or price limits, then ranks the rest by brand, pack size and price, covers most cases. Walmart has described a deep-learning model that also weighs aggregate shopper data and individual preference, data a new platform does not have yet. Add learning once your own approvals and rejections build up.

## Disclaimer

**Miracuves is an independent software development company.** We are not affiliated with, connected to, sponsored by, or endorsed by any of the brands or platforms named on this page. Names of the form “Brand Clone” are used descriptively: it is how the software industry refers to building a platform with functionality comparable to a known service, and how clients search for it. The entire design and codebase of our products is built by our own team and contains no code, design, graphics, or content originating from any third-party website or application. All third-party names and marks are the property of their respective owners. [Full Legal Notice & Disclaimer](https://miracuves.com/disclaimer/)
