Every Coupon has a price eg 200 and has order cap eg. 1000. that means the user must order items worth 1000 before the coupon can be applied.
1. to validate a coupon: (optional)
path:
/coupon
response:
{"data":[{"coupon":"0987656789","amount":"200"}],"status":"success","message":"coupon validated!"}
2. Add coupon to cart
/cart/coupon/add
[POST]
Auth data | DataType [default] | Detail |
---|---|---|
cart_id | int. | req |
coupon | str. | reg |
3. Remove Coupon from cart
/cart/coupon/remove // post same data when adding coupon // if coupon is added, cart return total price with coupon deducted..