#lanny17

1 messages · Page 1 of 1 (latest)

dreamy sealBOT
somber osprey
#

hi! as far as I know it's forever. Was there a particular use case you had in mind?

manic pawn
#

I want customers to always have access to these documents

#

they can download them from a receipt url, right?

somber osprey
#

yeah the receipt_url is a link to a hosted Stripe page where the receipt can be viewed or downloaded.

manic pawn
#

But Invoice URLs expire 30 days after the due date

#

receipt url and invoice url are the same thing, right?

somber osprey
#

well the point is you don't store those URLs, so the 30 day thing doesn't matter.
The way you build it is that when the customer asks for the receipt, you call the API to retrieve the Invoice, and redirect them to the current value of the url field in the response

manic pawn
#

what is the difference between receipt url and invoice url? Is it possible to download these documents from both places?

somber osprey
#

receipt_url is for the regular Charges while hosted_invoice_url is specfic to payments made using Invoices

#

you can't download the PDF of a Charge receipt, you have to redirect the user to the receipt_url. For Invoices there's an invoice_pdf field on the Invoice object that can be downloaded/accessed directly

manic pawn
#

ok, last question. To get these documents, i need to retrieve an invoice, and invoice_pdf is invoice.invoice_pdf and receipt_url is invoice.payment_intent.latest_charge.receipt_url, right?

#

and what is the expiry date of receipt_url?

somber osprey
#

sounds right. And I don't think it has an expiry date

#

either way the safest option is not store anything, just retrieve the object from the API and access the _url field on demand, that's what we expect people to do

manic pawn
#

ok, thank you

#

if the customer data is updated after the invoice is issued, what customer data will be there? old or new?

somber osprey
#

I think it's the old one, since Invoices have to be 'frozen'/'immutable' in many regions for compliance, you can test

dreamy sealBOT
manic pawn
#

can you provide accurate information? we have several accounts, and we need to know exactly how the platform behaves in this case.

vast sierra
#

Hi! I'm taking over this thread.

#

What do you mean by "can you provide accurate information"? The answer from karllekko above is pretty clear.

manic pawn
#

"i think" is not pretty clear

#

what region does it depend on? which is specified in the account settings?

somber osprey
#

no, it doesn't change on an account-by-account basis

#

what I mean is, in our Invoice product, overall, we have the concept of immutability, because in many countries Invoices have regulatory requirements to be immutable, so we designed it that way, it's not localised or different for the country your merchant account is in

#

if you need a definitive answer I'd suggest a support ticket with https://support.stripe.com/?contact=true and we can take the time to clarify with the product team, we do our best on Discord but it's extremely busy today, we answer topics across multiple products and APIs and we can't know specific details of each specific product on demand, I'm really sorry and wish it was different but it's not.

manic pawn
#

ok, thanks