Actor picture

Motionmail Send Invoice

vaclavrut/motionmail-send-invoice doesn't send invoices for paid accounts, so in case you don't want to visit this app every month and send the invoice to the accounting department, you can use this act, which will do it for you automatically. In the input, specify to whom should the act send the email with an attached invoice in PDF. In the settings of the act (source) update the environment attributes the Username and the Password, then you should create a Scheduler, which should be set with the value 0 0 X * * for Cron expression, where X should be the date when the invoice is created in the, check it there. For me, it is the 21th day of the month so I would put 0 0 23 * * to the scheduler settings, adding 2 days extra just in case something would go wrong and they would delay creating the invoice.

To run the actor, you'll need an Apify account. Simply create a new task for the actor by clicking the green button above, modify the actor input configuration, click Run and get your results.


To run the actor from your code, send a HTTP POST request to the following API endpoint:<YOUR_API_TOKEN>

The POST payload including its Content-Type header is passed as INPUT to the actor (usually application/json). The actor is started with the default options; you can override them using various URL query parameters.

-d '{  
   "subject":"Invoice for the for {{date}}",
   "html":"Hello, <br/> in the attachement you can find the invoice for the Motionmail app for this month. <br/> Have a nice day. <br/> Best, <br/> Apify team"
}' \
-H 'Content-Type: application/json' \

To use the API, you'll need to replace <YOUR_API_TOKEN> with the API token of your Apify account (view here).

For more information, view the list of actor's API endpoints or the full API reference.