#brian_code

1 messages ยท Page 1 of 1 (latest)

glossy gullBOT
#

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

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

pastel vine
#

by total do you mean the usage total or the total amount billed?

worn wren
pastel vine
worn wren
pastel vine
#

"thanks! So couple follow up questions, if getting the monthly summary, would that be best advised to set start_time to subscription.current_period_start and end_time to current_period_end?"

Yes this is probably the easiest way to get the summary for the subscription window.

I believe you can use https://docs.stripe.com/api/invoices/create_preview to get a preview of the what the billed amount based on the usage from the start of the cycle to today

worn wren
#

thanks ๐Ÿ™‚ out of sheer curiosity, is there any particular reason you guys don't offer a week or month filter with summaries?

pastel vine
#

"If not specified, a single event summary would be returned for the specified time range." So I believe you can just get a single summary for the whole of the subscription billing cycle.

#

So setting week or month would be for a situation where say you set a several month window and wanted one summary per month in that window. I'm not sure we've seen demand for that but I can always put in a feature request.

worn wren
pastel vine
#

Of course! I'll put a feature request in for you ๐Ÿ™‚