#Cocochief
1 messages · Page 1 of 1 (latest)
Hey there
Is this is DM you sent?
Nope
This is just a thread that we use to keep the channel organized
Anyone can see it, but we prefer if we chat about the issue in the thread
Hi Bismark - thanks for picking this up.
So for 1/ yes you could use a coupon with duration "once" as you noted and that would just apply to one cycle
The best way to do 2/ would be to use a Subscription Schedule (https://stripe.com/docs/billing/subscriptions/subscription-schedules)
You would set the schedule to a $0 price for months 2&3 and then return to the current price
On the applying the coupon, I am looking at the API doc (we use c#), and see API for creating/updating coupon, but where is the API where I apply the coupon to a subscription purchase?
There is a coupon parameter that you pass the ID to
You can do this on creation or update
Also, actually probably easier to just use a coupon for your second use-case as well
Instead of integrating Subscription Schedules
Also on 2/ is there a way to configure the schedule in Stripe Dashboard? where I create the product? Or does it have to be done programmatically?
how would I do coupon for 2/? I see that I can create a coupon for multiple months. But I want the first month to be charged immediately.
You can't do a Subscription Schedule with Phases in the Dashboard. You can only set a start and end date.
Yeah for 2/ you would listen for Webhooks and after the initial invoice for a Subscription is paid then you apply the coupon so it affects the next two cycles
I am looking up the coupon in the c# API. would it be part of the SubscriptionOptions that you set?
Yes I believe so. I'm not too familiar in c# myself
I think https://github.com/stripe/stripe-dotnet/blob/3610707b887b636d4579d19892bb7af8ffdb8bff/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs#L93 is what you want
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - stripe-dotnet/SubscriptionCreateOptions.cs at 3610707b887b636d4579d19892bb7af8ffdb8bff · stripe/stripe-...
That is for creation
Got it.
And for 2/. You are suggesting that I modify the subscription after the 1st invoice is paid?
and apply the coupon?
Yes that would be the easiest way in my opinion
The other option would be to create a Sub Schedule as I mentioned above
Got it. Let me give it a try.