#Akin
1 messages · Page 1 of 1 (latest)
Hello 👋
When do you want to send the event exactly? On a successful renewal? In that case you'd want to listen for invoice.paid event
Yes i am listening to that but not sure how to get the pdf version of the receipt to attached to the email to be sent
Typically the invoice PDF url is stored on the invoice object under invoice_pdf property
https://stripe.com/docs/api/invoices/object#invoice_object-invoice_pdf
Just to clarify, are you trying to email with a receipt or the invoice PDF?
I am trying to email with a paid invoice which i am assuming it the same as a receipt?
No, receipts and invoices are different.
The invoice PDF is stored on the invoice object under invoice_pdf parameter
The receipt is stored on the charge object under receipt_url parameter
https://stripe.com/docs/api/charges/object#charge_object-receipt_url
Ah okay, thanks will try this!