#abhimanyuk-invoice-period
1 messages ยท Page 1 of 1 (latest)
Hi ๐ the period_start and period_end fields on an Invoice object are populated when it is generated by a Subscription, they cannot be set independently.
I'm working on double checking whether the Invoice inherits that from associated Invoice Items.
Thanks @lost token, waiting for your reply
I just tested, and confirmed the Invoice also does not inherit period information from the included line items as you mentioned.
While creating an invoice I need to add the start and end date of the invoice, that can be exported to a csv file from the exports option on the stripe console. What do you think is the best way to do it ? Is it even possible ?
I'm not too familiar with the export that you're referring to (we primarily focus on the API-side of integrations in this forum), but most of our objects have a metadata field that is useful for storing additional information that is important to your flows.
https://stripe.com/docs/api/invoices/update#update_invoice-metadata
https://stripe.com/docs/api/metadata
I would recommend double checking though whether that can be included in the export.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.