In this UML sequence diagram, you can see how an online shopping system works. A customer starts by visiting the e-commerce website and then looks for products to buy. After selecting what they want to buy, the customer may add this product to their cart before finally paying for it using a payment system.