Sending invoices by email
With this API you can send by emails the invoices you've just created.
How does it work?
- Create (or import) the invoice
- Get the id of the invoice in the response
- Send the email to the client using this endpoint
Sending those emails requires that the PDF file for the document has been generated (this process can take a few minutes), so if you just created the invoice / estimate in our system, we may return a 409 error. You should retry the request in a few minutes - if you receive a 204 response, that means that the email is on its way.
Recipients
To send the email you can specify one or more recipients email addresses. If no recipients are specified, the recipients used will be the email addresses set on the customer of the invoice.
If the email address of the customer is missing, you will receive an error message telling you to first specify the email address.
At the moment, it is not possible to specify another email address in cc or bcc.
The emails will be sent with the following address: facturation@pennylane.com. If your client answers the email, their answer will be automatically transferred to the email address you've specified in the Paramètres > "Facturation clients" in the platform.
Email templates
At the moment, it is not possible for you to select or create email templates with the API. We use by default the default invoice and estimate templates you already have in the platform. Depending of the billing language of the customer, we will either select the French default one or the English default one.
You can see them in the Parameters > "Facturation clients" > "Emails" . Feel free to modify the content of those templates if needed.
Updated 22 days ago