merit_create_recurring_invoice
Create a recurring invoice in Merit Aktiva by specifying customer, start and next dates, billing cycle, and period. Set invoice rows, tax, and total to generate automatically.
Instructions
Create a Merit Aktiva recurring invoice (POST /api/v2/sendperinvoice). cycle: 1 = month, 2 = quarter, 3 = year, 4 = week. period: 2 = current, 3 = next, 4 = for the next, 5 = previous, 6 = current less cycles. Dates are ISO YYYY-MM-DD.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cycle | Yes | 1 = month, 2 = quarter, 3 = year, 4 = week | |
| payer | No | ||
| period | Yes | Invoice period relative to the cycle | |
| endDate | No | ||
| customer | Yes | Customer object (required) | |
| nextDate | Yes | Next invoice date YYYY-MM-DD (required) | |
| invoiceNo | No | ||
| startDate | Yes | Start date YYYY-MM-DD (required) | |
| taxAmount | Yes | ||
| invoiceRows | Yes | ||
| totalAmount | Yes | ||
| currencyCode | No |