#AndrewAndyAndy

1 messages · Page 1 of 1 (latest)

sudden questBOT
digital lark
#

stripe.subscriptionSchedules.update(data.scheduleId, {
end_behavior: 'release',
phases: [
{
start_date: data.currentPeriodStart,
items: [
{
price: data.priceId,
}
],
iterations: 1,
},
{
proration_behavior: 'none',
items: [
{
price: updatedPricedIdKey[data.priceId],
quantity: 1,
}
],
},

  ],
}
pallid prairie
#

Is the coupon's duration once?

digital lark
#

we have some that are forever

pallid prairie
#

Interesting. Can you send me the ID of one of these subscriptions that lost the coupon across phases?

digital lark
#

sub_1KLuePDnkobEEnenm7XvgMzb

pallid prairie
#

So I think currently the API wants you to specify the coupon in each phase for which it applies

#

I'll double check that as it is a bit surprising

digital lark
#

okay thank you

#

Would the coupon still remain in tack after the subscription schedule end behavior has 'release'

pallid prairie
#

If it is on the last phase, yes it should

#

Yeah unfortunately I am not currently seeing a way to apply a discount to the entire schedule. I can put in a feature request for it if you would like but for the moment I think setting it in each phase is the intended way to go

digital lark
#

okay sounds good thank you for your help

#

can you put a feature request, that would be helpful

pallid prairie
#

Will do! Glad we found a short term solution at least