#ibgoldbergs
1 messages · Page 1 of 1 (latest)
They just want a receipt for the invoice that gets paid each billing cycle?
yeah, just select customers
Each Invoice has a URL you can email to your customers so that they can see their receipt. You can also download it yourself and send it as an attachment in an email to them.
Here's where the attribute is on the Invoice object: https://stripe.com/docs/api/invoices/object#invoice_object-invoice_pdf
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Today we have somebody going in once a month and manually sending the receipt / invoice link via the dashboard for around 60+ customers. The nice thing about the dashboard is you can set multiple recipients and when you go back in there it will save the multiple recipients.
However, I want to automate this persons work.
So basically every billing period I want to automatically send the receipt/invoice link to each of these 60+ customers (to each email address on the recipient field)
The send invoice API says its for manual payment and we use charge_automatically.
Do you know if there is an endpoint to send the receipt to all recipients for a given customers invoice?
There isn't. You could create an automated script that grabs all the invoice pdf's for all the customers and auto sends them, but that obviously requires you to do some serious configuration work with whatever email client you use. Unfortunately there isn't an option to do this for select customers using just Stripe.
How does POST https://api.stripe.com/v1/invoices work?
Does it send to all recipients for the customer?
What do you mean by all recipients? And POSTing to that endpoint would be to create an invoice, nothing else would happen right after that
I think you might be asking about sending invoices to additional recipients, which is not something currently supported via the API
oh duh. So basically what I could do is something like this:
- Webhook event listener for invoice paid
- If customer.metadata.autoemail_invoice = true, loop through a customers billing emails
- Each loop grab the latest invoice url, and email it to the email in the loop
Something like that should accomplish our goal?\