Cart
Get Cart
Retrieve the authenticated user’s shopping cart with all items and product details
GET
Get Cart
Authentication
This endpoint requires authentication. Include a valid JWT token in the Authorization header.Response
Unique identifier for the cart
ID of the user who owns this cart
ISO 8601 timestamp when the cart was created
ISO 8601 timestamp when the cart was last updated
Array of cart items
Unique identifier for the cart item
ID of the cart this item belongs to
ID of the product
Quantity of the product in the cart
Full product details
Product ID
Product name
Product description
Product price (decimal string)
URL to product image
Available stock quantity
Category ID the product belongs to
ISO 8601 timestamp when the product was created
ISO 8601 timestamp when the product was last updated
Notes
- If the user doesn’t have a cart yet, a new empty cart will be created automatically
- The cart is unique per user (one cart per user)
- Product details are included in each cart item for convenience
Get Cart