cart_coupon.add doesn’t work properly.
I’m using a coupon code that is working correct from frontend but when I’m trying to use it with core api cart_coupon.add I’m getting “Coupon is not valid.” anytime.
I set a couple of logs and found that it (coupon code) is set to ‘ ‘ in Quote::_validateCouponCode() function because there’s no address with coupon code.
What are the pre-conditions for cart_coupon.add ?
What’s the difference btw coupon use: frontend vs core api ?
How is coupon code reletaed to address?
How could I see/set coupon<->address over frontend?
Could you provide a tested sample to folow?
My flow of action over core api is:
6. cart_coupon.add (stuck here!!!)