cURL
curl --request POST \ --url https://v3.minestorecms.com/api/cart/acceptCoupon \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "coupon": "<string>" }'
{ "success": true, "message": "<string>", "percent": 123, "amount": 123, "sum": 123, "type": "<string>" }
Validates and applies a coupon or gift card to the user’s cart if eligible. Provides appropriate messages based on the coupon or gift card status.
40