#parto_api
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/1326300218358239282
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
The other option would be to download the PDF on your system and sending your own URLs to customers from your server
@dry harbor is that what is best practice? Is there a difference between invocies and receipts in how they work with expiration and the API?
As far as I know, receipt links expire within 30 days as well
https://docs.stripe.com/receipts?payment-ui=direct-api#receipt-features
As a security measure, receipt links expire within 30 days. Expired receipt links require the customer to provide the original email address to resend the receipt to that address.
The alternative suggested in the support article here would be the best practice - https://support.stripe.com/questions/invoice-link-expiration
You can also always follow the below two methods to generate a fresh link to send your customers. These links will always be active for 10 days or more depending on when the invoice is due.
Dashboard: Open the invoice in the dashboard and resend the invoice or copy the hosted invoice page link.
API: Retrieve the invoice via our API and any of the links returned in the object response like invoice_pdf or hosted_invoice_url will be active links.
Here's how I think you can handle it:
- Send the customer to your own custom URL https://.../<invoice_id> -> your server calls Stripe API to retrieve the invoice -> redirect customer to the
hosted_invoice_url
Thats an amazing suggestion to generate them on the fly ๐