#shayan5871
1 messages · Page 1 of 1 (latest)
Do you have the invoice ID?
yes
from invoice id, I'm able to get invoice_pdf, but that only shows that the amount is due, I need the receipt generated after that.
stripe does generate both, but not sure where is the link
in_1OdAj7JDsF3FhY2aGkb9F2tn
Ok, this invoice is paid. so you want to send an receipt to your customer, am I right?
yes
You can. invoice->payment_intent->latest_charge->receipt_url 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.
receipt_url takes user to another page, I need the pdf file of receipt
Ok, I guess you are looking for paid invoice (https://docs.stripe.com/receipts?payment-ui=payment-links#paid-invoices), which shows amount paid instead of amount due
This feature is only available in Checkout and Payment links
yes and it's automatically sent
all I'm looking for is the receipt pdf like invoice_pdf
There's no receipt pdf I'm afraid.
I'm not sure. If you believe it's a feature request, please let support know https://support.stripe.com/contact/email
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.