Repeat an invoice
invoices_save_repeatingAn invoice made again every so many weeks, months or years, like Xero's repeating invoices: the customer and lines as for invoices_create, every and unit, the start date, and an end_date or a number of times. action draft leaves each one for you to check and send; send emails it to the customer on its day. Descriptions and notes may hold [Month], [Year], [Quarter] or [Week], with an offset like [Month+1], filled in from each invoice's date. Each invoice is made by Conecto's worker as this key and costs what invoices_create and invoices_send cost. Change one by repeating_id: only what you pass changes; status paused stops it, active resumes it (dates it missed are skipped). Costs $0.001 per call; nothing if it fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Your own label, e.g. "Hotel service contract". | |
| unit | No | ||
| every | No | Default 1. | |
| items | No | ||
| notes | No | Printed above the lines, e.g. "Thank you for your order" or a project reference. | |
| start | No | The first invoice's date, today or later. Monthly and yearly invoices keep to its day of the month. | |
| times | No | How many invoices in all. | |
| action | No | Default draft. | |
| status | No | ||
| currency | No | ISO 4217, e.g. "USD", "EUR" or "JPY". | |
| customer | No | Who the document is for. Link a CRM record with contact_id or company_id, or give name and email (an email that matches a CRM contact links it). What is given here is printed as it is. | |
| end_date | No | No invoice after this date. "" for none. | |
| e_invoice | No | Invoices and their credit notes as EN 16931 e-invoices (German B2B invoices must be from 2027): factur-x (Factur-X/ZUGFeRD, the XML inside the PDF/A-3) or xrechnung (XRechnung 3.0, its own XML beside the PDF), checked against the EN 16931 schema before sending. "" is the default: none, except that from 2027 an invoice from a German business to a German business above EUR 250 is a factur-x; "none" opts out (a business under the EUR 800,000 turnover allowance until 2028). Needs the customer's country. Default: the profile's. | |
| payment_link | No | An https link to pay this document. Default: the profile's payment_link. | |
| repeating_id | No | From invoices_list_repeating. | |
| tax_exemption | No | Why lines with tax_rate 0 carry no tax, printed on the invoice as the law asks: exempt, zero_rated, reverse_charge (the customer accounts for the VAT), intra_eu (goods to a business in another EU country), export (goods leaving the EU), outside_scope, small_business (a business under its country's small-business VAT exemption, such as UStG §19 or art. 293 B CGI: no line may carry tax). Needed in the EU for any line without tax. Default: the profile's. | |
| payment_terms_days | No | Each invoice falls due this long after its date. Default: the profile's payment terms. | |
| tax_exemption_note | No | The wording printed for the exemption instead of the standard one, e.g. "Steuerbefreit als Kleinunternehmer nach § 19 UStG". |