Finaliza o carrinho e desconta pontos
cURL
curl --request POST \ --url https://api.example.com/cart/checkout \ --header 'Content-Type: application/json' \ --data ' { "cart_id": "<string>", "coupon_code": "<string>" } '
{ "success": true, "order_id": "order_001", "points_spent": 200, "new_balance": 150, "items": [ { "product_name": "Pizza Margherita", "quantity": 1 } ], "redemption_code": "INDIQ-A1B2C3" }
curl -X POST "https://api.indiqai.com/api/v1/cart/checkout" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "cart_id": "cart_001" }'
Was this page helpful?