#Wik
1 messages · Page 1 of 1 (latest)
Hi there!
Hi
What do you mean by "if a coupon code if valid for a plan"? Do you mean if the coupon can be used on a specific plan?
yes
e.g. I have a product A, but limit my coupon only to product B. I want a user to be able to input a coupon code and validate it against a product to tell them if it will be applied or not
By default coupons can be applied to everything. If the coupon has restrictions, then you can view the restrictions inside the applies_to property https://stripe.com/docs/api/coupons/object#coupon_object-applies_to