Auto send email when invoice is created

Perhaps I am missing an option somewhere, but is there a way to auto send an email when an invoice is created through the API? I have success manually sending after the fact, but I’d like to programmatically send it at the time the invoice is created.


Here is a curl example of how this could be done:

curl -X POST 'http://ninja.test:8000/api/v1/invoices/bulk' \
-H "X-API-TOKEN:hOtKpVpJiu9erPGgJTpcAXNQwDk3yp3QEG4WdqvnDnIQo9jxTIxfi91Te7AeK3C2" \
-H "Content-Type:application/json" \
-d '{"action":"email","ids":["gl9avmeG1v"]}' \
-H "X-Requested-With: XMLHttpRequest" \
-H "X-API-SECRET:password";

Important parts:

  1. key: action - which action you wish to perform
  2. value: array of hashed_ids

Is there a way to accomplish this with the Flutter package?

I don’t think it’s currently supported by we’d be happy to add it.

Please create an issue here to track the request: