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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer": "<customer>",
"startDate": "<startDate>",
"nextDate": "<nextDate>",
"cycle": "<cycle>",
"period": "<period>",
"invoiceRows": "<invoiceRows>",
"taxAmount": "<taxAmount>",
"totalAmount": "<totalAmount>"
},
"name": "merit_create_recurring_invoice"
}
}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 |