#yogeshwari
1 messages · Page 1 of 1 (latest)
I have one subscription product PRO
I have added 4 coupons for PRO subscription
so I want to get these 4 coupons in api for PRO subscrption
I understand that. But perhaps you need 4 Promo Codes and not 4 Coupons (a Coupon can have multiple Promo Codes). And each product would only be associated with one Coupon. That's why I'm asking about the use case: https://stripe.com/docs/api/promotion_codes
ok, so in product api can I get that which coupon is added for product?
Do you want to list Products, or list Coupons?
I want coupon for associated products.
like this
for applicable product need coupon
applies_to.products on Coupon object: https://stripe.com/docs/api/coupons/object#coupon_object-applies_to-products