#abhimanyuk-invoice-period

1 messages ยท Page 1 of 1 (latest)

lost token
#

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.

unkempt sphinx
#

Thanks @lost token, waiting for your reply

lost token
#

I just tested, and confirmed the Invoice also does not inherit period information from the included line items as you mentioned.

unkempt sphinx
#

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 ?

lost token
#

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.