● Travel Never Stops. Neither Do We. 365 Days a Year.

How to Build a Grocery Delivery App for Branch Fulfilment

Build a grocery delivery app that keeps picking, substitutions and checkout aligned when the fulfilment branch changes.

Grocery worker comparing products in a store aisle

Build the first release around one basket that moves between stores

This guide for building a grocery delivery app follows a customer who changes delivery address after putting groceries in a basket. The new address changes the fulfilment branch. An engineering lead can use this example to define what to build for the customer, the picker and the help desk before adding other sales channels. A branch shift can change product availability, per-unit prices, eligible slots and who has authority to pack the order. Give the shopper a review step that shows those differences and lets them decide whether the new basket still fits their plans.

Identify the first shopper device and store workflow. A responsive storefront can support ordering and browsing on phones. Staff might pick using a managed handheld with a barcode scanner or a web view on a store device. The help desk may need an authenticated desktop queue. Agree on which devices and browsers are supported and how staff experience weak connectivity. Keep each actor's screens tied to the same order history while showing different details. The shopper does not need another customer's stock reservation; the picker needs a dated list of accepted lines and the correct pickup location.

Separate catalogue visibility from stock authority

Use a shared item identity for a quantity of the same sellable product when the retailer supports it. Record branch identity, package or weight unit, current price version, available quantity and applicable slot. A product available at West Bank may appear in search under an earlier basket while the newly selected address serves Elm Yard. Always verify the intended branch in the supplier or retailer's stock and capacity operations. A displayed catalogue entry is useful for planning without proving that a new branch will reserve it.

Determine which system can allocate the movable basket, such as the retailer's own platform or an authorized stock service. The delivery scheduler can have a separate source for slot capacity. A price API may produce a third piece of evidence, depending on how the retailer manages its range. Map each successful response and its time. An engineering team can then choose which fields require readback and what the customer sees when one source cannot be reached. Maintain a status for unavailable evidence without simply assuming a slot was saved.

Move the draft under a tested two-branch decision

Riverbend Market is a fictional grocer. A shopper begins a basket with two cartons of oats, a fixed package of yogurt and an estimated 0.8 kilograms of loose pears. The draft belongs to West Bank under the original address. A new address can only be served by Elm Yard. The rehearsal assumes the retailer supports temporary stock and slot reservations under approved conditions, and that the current basket needs review when fulfilment changes. These are example rules for designing the workflow.

Riverbend basket and slot decisions during a branch switch
DecisionWest Bank draftElm Yard review
Two oat cartonsTwo units held under old draftOne unit available, with the rest unresolved
Yogurt packageSelected labelled packEquivalent pack at a changed price
Loose pearsEstimated 0.8 kilogramsUnavailable, apples proposed for review
Delivery windowOriginal branch slot held brieflyNew supported time range to accept
Picking jobDraft change stays off picker's queueNew branch receives one task after confirmation

When the address is verified, open a pending switch tied to the current basket revision. Show why the suggested branch and slot changed. Call the new branch under the actual supported procedure to check price and quantity; refresh the proposed window with the scheduler. If the first branch can safely retain the temporary hold while a second proposal is reviewed, choose an approved time limit. Other retailers require the old hold to be released before the new one can be attempted. Account for that behavior and show the shopper any resulting loss of the earlier reservation.

Present the new branch as a revision with explicit effects. The user can accept one oat carton, choose a permitted replacement for the missing quantity or leave that line behind. The yogurt difference should be visible with the intended pack size. For weighted produce show the estimate and how final weight affects the amount. The new slot needs an actual available interval from Elm Yard. If the user declines, follow the permitted recovery for the previous address and basket, including an explicit recheck if its hold expired. Keep expired holds out of the confirmation.

Make the competing reservation outcomes reproducible

Consider two browser tabs open to the same Riverbend draft. While one shopper completes the branch switch on their phone, the desktop still holds earlier evidence. A checkout from the stale view should use an authorized current revision check, find the conflict and show the accepted branch. Rehearse a new proposal that takes longer than the supplier's hold validity. The new view remains a review result rather than promising availability until the relevant service supplies fresh confirmation. The app should have an identifiable decision for abandoned, expired, accepted and interrupted switches.

Verify stock and slot movements in the authorized records. If the switch commits, verify the new branch's accepted reservations, then release or account for the old ones under the supported rules. Retain the relationship and any delayed acknowledgement so an operator can recover what happened. The stock balance should not appear to show two committed baskets or count the same release twice. A system that delegates the operations to external services may need a recoverable sequence rather than assuming every record was written in one transaction.

Fulfilment staff weighing produce and packing a grocery bag

Turn fresh produce into a clear approval and picking decision

In the Elm Yard fixture the shopper approves up to 0.8 kilograms of an identified apple variety as a replacement for the unavailable pear line, with the maximum amount shown under the market's policy. The picker later weighs 0.75 kilograms. If the approved example unit price is four units per kilogram, the estimated amount based on 0.8 kilograms is 3.20 units and the measured amount is 3.00. These are synthetic values for the acceptance test. Verify currency, tax, rounding, package identification and weight rules with the retailer and scale process before applying real figures.

The picker's view includes item identity, expected quantity or weight, substitution instructions and what to do when it finds a different variety or package. A replacement offered during picking should have enough information for a shopper to make the intended choice when the published policy requires it. That can include names, size, weight, price effect and relevant ingredients or other data provided by the retailer. Handle cases where the team cannot confirm an attribute under approved instructions. Do not make a product claim from a guess based on a similar photograph.

Handle a change beyond the customer's permitted choice

When the picker can only find 0.93 kilograms of the proposed apples, the measured amount at the synthetic unit price is 3.72. That weight exceeds the example choice. The picker should follow the retailer's approved path, such as offering a smaller amount, sending a revised request within the collection window, or removing the line. The customer's action applies to the item, unit amount and limit they actually reviewed. Record which roles can offer and accept a difference. A later inventory correction should not be interpreted as customer consent by itself.

Test a missed customer response before the picker closes the basket. The shopper can be told the relevant deadline and what will happen by default under the accepted policy. The agent can see whether they selected no substitutions, accepted a specific alternative or authorized a bounded substitution. A push notification alone is insufficient evidence of approval. Visit the signed-in basket with the appropriate accessibility setup and verify that it shows the actual pending decision and the fallback. The customer's message and picker's next move should remain consistent across the deadline.

Keep payment consistent with accepted package and weight choices

Work with the payment owner to confirm how the merchant can collect an approved grocery total when weighed produce or packaged substitutions change it. The Stripe documentation on placing a payment hold describes separating authorization and later capture for eligible methods, with payment-specific constraints and an expiration. Treat this as a provider example and verify the relationship that applies to the retailer. Other payment methods or merchant terms may require a different approved flow. The app should display the appropriate pending and finalized states under the actual method.

Show estimated and final totals when the workflow uses them. Keep the basis of tax and fees with the appropriate amounts and transaction evidence, under the retailer's rules. Connect the measured lines, accepted substitutions and delivery fee to the finalized customer record. It should be possible to review what changed and which consent applies. A till item or accounting record can arrive later than an accepted line. Reconcile the different concerns instead of telling a shopper that a final receipt exists on the basis of an earlier payment event alone.

Recover the right purchase after a delayed response

Interrupt the checkout while Elm Yard confirms its accepted basket and the payment source is completing an authorized action. Give the customer a useful pending state and a reference for support. Have an employee retrieve the original order and payment evidence under the permitted roles. A repeat page load should not create a new picking job or alter the invoiced quantity. If the retailer has a supported repeat or status lookup, use that handling for the same attempt. Keep separate any newly authorized purchase the buyer starts later.

Give the help desk a compact view of branch, accepted slot, measured product outcomes and status of authorized financial processing. One team may resolve a price discrepancy while another handles a missed ingredient or delivery issue. Establish who can initiate any price or financial correction and which steps require a verified carrier or store record. Use an approved test with an unchanged basket and another with a removed product, to make sure the receipts and notifications reflect the actual scoped result.

Give pickers and shoppers a shared timeline for messages

Plan messages around observed events such as branch review required, slot confirmed, substitution requested, picking complete and handoff complete. For a customer each message should lead to the right version of the basket. A picker should be able to see what they can do before packing, including what happens if their device goes offline. If the store allows temporary notes to be captured offline, verify permitted actions and reconciliation on return. A device should not promise inventory or add a committed substitution beyond its allowed role.

Use the W3C Web Content Accessibility Guidelines to inform checks for relevant web controls, including labels, focus and the handling of status messages. Test the branch review and substitution choice on a small phone, with keyboard and with applicable assistive technology. Show important price and unit changes in text. A receipt can offer a clear list of what was selected, changed and actually fulfilled. Verify a customer can return to the line needing a decision without scrolling through unrelated items.

Choose a reliable fallback when a message arrives late

Push and email delivery can be delayed or disabled. Keep the authoritative decision state in the authenticated order. A shopper opening an old notification should see whether the choice remains active and which branch or slot it belongs to. A link should not silently accept a substitution or show another shopper's details. Test the user opening a message after the decision deadline, before confirmation and with the branch changing while a proposal is still fresh. Connect any message identifier only to the appropriate basket revision.

Define how a supervisor can intervene in a test order. If the picker reports a substitute unreadable at the assigned branch, mark the item and investigate rather than substituting a similar code. Give the customer a relevant update and record who accepted an approved resolution. The order timeline should show whether any later adjustment updates the receipt. Use shared vocabulary between staff and customer messages so operators can find the right case after the delivery time passes.

Test the handheld handoff beside the actual packing workflow

Give the Elm Yard picker an order with the accepted new slot and a short list of approved lines. The picking task appears after the current basket is confirmed. Show the staff member whether the list is current, whether a substitution request is pending and where to put weighed produce. A handoff label can identify the order and receive a scan using a device the retailer already operates. Ask the reviewer to prove the order is bound to the right branch even when the old location has similar shelf codes and the shopper began the purchase there.

Run a second scenario where the packing device loses its connection temporarily. If the approved fulfilment process lets someone record unconfirmed picked lines during a gap, place them in a pending state and reconcile after reconnecting. If confirmation requires current inventory or customer consent, keep that decision online or route it through the approved staff procedure. Test reconnecting after a supervisor changed one line in the same order. Earlier offline notes can become useful history without being permitted to overwrite the accepted instructions.

Confirm that the original branch does not receive a duplicate task. In the exercise, West Bank's earlier holds are released after the approved move, and its proposed picker assignment is absent or canceled before packing. Elm Yard sees one task under the final accepted branch and slot. Make the current assignment visible to a supervisor working across both locations. Test with a refresh and a delayed message so that the earlier browser view cannot recreate a task at the former branch. Record which evidence is used to resolve an unexpectedly late assignment.

Give the driver the final handoff rather than the shopping draft

The delivery system needs the approved pickup branch, the current packed order reference and the supported contact and destination details. Ask whether it creates a job after the slot is confirmed or accepts a later ready-for-collection signal. A scheduled job and an actual handoff can be different stages. The runner can verify the correct order and give the customer a status the authorized service can support. A delayed pickup update should link to the existing job, not initiate a second delivery. Test what staff can do when the driver goes to the original branch by mistake.

Staff tools need a different access review from the consumer shop. An employee should see only the product, customer and fulfilment information necessary for their authorized work. Use separate roles for picking, driver handoff, branch supervision and customer service. Ask testers to open cases from another branch and verify the correct behavior. A help agent may know who to contact for a branch issue without viewing every customer or financial detail that a supervisor can see. The shared order identity makes it possible to direct the case while respecting those permissions.

Decide how the first engineering release will be accepted

Start small enough for both stores to rehearse. A product and engineering team may choose only address validation, branch scope, temporary stock and slot moves, one weighted produce category, accepted substitute decisions, current receipt and support recovery. Record which store system owns each reservation and whether the first project needs new native apps, mobile web, or existing staff devices. Write what happens if the integrated position or price is incomplete. Keep future loyalty, scheduled replenishment or more complex branch routing as separately reviewed additions.

Bring a supported example of a stock update, current branch price, available slot and temporary reservation. Agree source callbacks or readback where permitted, and define what each success means. Test one complete purchase, a declined move, an expired temporary reservation and a stale attempt from a second device. Add one consented produce substitution with a lower measured amount and another beyond its approved bounds. Do all of this without live commitments using fixtures appropriate to your systems. Give each result an owner who can repeat the experiment.

Set measures that expose an incomplete move

Track started branch proposals, accepted changes, failed new reservations and unresolved old releases under different labels. If many customers see one branch's slots at the wrong time, inspect the branch and capacity lookups instead of only viewing checkout counts. Compare items suggested, explicitly approved, filled and removed under the actual policy. The picker can report the time spent resolving real differences. Keep old and new branches visible in the appropriate test reference so engineers can tell whether a defect follows the specific move or a more general checkout issue.

Ask a staff member outside the engineering team to explain the current branch, reserved items and payment outcome using sample records. Give a shopper fixture to a reviewer who has only the customer-facing flow and ask them why the total changed. Test the permitted cases separately if the use of authorization and later collection differs by payment method. Review any discrepancy before accepting additional traffic. Schedule the next review after enough real observations exist under approved processes, using appropriately limited data and representative branches.

Bring a two-branch case to the development discussion

Write down the products, unit sizes, sources and acceptable substitution rules that the initial delivery must cover. Include the actual devices used by customers and staff, the expected source permissions and the supported payment and receipt behavior. Ask who approves a stock move, who can act on a missing ingredient and how a shopper reopens their choices. The TravelTech365 grocery app development service provides the broader delivery context. The two-branch rehearsal shows how to turn it into a specific implementable milestone.

Close with a record of the approved branch move and how failures will be investigated. Show what the customer accepted, which items the picker completed, where the delivery was handed off and which payment state the retailer can verify. Verify that support can reach the source of each decision without gathering unnecessary data. Move to a larger launch once the retailer can repeat the same acceptance exercise with its own teams and approved store systems.