#simeng.
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
According to the instruction here https://stripe.com/docs/invoicing/hosted-invoice-page. the initial generated Hosted Invoice Url link will expire 30 days after the invoice;'s closing status.
We are trying to implement a self hosted page, that our customer can retrieve and download all the history invoices
So we store the invoice data in our DB, including the hosted_invoice_url and pdf url
however since the link may expire
Is there a proper solution or recommended way, that allows the users to retrieve their invoices anytime they want?
Even after expiry, any URLs that the Dashboard displays or a user retrieves through the API are guaranteed to be valid for at least 10 days.```
You can just retrieve the invoice and use the updated URL
Ok the URL will be updated periodically?
Sounds like I can simply call the invoices.retrieve endpoint everytime the url would ba a valid one?
Yes you are right