#Cocochief

1 messages · Page 1 of 1 (latest)

gilded pagodaBOT
cyan rose
#

Hey there

tulip olive
#

Is this is DM you sent?

cyan rose
#

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

winter dirge
#

Hi Bismark - thanks for picking this up.

cyan rose
#

So for 1/ yes you could use a coupon with duration "once" as you noted and that would just apply to one cycle

#

You would set the schedule to a $0 price for months 2&3 and then return to the current price

winter dirge
#

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?

cyan rose
#

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

winter dirge
#

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.

cyan rose
#

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

winter dirge
#

I am looking up the coupon in the c# API. would it be part of the SubscriptionOptions that you set?

cyan rose
#

Yes I believe so. I'm not too familiar in c# myself

#

That is for creation

winter dirge
#

Got it.

#

And for 2/. You are suggesting that I modify the subscription after the 1st invoice is paid?

#

and apply the coupon?

cyan rose
#

Yes that would be the easiest way in my opinion

#

The other option would be to create a Sub Schedule as I mentioned above

winter dirge
#

Got it. Let me give it a try.

cyan rose
#

👍

#

Recommend using test clocks to ensure everything works as you want!