#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/1328392773765697579
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- bryan_docs, 2 days ago, 15 messages
It should be all line items as far as I know. If you test this in test mode we will simulate that properly
How do I view an invoice's period in test mode?
Okay, so I created an invoice in test mode with line items described in the screenshot.
Both period_start and period_end is 1736783311
Is this as implemented?
Invoice FF3D728C-0001
/v1/invoices/in_1QgpsYFSk9qAl2K5iId9NvoW
I know you can see it if you retrieve it via the API
Thanks for the ID
Ah, apologies I was wrong there. I see we say in our API ref that this "the usage period during which invoice items were added to this invoice" but I am unclear on what that is considered to be for these one off invoices. Sorry I thought we were talking about a different period. Looking in to this again
Hi ๐
I'm stepping in as my colleague needed to go. As our docs point out, period_start and period_end are designed to capture the usage period during which items were added to this Invoice.
https://docs.stripe.com/api/invoices/object#invoice_object-period_end
They also look back 1 period for Subscription invoices.
If you create an Invoice that is a one-off and already has InvoiceItems that is populates with, then the period_start and period_end are the same value.
For details on the time period covered by the line items in an Invoice, we recommend examining the period property for each line_item
So if I am making a one-off invoice with line items with the following periods, dec24-jan24 and jan24-feb25, what would be the resulting invoice period?
The data in the Invoice period_* fields would just represent when you created that Invoice. In these cases you would review the periods for each line item. Since each line item has a different period, it doesn't make sense to think of an "Invoice period" in the sense of a span of time these funds pay for.
Our recommendation (in the docs) is to review the periods for each line item
in_1QZJcBAa9khsG9rgBUIdMHFu
in_1QPC6DAa9khsG9rgpIYx6Qrc
Then can I get an explanation on these invoices and why they are one month long periods?
both have the same period, but created roughly 1 month apart
Looking into this. I would expect that for an Invoice related to a Subscription.
Hey Snufkin has to step out and I am back looking in to this. Apologies that it is taking some time.
One quick question I have reading over this again: can you tell me more about what you are trying to do overall? Is there some info about the invoice or its items that you were originally looking to this field to find?