Create a quote or invoice
invoices_createCreate a quote or an invoice as a draft: the customer (a CRM contact or company, or a name and email), line items, currency and dates. Nothing is numbered or sent yet; change drafts with invoices_update and send them with invoices_send. Amounts are the business's money in the document's currency, rounded half-up line by line. Costs $0.01 per call; nothing if it fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| items | Yes | ||
| notes | No | Printed above the lines, e.g. "Thank you for your order" or a project reference. | |
| currency | No | ISO 4217, e.g. "USD", "EUR" or "JPY". | |
| customer | Yes | 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. | |
| due_date | No | Invoices. Default: issue date + the payment terms. | |
| 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. | |
| issue_date | No | Default: the day it is sent. | |
| supply_date | No | Invoices: the day the goods or services were supplied, or the first day of a period. Default: the issue date, which the invoice then states. | |
| valid_until | No | Quotes. Default: issue date + the profile's quote_valid_days. | |
| payment_link | No | An https link to pay this document. Default: the profile's payment_link. | |
| supply_until | No | Invoices: the last day of the supply period, e.g. a month of service. | |
| 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. | |
| vat_exchange_rate | No | For an invoice in another currency than the national one of the business's country: one unit of it in the national currency, for the VAT shown in both. Default in the EU: the European Central Bank's rate for the day of supply; UK businesses give it. | |
| payment_terms_days | No | Invoices: days to pay, instead of the profile's terms. | |
| tax_exemption_note | No | The wording printed for the exemption instead of the standard one, e.g. "Steuerbefreit als Kleinunternehmer nach § 19 UStG". |