Retrieve the authenticated user’s shopping cart with all items and product details
cURL
curl --request GET \ --url https://api.example.com/cart
{ "id": 1, "userId": 5, "createdAt": "2026-03-01T10:00:00.000Z", "updatedAt": "2026-03-05T14:30:00.000Z", "items": [ { "id": 10, "cartId": 1, "productId": 42, "quantity": 2, "product": { "id": 42, "name": "Wireless Headphones", "description": "High-quality Bluetooth headphones with noise cancellation", "price": "89.99", "imageUrl": "https://example.com/images/headphones.jpg", "stock": 50, "categoryId": 3, "createdAt": "2026-01-15T08:00:00.000Z", "updatedAt": "2026-02-20T12:00:00.000Z" } }, { "id": 11, "cartId": 1, "productId": 15, "quantity": 1, "product": { "id": 15, "name": "Laptop Stand", "description": "Adjustable aluminum laptop stand", "price": "34.99", "imageUrl": "https://example.com/images/stand.jpg", "stock": 120, "categoryId": 5, "createdAt": "2026-01-10T08:00:00.000Z", "updatedAt": "2026-02-15T10:00:00.000Z" } } ] }
Authorization: Bearer <token>