Online food ordering: browse to delivered
A worked example to adapt. Rename steps, add branches and owners to match how your team actually works.
Mermaid source for this diagram
flowchart TD
s(["Customer opens the app or site"])
browse["Browse restaurants and menu"]
cart["Add items to cart"]
d1{"Signed in?"}
auth[/"Sign in or continue as guest"/]
addr[/"Enter delivery address"/]
d2{"Address in delivery area?"}
pay[/"Pay online"/]
out(["Show message: outside delivery area"])
d3{"Payment approved?"}
retry["Show error, try another method"]
send["Send order to restaurant"]
d4{"Restaurant accepts?"}
refund["Cancel order and refund"]
canc(["Order cancelled"])
cook["Restaurant prepares the food"]
rider["Assign a rider and deliver"]
e(["Order delivered"])
s --> browse
browse --> cart
cart --> d1
d1 -->|Yes| addr
d1 -->|No| auth
auth --> addr
addr --> d2
d2 -->|Yes| pay
d2 -->|No| out
pay --> d3
d3 -->|Yes| send
d3 -->|No| retry
retry --> pay
send --> d4
d4 -->|Yes| cook
d4 -->|No| refund
refund --> canc
cook --> rider
rider --> ePaste into any Markdown tool that renders Mermaid, such as GitHub.
About this online food ordering system flowchart
An online food ordering system takes an order from a customer, passes it to a restaurant and gets it delivered. This flowchart covers the customer's path through the app and the system's checks along the way, which makes it a common choice for software engineering and database course projects as well as for teams planning an ordering feature.
Four decisions do most of the work: whether the customer is signed in, whether the address is inside the delivery area, whether the payment goes through, and whether the restaurant accepts the order. Each one has its own exit, so the chart shows what the customer sees when something goes wrong, not only the happy path.
Payment is taken before the order reaches the restaurant. That way the kitchen only starts on paid orders, and a rejected order is refunded rather than left unpaid.
Step by step
- Browse. The customer opens the app, chooses a restaurant and looks at the menu.
- Build the cart. The customer adds items, with options such as size or extras.
- Sign in. If the customer is not signed in, they sign in or continue as a guest.
- Check the address. The system checks the delivery address against the restaurant's delivery area. Outside it, the customer sees a message and the order stops.
- Pay. The customer pays online. If the payment fails, they try another method.
- Send to the restaurant. The paid order goes to the restaurant, which accepts or rejects it, for example when an item has sold out.
- Refund if rejected. A rejected order is cancelled and the payment is refunded.
- Prepare and deliver. The restaurant prepares the food, a rider is assigned, and the order is delivered.
How to make it in flow-chart.io
- Start from the example. Edit the text in the generator box above so it names your own ordering steps, then press Generate. The free preview needs no sign-up.
- Add the branches. Add the decision points that matter for you, for example "pickup or delivery?" or "promo code valid?". Each decision becomes a diamond with labeled outcomes.
- Assign owners. Save the diagram to the editor (free account) and rename steps to show who does what: customer, app, restaurant and rider.
- Share or export. Share a read-only view link: people with the link can view the diagram but not edit it. Downloads as PNG, SVG or PDF are part of Flow Pro (see pricing).
Tips
- Add a "Pickup or delivery?" decision before the address step if your system supports collection; pickup orders skip the address and rider steps.
- Show order status updates (accepted, preparing, on the way) as output boxes if the flowchart is for an app spec.
- For a course project, pair the flowchart with a data flow diagram showing the customer, restaurant and payment provider as external entities.
- Keep the restaurant's own kitchen process out of this chart; link to it as a separate diagram if you need it.
- Use one swimlane each for customer, system, restaurant and rider when you need to show who does each step.
Frequently asked questions
- What are the main steps of an online food ordering system?
- Browse the menu, add items to the cart, sign in, enter the delivery address, pay, send the order to the restaurant, prepare the food and deliver it, with checks for the delivery area, payment and restaurant acceptance.
- Why is payment taken before the restaurant accepts?
- So the restaurant only prepares paid orders. If the restaurant then rejects the order, the system cancels it and refunds the payment.
- How do I show the database in this flowchart?
- Add a cylinder (data) symbol wherever the system reads or writes stored data, such as the menu, the customer's account and the orders table.
- Is this a flowchart or a use case diagram?
- It is a flowchart: it shows the order of steps and the decisions. A use case diagram shows which actors use which features, without any order.
- Can I edit this food ordering flowchart?
- Yes. Press Use this template to open it in the editor with a free account, then add your own steps, such as promo codes or pickup.