#yogeshwari
1 messages · Page 1 of 1 (latest)
Hello 👋
You'll need to retrieve the coupon and expand the applies_to separately.
https://stripe.com/docs/api/coupons/retrieve
https://stripe.com/docs/api/coupons/object#coupon_object-applies_to
But i need to check while upgrade subscription from API
Becuase I apply another promotion code in different product, Stripe wont apply discount but I need to restrict user and need to show error message to the user.
There's no way for upgrade subscription API to retrieve coupon information this way