#lucassouza5962
1 messages · Page 1 of 1 (latest)
Hello
Yes, you can retrieve a Coupon: https://stripe.com/docs/api/coupons/retrieve
When you do that you will want to expand applies_to
Then you can see the applies_to.products
If you aren't familiar with expansion then you should take a read through https://stripe.com/docs/expand
Oh, gotcha.
It should be?
const coupon = await stripe.coupons.retrieve(
id,
{
expand: ['products']
}
);
expand: ['applies_to']
You can see in the API Reference that that is the prop you want to expand: https://stripe.com/docs/api/coupons/object#coupon_object-applies_to