#kinfabs

1 messages ยท Page 1 of 1 (latest)

wispy hatchBOT
forest ibex
#

๐Ÿ‘‹ happy to help

crisp egret
#

hi ๐Ÿ™‚

forest ibex
crisp egret
#

but then I'd need to cancel the subscription again for only using the scheduled one?

#

which will be transfered to a subscription again when the start_date is reached

forest ibex
#

when you create a schedule from a subscription, you don't have to cancel the underlying subscription

#

the Subscription Schedule would be the main thing you need to worry about

#

there won't be 2 subscriptions

#

you just transform the Subscription to a Subscription Schedule

crisp egret
#

ah ok. Get it!

#

thank you - I will try to do that!

#

so I can also change the start date from now to one in the future then?

forest ibex
#

oh I forgot about the future start date ๐Ÿคฆ

#

my bad

crisp egret
#

What I want to do is create a scheduled subscription (with one month) that starts in the future but with a fixed billing circle (let's say the 1st of a month and it should start tomorrow)
The first invoice then should only contain the days from tomorrow until the 30th. And the next invoice at the 1st the full amount for a month

#

yes I did that as descriped in the docs but then the first invoice has the full amount and the second one (at the 1st) has the discounted amount (minus the 20 days )

forest ibex
#

ok let's try this

#

create a schedule with 2 phases

#

the 1st one has an end_date (the next 1st of the month - 1day) and another phase that starts on the 1st of the month

#

if you're just doing the Schedule to start in the future

crisp egret
#

I've done exactly what you've descriped. And that leads to the behaviour with first invoice full and second one discounted

forest ibex
crisp egret
#

I've also tried that - no change ๐Ÿ™‚

forest ibex
#

I'm not sure then that the behavior you're trying to accomplish is achievable

crisp egret
#

Hm, it is possible via dashboard

forest ibex
#

I'm asking for some confirmation from my teammates

crisp egret
#

thank you!

#

as said in the dashboard you're using the initial_billing_cycle_anchor property for that in scheduled subscriptions. It does exactly what we want to do via api - so maybe there is somehow a possibility to archive this ๐Ÿ™‚

azure briar
#

doesn't seem possible from what I've tried

#

initial_billing_cycle_anchor is something the new the product team for Subscriptions added in the last month or so, presumably they intend to bring this functionality to the API eventually(generally we release things in the Dashboard first since we can control things, there's more of a process for releasing things to the public API as it can't be changed once released). I'd write to https://support.stripe.com/?contact=true to express interest so hopfully the feedback is raised to help priortise that work.

crisp egret
#

ok, thank you for your honest answer!

#

Then we have to find another way

azure briar
#

you could use e.g. a cron job and create the subscription later(since passing billing_cycle_anchor set to the 1st, if doing the PAPI call on the 20th, will do what you want, it's just that you can't use a Schedule to create the subscription automatically)

crisp egret
#

yeah that's whate we will try to implement now! Thank you!