#loic_87
1 messages · Page 1 of 1 (latest)
Hello
When you say which product it is "attached_to", do you mean what the applies_to (https://stripe.com/docs/api/coupons/object#coupon_object-applies_to) for the coupon related to the promo code is set to?
Hello,
yes exactly . I dont find any way with api to retrieve the connexion to the product or the price from the promotion code
If you retrieve the Promo Code it has a coupon hash: https://stripe.com/docs/api/promotion_codes/object#promotion_code_object-coupon which will contain the applies_to hash which you need to expand: https://stripe.com/docs/api/coupons/object#coupon_object-applies_to
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.