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

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

ATM System Sequence Diagram (Cash Withdrawal)

An ATM cash withdrawal step by step: card and PIN, balance and limit check, debit, cash dispensing and receipt, with a blocked card after three wrong PINs and a reversal if the dispenser fails.

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

  • Card blocked after three wrong PINs
  • Debit reversed if the cash does not come out
  • Receipt and card returned at the end

Prompt used

Sequence diagram for an ATM cash withdrawal: the customer inserts a card; the ATM reads the card and asks for the PIN; the bank server verifies the PIN, and after three wrong PINs the card is blocked; the customer enters an amount; the bank checks the balance and daily limit and debits the account; the ATM dispenses cash, returns the card and prints a receipt; if the cash dispenser fails, the bank reverses the debit.

Mermaid code
sequenceDiagram
    autonumber
    actor customer as Customer
    participant atm as ATM Terminal
    participant bank as Bank Server
    participant ledger as Core Banking Ledger
    participant dispenser as Cash Dispenser
    customer->>atm: Insert card into ATM terminal
    atm->>customer: Prompt for PIN entry
    customer->>atm: Enter 4-digit PIN
    atm->>bank: POST /v1/auth/verify-pin {cardId, pin}
    bank->>ledger: Verify PIN against account database
    ledger-->>bank: PIN check result
    bank-->>atm: PIN result (session token if valid)
    alt 3 consecutive invalid PIN entries
        atm->>bank: POST /v1/cards/block {cardId}
        bank-->>atm: 403 Forbidden (Card blocked)
        atm-)customer: Retain card and display card blocked message
    else Valid PIN entered
        customer->>atm: Select withdrawal amount (β‚Ή2,000)
        atm->>bank: POST /v1/transactions/withdraw {amount: 2000}
        bank->>ledger: Check balance and debit account (β‚Ή2,000)
        ledger-->>bank: Account debited successfully
        bank-->>atm: 200 OK (Authorize cash dispense)
        atm->>dispenser: Command cash dispensation (β‚Ή2,000)
        alt Cash dispenser failure
            dispenser-->>atm: Dispense error (Hardware jam)
            atm->>bank: POST /v1/transactions/reverse {txId}
            bank->>ledger: Credit back debited account (β‚Ή2,000)
            ledger-->>bank: Reversal completed
            bank-->>atm: 200 OK (Debit reversed)
            atm-)customer: Display error message and eject card
        else Cash dispensed successfully
            dispenser-->>atm: Cash physical release confirmed
            atm-)customer: Dispense cash bills (β‚Ή2,000)
            atm-)customer: Eject card and print receipt
        end
    end

Inside this diagram

A sequence diagram with 5 participants and 25 messages, in the order they happen.

People

  • Customer

Systems

  • ATM Terminal
  • Bank Server
  • Core Banking Ledger
  • Cash Dispenser

Steps in order

  • 1. Customer β†’ ATM Terminal: Insert card into ATM terminal
  • 2. ATM Terminal β†’ Customer: Prompt for PIN entry
  • 3. Customer β†’ ATM Terminal: Enter 4-digit PIN
  • 4. ATM Terminal β†’ Bank Server: POST /v1/auth/verify-pin {cardId, pin}
  • 5. Bank Server β†’ Core Banking Ledger: Verify PIN against account database
  • 6. Core Banking Ledger β†’ Bank Server: PIN check result (reply)
  • 7. Bank Server β†’ ATM Terminal: PIN result (session token if valid) (reply)
  • 8. ATM Terminal β†’ Bank Server: POST /v1/cards/block {cardId}
  • 9. Bank Server β†’ ATM Terminal: 403 Forbidden (Card blocked) (reply)
  • 10. ATM Terminal β†’ Customer: Retain card and display card blocked message
  • 11. Customer β†’ ATM Terminal: Select withdrawal amount (β‚Ή2,000)
  • 12. ATM Terminal β†’ Bank Server: POST /v1/transactions/withdraw {amount: 2000}
  • 13. Bank Server β†’ Core Banking Ledger: Check balance and debit account (β‚Ή2,000)
  • 14. Core Banking Ledger β†’ Bank Server: Account debited successfully (reply)
  • 15. Bank Server β†’ ATM Terminal: 200 OK (Authorize cash dispense) (reply)
  • 16. ATM Terminal β†’ Cash Dispenser: Command cash dispensation (β‚Ή2,000)
  • 17. Cash Dispenser β†’ ATM Terminal: Dispense error (Hardware jam) (reply)
  • 18. ATM Terminal β†’ Bank Server: POST /v1/transactions/reverse {txId}
  • 19. Bank Server β†’ Core Banking Ledger: Credit back debited account (β‚Ή2,000)
  • 20. Core Banking Ledger β†’ Bank Server: Reversal completed (reply)
  • 21. Bank Server β†’ ATM Terminal: 200 OK (Debit reversed) (reply)
  • 22. ATM Terminal β†’ Customer: Display error message and eject card
  • 23. Cash Dispenser β†’ ATM Terminal: Cash physical release confirmed (reply)
  • 24. ATM Terminal β†’ Customer: Dispense cash bills (β‚Ή2,000)
  • …and 1 more

Conditions and loops

  • If: 3 consecutive invalid PIN entries
  • Otherwise: Valid PIN entered
  • If: Cash dispenser failure
  • Otherwise: Cash dispensed successfully

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.