CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Student Projects (College Reports)

πŸŽ“ Student Projects (College Reports) Β· Sequence

Online Shopping System Sequence Diagram (Place an Order)

Checkout on a shopping website: stock check, payment and order confirmation.

More Student Projects (College Reports) templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • Stock reserved before payment
  • Alt branch for failed payment
  • Seller notified to pack the order

Prompt used

Sequence diagram for placing an order on a shopping website: the customer clicks checkout; the order service checks and reserves stock with the inventory service; the payment gateway charges the customer; on success the order is confirmed, the seller is notified to pack it and the customer gets an SMS; on failure the stock reservation is released.

Mermaid code
sequenceDiagram
  actor C as Customer
  participant W as Website
  participant O as Order Service
  participant I as Inventory Service
  participant P as Payment Gateway
  participant N as Notification Service
  C->>W: Checkout
  W->>O: Create order
  O->>I: Reserve stock
  I-->>O: Reserved
  O->>P: Charge customer
  alt Payment successful
    P-->>O: Success
    O->>O: Confirm order
    O->>N: Notify seller to pack
    O->>N: Send order SMS to customer
    O-->>W: Order confirmed
  else Payment failed
    P-->>O: Failed
    O->>I: Release stock
    O-->>W: Payment failed, try again
  end

Inside this diagram

A sequence diagram with 6 participants and 13 messages, in the order they happen.

People

  • Customer

Systems

  • Website
  • Order Service
  • Inventory Service
  • Payment Gateway
  • Notification Service

Steps in order

  • 1. Customer β†’ Website: Checkout
  • 2. Website β†’ Order Service: Create order
  • 3. Order Service β†’ Inventory Service: Reserve stock
  • 4. Inventory Service β†’ Order Service: Reserved (reply)
  • 5. Order Service β†’ Payment Gateway: Charge customer
  • 6. Payment Gateway β†’ Order Service: Success (reply)
  • 7. Order Service β†’ Order Service: Confirm order
  • 8. Order Service β†’ Notification Service: Notify seller to pack
  • 9. Order Service β†’ Notification Service: Send order SMS to customer
  • 10. Order Service β†’ Website: Order confirmed (reply)
  • 11. Payment Gateway β†’ Order Service: Failed (reply)
  • 12. Order Service β†’ Inventory Service: Release stock
  • 13. Order Service β†’ Website: Payment failed, try again (reply)

Conditions and loops

  • If: Payment successful
  • Otherwise: Payment failed

Make your own diagram like this

Describe your own system in plain English and the AI sequence diagram generator draws it in seconds, in the same style as this template.

Related templates

Use CaseStudent Projects (College Reports)

Library Management System Use Case Diagram

Who uses a college library system and what each of them can do: members, the librarian and the system administrator.

Database ERDStudent Projects (College Reports)

Library Management System ER Diagram

The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.

Data FlowStudent Projects (College Reports)

Library Management System Data Flow Diagram (Level 1)

How data moves through a library system: members and the librarian, the main processes, and the data stores they read and write.

Class UMLStudent Projects (College Reports)

Library Management System Class Diagram

The main classes of a library system with attributes, methods and UML relationships.

SequenceStudent Projects (College Reports)

Library Management System Sequence Diagram (Issue a Book)

The steps when a member borrows a book: checks, loan record and the copy status update.

Use CaseStudent Projects (College Reports)

Online Examination System Use Case Diagram

What students, examiners and the administrator do in an online examination system.