#blackgriffen237_subscription-and-invoices-events-reference
1 messages ยท Page 1 of 1 (latest)
๐ 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/1341528265646669909
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! I'm not entirely certain I understand your question? The invoice.paid message for every Invoice related to a Subscription will all have the same Subscription ID; is that what you're asking here?
yeah
so if the first invoice is paid, and i capture the subscription id, that will be the same subscription id for all the invoices paid on that subscription right?
could I ask a follow up question?
Yes, but you should have that ID when you create the Subscription, so that would be your 'source of truth' on that one.
Of course - what's up?
well if the subscription is monthly stripe will send an invoice on our behalf to the user and the user might cancel at any time based on that? so what do i look for to end the subscription?
do i check the subscription id periodically to see if its active?
You can read all about using Events with Subscriptions here: https://docs.stripe.com/billing/subscriptions/event-destinations
and is there something that we can hook into prior to the invoice being sent so we could remind the user how much value they are getting?
oh gosh thats perfect thank you
invoice.upcoming will tell you one is coming soon - that's on that document as well. ๐
so something like invoice.upcoming, yes exactly ok thank you so much
wow what a great resource, thank you so much
Yup, there's lots there. Definitely experiment and do lots of testing until you figure out what you actually want. This is probably useful for you too: https://docs.stripe.com/billing/testing/test-clocks