Diagram Desk

Online order processing flowchart

A shop order going through payment, stock check and dispatch, with the exception path that cancels payment when stock is out.

The diagram

StartFill in the orderRequest paymentPayment approved?Tell payment failedEndCheck stockIn stock?Cancel payment, tell soldoutOrder dispatchNotify shippingfailedapprovednoyes
Flowchart · 11 shapes

Reading it step by step

  • 1. Start at 'Start'.
  • 2. 'Fill in the order' is an input or output. Next: 'Request payment'.
  • 3. 'Request payment' is a processing step. Next: 'Payment approved?'.
  • 4. Decide 'Payment approved?': if 'failed', go to 'Tell payment failed'; if 'approved', go to 'Check stock'.
  • 5. 'Tell payment failed' is a processing step. Next: 'End'.
  • 6. End at 'End'.
  • 7. 'Check stock' reads or writes the data store. Next: 'In stock?'.
  • 8. Decide 'In stock?': if 'no', go to 'Cancel payment, tell sold out'; if 'yes', go to 'Order dispatch'.
  • 9. 'Cancel payment, tell sold out' is a processing step. Next: 'End'.
  • 10. 'Order dispatch' is a processing step. Next: 'Notify shipping'.
  • 11. 'Notify shipping' is a processing step. Next: 'End'.

Shape by shape

ShapeSymbolConnections
StartTerminator→ Fill in the order
Fill in the orderInput/output→ Request payment · ← Start
Request paymentProcess→ Payment approved? · ← Fill in the order
Payment approved?Decision→ Tell payment failed(failed), Check stock(approved) · ← Request payment
Tell payment failedProcess→ End · ← Payment approved?
EndTerminator← Tell payment failed, Cancel payment, tell sold out, Notify shipping
Check stockStored data→ In stock? · ← Payment approved?
In stock?Decision→ Cancel payment, tell sold out(no), Order dispatch(yes) · ← Check stock
Cancel payment, tell sold outProcess→ End · ← In stock?
Order dispatchProcess→ Notify shipping · ← In stock?
Notify shippingProcess→ End · ← Order dispatch

Symbols used here

SymbolMeaning
TerminatorWhere the flow starts or ends; a rounded rectangle.
ProcessOne action such as a calculation; a rectangle.
DecisionA question whose answer picks the next path; a diamond.
Input/outputData comes in or goes out; a parallelogram.
Stored dataReads or writes a database or file; a cylinder.
Flow lineThe order of steps, in the arrow direction.

All flowchart symbols and how to draw

Diagram text

Paste this text into the editor to get the same picture, then change the names to fit your own work.

# Online order processing flowchart
flowchart TD
  s(["Start"])
  a[/"Fill in the order"/]
  b["Request payment"]
  c{"Payment approved?"}
  d["Tell payment failed"]
  z(["End"])
  e[("Check stock")]
  f{"In stock?"}
  g["Cancel payment, tell sold out"]
  h["Order dispatch"]
  i["Notify shipping"]
  s --> a
  a --> b
  b --> c
  c -->|failed| d
  d --> z
  c -->|approved| e
  e --> f
  f -->|no| g
  g --> z
  f -->|yes| h
  h --> i
  i --> z

More flowchart examples

All SeewolLabs tools