All templates
Software architectureDFDdata flow diagramthreat modellingSTRIDE

Data flow diagram: e-commerce (Level 0)

Level-0 DFD (context diagram) for an e-commerce ordering system with external entities and bidirectional data flows.

The prompt

Level 0 DFD (context diagram) for an e-commerce ordering system. External entities: Customer, Payment Gateway, Shipping Provider, Email Service, Tax Service. The system is shown as a single process labelled "Ordering System". Data flows in: order details from Customer, payment authorisation from Payment Gateway, shipping confirmation from Shipping Provider, calculated tax from Tax Service. Data flows out: order receipt to Customer, payment request to Payment Gateway, shipment request to Shipping Provider, confirmation email to Email Service. Mark trust boundaries between the Ordering System and each external entity. Annotate flows that carry PII or payment card data.

What it generates

A Level-0 DFD showing the system, external entities, every data flow that crosses the boundary, and trust boundaries — the foundation for STRIDE threat modelling.

When to use it

Whenever you need to scope a system for threat modelling, compliance, or analysis — Level-0 is the foundation every other DFD level builds on.

Generate this diagram in seconds

Copy the prompt above, sign in for free, and paste it into the generator.

Related software architecture templates