We use the invoice API to create invoices as part of a workflow custom action. While there is a facility in invoice settings to set a reminder schedule, there is no way it seems to send an invoice just created via automation. For example we have reminders set for 89 days and 7 days before the due date. But if I create an invoice whose due date is 16 days away, I don’t want to wait until 7 days mark. I want to send the invoice right on creation. The only facility to send an invoice seems via the UI which seems very limiting. Do I have this wrong or is there a workaround?
Hi @darveesh,
Based on the current API capabilities, you are correct: there is currently no direct API endpoint to “send” the native HubSpot invoice email immediately after creation.
However, you might try combining the Invoices API with the Transactional Email API.
If you prefer not to use the Transactional Email API, you can use a HubSpot Workflow, though it does require a “trigger” event.
It’s worth noting that you cannot attach the dynamic PDF directly this way without custom code, but you can include the personalization token for the Invoice Link if the email is creating a context where that object is accessible (which can be tricky with standard workflows).
HubSpot API Docs: Transactional Email
I’d also recommend posting/upvoting in Ideas with your exact need (trigger send immediately on creation via workflow or API).
I’m tagging in @SteveHTM and @TomM2 to see if they have further insight on workarounds for this from here.
Hi @SealaB. Thank you for the hint. I ended up creating an automation email which I was able to personalize using Invoice token (amount, due date, link). Side note: The PDF link property doesn’t seem to work however for some reason. I.e. the link in the email that’s sent out gets a 404. But the invoice link itself is good. Anyhow, our automated invoices are set to status open in a custom action code step in a workflow (ie. we have an existing trigger). So I added a Send Email step using the automated email after the custom code action step completes. I also set the invoice associated contact as a marketing contact to ensure the mail step doesn’t have an issue there. Seems to be working so far. Thanks!
Moderator note: This workaround could be helpful for other community members facing similar challenges.
