Create recurring invoice
create_recurring_invoicePro. Makes an invoice repeat: a new invoice with the same client, lines, tax, notes and terms is made on each date (every N weeks, months or years from nextDate), until endAfter invoices are made or with no end. Each new invoice is left as a draft, marked as sent (its link is published), or emailed to the client, as action says. The lines are copied now: later changes to the original invoice do not reach the ones to come. Needs confirm: true; without it the result is a preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| every | No | Every how many weeks, months or years, 1 to 12. Default 1. | |
| action | No | What happens to each new invoice. Default draft. email needs the client's email address on the invoice. | |
| confirm | No | true performs the action. Without it (or with any value other than the boolean true) nothing changes and the result is a preview of the effects. | |
| endAfter | No | How many invoices to make, 1 to 500; null or omitted = no end. | |
| interval | Yes | ||
| nextDate | Yes | The date of the next invoice, today or later, YYYY-MM-DD. | |
| invoiceId | Yes | The invoice to repeat (not an estimate, not voided). | |
| paymentTermsDays | No | Days each new invoice gives to pay. Default: those of the original invoice. |