To initiate a scheduled invoice generation, an Autolaunched Flow invoking the Invoice API invocable class should be created where the flow will be called in a Batch Job.
How to create an Autolaunched Flow invoking the Invoice API
Follow the steps on how to create an Autolaunched Flow invoking the Invoice API invocable class:
...