Update recurring profile
update_recurringChange a recurring invoice profile (factura recurrente): start or pause the series (is_active), the next or end date, automation flags, payment term, name or reference. Setting is_active=true starts the series: only do it after the user confirmed the start date and frequency, because from then on invoices are finalized and emailed to the customer without a further click. If next_invoice_date is today or earlier, call generate_recurring right after to issue the first invoice now. Pass only the fields to change. Returns the profile's state, next invoice date and whether it sends by email.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| notes | No | ||
| end_date | No | YYYY-MM-DD | |
| auto_send | No | ||
| is_active | No | true = series running, false = draft/paused | |
| profile_id | Yes | ||
| description | No | Referencia, max 200 | |
| payment_days | No | -2 fin de mes, -3 fin del mes siguiente, else days | |
| auto_finalize | No | ||
| next_invoice_date | No | YYYY-MM-DD |