#vlad_api

1 messages ยท Page 1 of 1 (latest)

crude falconBOT
#

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

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

calm mulch
#

๐Ÿ‘‹ Hey there. So the schedule won't release until the end of the phase. Why would you need it to release at the start? Might be able to figure out something that meets your use case

snow tartan
#

I'm trying to manage customer prepayments that way

E.g. customer is on the middle of their billing cycle for a yearly plan, and they want to prepay us for another billing period with a discounted price
That way we're charging them manually to secure it, and I need some way to

  1. Lock subscription updates for customer before next billing cycle, so they couldn't change their plan / create new prorations / etc
  2. Make one of the subscriptions items is free for 1 billing cycle

I don't see any other options as

  1. We need to prepay only 1 item on the subscription (we might have multiple at one)
  2. Customer might have multiple subscriptions, so we can't just add balance as it would be used by any of the subscriptions
  3. I'm trying to use schedules, to make needed discount for one subscription item, and I want to make it back after the new cycle starts
  4. As we're talking about yearly subscriptions - we don't want to limit customers for another year inside a scheduled phase
#

Maybe it sounds wrong, but that's limitations we have right now with how we integrated Stripe to our system

calm mulch
#

So there's no way to automatically release, so you would need to do this manually, probably by listening to the customer.subscription.updated event, which will fire as your phases progress, and tying that back to the schedule. However, I don't think there's a way to see which specific iteration, so you need to calculate this manually, using your own data or perhaps date info you store in the metadata.

snow tartan
#

Got it thanks

calm mulch
#

No problem