E-commerceintermediate

Shopping Cart JSON Example

A cart payload with line items, summary totals, and fulfillment hints.

Real-world use case: Use this for cart APIs, frontend state, and checkout prototypes.
1{
2 "cartId": "cart_5002",
3 "customerId": "cus_9012",
4 "currency": "USD",
5 "items": [
6 {
7 "sku": "TSHIRT-BLK-M",
8 "name": "Performance Tee",
9 "quantity": 2,
10 "unitPrice": 29.99
11 },
12 {
13 "sku": "CAP-NAVY",

Where this shape shows up in production

Checkout state
Cart APIs
Pricing previews

Related examples