#beastboy_best-practices

1 messages ยท Page 1 of 1 (latest)

floral ginkgoBOT
#

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

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

frosty agateBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

keen frigate
#

Hi ๐Ÿ‘‹ there isn't a way to be notified about a Subscription getting ready to move to a new billing period (aside from invoice.upcoming).

You can listen for invoice.created that is triggered when the Subscription moves to the new billing and creates a draft Invoice, but I don't think you'll be able to make the changes you want to that draft Invoice (though I may be mistaken or that may depend on how exactly you structured your Subscriptions). You would need to add logic to make sure you filter out the first Invoice for a Subscription too.

remote pumice
#

Got it, I think ill just use a subscription schedule then

#

ty!

keen frigate
#

Any time! I dropped a link to the use case that I think most closely matches the flow you'll need to use as a starting point.

remote pumice
#

thanks!

#

one more question

keen frigate
#

Sure

remote pumice
#

this is a new feature to affect existing customers, so I will need to create this sub schedule for 1000+ active subscriptions. I guess I just have to write a script for this?

#

does stripe rate limit / thorttle requests?

keen frigate
#

Yeah, a script would be the way to go, and there are rate limits to be wary of. We discuss those in more detail here:
https://docs.stripe.com/rate-limits
You can typically make 100 requests per second, though that doc does a better job of breaking down those limits.

Learn about API rate limits and how to work with them.

remote pumice
#

got it

#

thank you!