How to apply Stripe coupon discount only for first subscription invoice

Viewed 20

Currently I am using Stripe in my project and I wanted to know if it is possible to apply a coupon code when I create a subscription, but applied only for that first invoice of the subscription and not for upcoming charges. Upcoming charges should be the exact amount without the coupon code applied automatically by Stripe. How can this be done via Stripe API?

I would really appreciate your hep. Thank you!

1 Answers

When creating the Coupon you plan to use for discounting the Subscription, you should use the duration: 'once' parameter to ensure the resulting discount is only applied to the initial invoice. Stripe documentation details this behaviour here.

Related