Adiciona um item ao carrinho de compras
cURL
curl --request POST \ --url https://api.example.com/cart/add \ --header 'Content-Type: application/json' \ --data ' { "store_id": "<string>", "product_uid": "<string>", "quantity": 123 } '
{ "success": true, "cart_id": "cart_001", "item": { "product_uid": "prd_001", "product_name": "Pizza Margherita", "quantity": 1, "points_cost": 200 }, "cart_total": 200 }
curl -X POST "https://api.indiqai.com/api/v1/cart/add" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "store_id": "store_001", "product_uid": "prd_001", "quantity": 1 }'
Was this page helpful?