#pl_api

1 messages ยท Page 1 of 1 (latest)

brittle tuskBOT
#

๐Ÿ‘‹ 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/1267868735834820619

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

undone jayBOT
odd kettle
#

Hi there ๐Ÿ‘‹ I'm not quite sure I'm grasping what you're trying to ask, so please let me know if it seems I've misunderstood.

If you want to schedule a change to a Subscription, you'll want to leverage our Subscription Schedules. This use case seems the most similar to what you're describing, and will likely be the best place to start:
https://docs.stripe.com/billing/subscriptions/subscription-schedules/use-cases#changing-subscriptions

You'll want to create a Subscription Schedule from your Subscription, and then update the Subscription Schedule to add your planned changes to that schedule.

brittle tuskBOT
wild tangle
#

Thank you very much. Please allow me to illustrate the issue with a specific example.

We have users alice, bob, they signed up for a higher plan in August, but made a downgrade request in late August and switched to a lower plan in September.
8/2 13:00: Alice starts Premium plan (= create a subscription?)
8/2 18:00: Bob starts Premium plan
8/20: Alice requests a plan downgrade Premium -> Normal (= create a subscription schedule?)
8/21: Bob requests a plan downgrade Premium -> Normal
9/2: Alice, Bob are on Normal plan

Please tell us how to call the API to achieve the following

  1. Downgrade at exactly the contract cycle (hour, minites need not match cycle)
  2. September billing will be for the downgraded plan
    (In other words, make it a downgrade->billing dependency)

Also, when is the first time I create a Subscription and when will I be billed for it? Will the billing cycle be timed to coincide with the hour, minute, and second as well?