#martin-dev-subscriptions

1 messages ยท Page 1 of 1 (latest)

hardy sky
#

Hi ๐Ÿ‘‹ for Subscriptions the promo codes can always be applied (if I'm not mistaken) but may not always impact the price. You can use this endpoint to preview an upcoming invoice to see what the next invoice would contain, and you can pass in additional parameters when doing so to test different scenarios:
https://stripe.com/docs/api/invoices/upcoming

elder dome
#

Really, even if a promo code is restricted to one user, there won't be any errors if another customer uses it?

hardy sky
#

Ah good catch, sorry, I forgot those could be Customer specific ๐Ÿ˜…

elder dome
#

Actually, follow-up question that's not really related.

I'm looking at the documentation for coupons: https://stripe.com/docs/api/coupons

And it seems like, although you can create a coupon with the applies_to property, you can't retrieve this property. It looks like the GET /v1/coupons/:id doesn't include it ๐Ÿค”

#

Is there a way to see which products a specific coupon applies to?

hardy sky
elder dome
#

Oh, perfect. Thank you!