#ayesha-shaikh_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/1284169016436457533
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ Invoice objects should have a hosted_invoice_url field containing a link to the Hosted Invoice Page for the Invoice, and an invoice_pdf field which has a download link for the Invoice's PDF.
I don't recall there being a link to a receipt from an Invoice object, because typically if an Invoice is created the receipt associated with the payment doesn't have sufficient details on it and the Invoice PDF is used instead.
I'm happy to take a closer look at what you're referring to if you have examples that you can share.
If you want the receipt from the payment for the Invoice, you have to get the Charge object associated with the Invoice:
https://docs.stripe.com/api/invoices/object#invoice_object-charge
and then get the receipt_url from the Charge:
https://docs.stripe.com/api/charges/object#charge_object-receipt_url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.