#tomh0027

1 messages · Page 1 of 1 (latest)

orchid blazeBOT
fervent comet
#

Hello! When retrieveing or creating the coupon did you make sure to expand applies_to? It's not expanded by default so you'll need to make sure to specifically say you want it expanded https://stripe.com/docs/expand

Learn how to reduce the number of requests you make to the Stripe API by expanding objects in responses.

rare umbra
#

is there a way I can expland applied_to of coupon when list promotion code?
await stripe.promotionCodes.list({ code, })

fervent comet
#

What you could do is expand data.coupon.applies_to

#

That'll expand the coupon + applies_to that's tied to each promotion code

rare umbra
#

thanks