#Hello I noticed for invoices created for
1 messages · Page 1 of 1 (latest)
Note that
invoice.period_start === invoice.lines.data[0].period.start
but
invoice.period_end === invoice.lines.data[0].period.start
instead of
invoice.period_end === invoice.lines.data[0].period.end
Hello 👋
Let me take a look
Thanks!
I believe this is expected. The invoice.period_start and line items period.start & end represent two different things.
period_start on the invoice
Start of the usage period during which invoice items were added to this invoice.
period_end on the invoice
End of the usage period during which invoice items were added to this invoice.
https://stripe.com/docs/api/invoices/object#invoice_object-period_start
https://stripe.com/docs/api/invoices/object#invoice_object-period_end
Copy that. So it's retroactive in that sense. Thanks