#wasdbackwards-invoice-url
1 messages ยท Page 1 of 1 (latest)
Is there a way to download a receipt directly through the API?
The receipt, no, but every Invoice has ahosted_invoice_urlproperty https://stripe.com/docs/api/invoices/object#invoice_object-hosted_invoice_url
you can download the Invoice PDF from there
Is there a way to make the receipt and invoice PDF private so that only authorized users can access them? Or at least disable public access entirely?
I'm not sure what you mean by that. Anyone with the URL can see the invoice. There isn't any authentication logic there.
Sorry, forget about the authorization part. So if I'm understanding this right there is no way to restrict access to the receipt URL and invoice PDF URL? As in, anyone who is given or guesses that URL could look at anyones invoices and receipts?
Correct. So it is up to the merchant to only share that information with those who should have it.
Alright then, thank you.
Happy to shed what ๐ก I can ๐