#bryan_docs
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/1327346471426723943
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, invoice.period_end is the end of the usage period during which invoice items were added to this invoice: https://docs.stripe.com/api/invoices/object#invoice_object-period_end and invoice.created timestamp is when the invoice was created: https://docs.stripe.com/api/invoices/object#invoice_object-created . Created period should be later than the period end in this case.
Are you seeing otherwise? If so, can you share the request id please? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
would it be better to provide the invoice_id?
That works, are you seeing a different behavior than I described above?
stripe_invoice_id = 'in_1QPC6DAa9khsG9rgpIYx6Qrc'
I have
stripe_invoice.created=2024-11-25 23:53:49
stripe_invoice.period_start=2024-11-24 17:00:39
stripe_invoice.period_end=2024-12-24 17:00:39
Wait, I thought you were referring to subscriptions. You're creating invoices via the Dashboard: https://dashboard.stripe.com/logs/req_aoIDY0bl8phewi , is that correct?
is an invoice not created automatically via subscription?
It is but the example you shared is an explicit invoice creation from the Dashboard.
I just tested this with subscription and it looks to be working as expected.
Can you try with subscriptions?
You can use Test Clocks: https://docs.stripe.com/billing/testing/test-clocks as well to advance time when testing subscriptions.