#kapil_api

1 messages ยท Page 1 of 1 (latest)

stiff socketBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1311363903631917124

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

stray swanBOT
vivid egret
#

Hi there ๐Ÿ‘‹ apologies for the delay, I'll be with you as soon as I can.

#

Apologies again for the delay, this is actually a somewhat advanced use case.

#

You'll likely want to create two Price objects for this:

  • One being 0.99 with a billing interval of 3 days
  • Another being your normal 7-day price.

You'll create the Subscription with your initial 3-day Price, then once it's created and started make a request to update it to use your 7-day Price instead. Since you're changing billing frequencies though, you'll want to ues a Subscription Schedule to schedule that change to happen at the end of the natural billing period, since changing billing frequencies forces a Subscription to move to the next billing period.

You'll need to create a Subscription Schedule from your existing Subscription:
https://docs.stripe.com/billing/subscriptions/subscription-schedules#managing:~:text=You can also create subscription schedules by passing a subscription ID%3A
Then update that Subscription Schedule by adding a new phase to it, that will change the Price the Subscription is using:
https://docs.stripe.com/billing/subscriptions/subscription-schedules#updating

Learn how to use subscription schedules to automate changes to subscriptions over time.