curl -X POST 'https://api.henrylabs.ai/v0/cart/items' \ -H 'x-api-key: YOUR_API_KEY' \ -H 'x-user-id: user123' \ -H 'Content-Type: application/json' \ --data '{ "productsDetails": [ { "name": "Nike Air Max 270", "price": "150.00", "quantity": 1, "productLink": "https://nike.com/air-max-270", "productImageLink": "https://nike.com/images/air-max-270.jpg", "metadata": { "size": "10", "color": "Black" } }, { "name": "Adidas Ultraboost 22", "price": "190.00", "quantity": 2, "productLink": "https://adidas.com/ultraboost-22" } ] }'
{ "success": true, "status": "success", "message": "Products added to cart successfully", "data": { "total_cart_items": 3 } }
Add one or more products to the user’s shopping cart
Show Product Details Object
Show Data Object
Product added to the cart successfully.
The response is of type object.
object