Create an invoice PDF
create_invoiceMake a PDF invoice from the seller, the customer and the line items. Returns the totals, a private link to the PDF that works for 7 days, and anything the seller's country requires that is still missing. Nothing is sent to the customer. The PDF ends with a small "Made with Conecto" line. What it says the country requires is general information about invoice rules. It is not professional tax or legal advice.
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": {
"seller": "<seller>",
"customer": "<customer>",
"items": "<items>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The lines of the invoice. | |
| notes | No | A note printed above the lines, like a project name or a purchase order number. | |
| paper | No | Default: Letter for USD and CAD, A4 otherwise. | |
| number | No | The invoice number. Default INV-0001. | |
| seller | Yes | Who the invoice is from. Its country sets the invoice's language, its word for tax and the rules checked. | |
| currency | No | ISO 4217 code, like USD, EUR or GBP. Default USD. | |
| customer | Yes | Who the invoice is for. | |
| due_date | No | YYYY-MM-DD. Default: payment_terms_days after the issue date. | |
| language | No | Default: by the seller's country. | |
| tax_rate | No | Tax in percent for lines that give none. Default 0. | |
| tax_label | No | The tax's name on the invoice, like VAT, GST or Sales tax. Default: the word used in the seller's country. | |
| issue_date | No | YYYY-MM-DD. Default today. | |
| legal_notes | No | Small print at the foot. Default: what the seller's country asks for on every invoice (France, Germany). | |
| supply_date | No | YYYY-MM-DD the goods or services were supplied, or the first day of a period. | |
| payment_link | No | An https link where the customer can pay. | |
| supply_until | No | YYYY-MM-DD, the last day of a supply period. | |
| tax_exemption | No | Why lines without tax have none. Printed with the legal wording. | |
| payment_details | No | How to pay, printed under the totals: bank details or another way the seller accepts. | |
| payment_terms_days | No | Days to pay when due_date is left out. Default 14. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | url, name and expires_at of the PDF (create_invoice only). | ||
| sent | No | send_invoice only: to, from, number, sent_at and left_today. | |
| status | No | send_invoice only: code_sent or sent. | |
| invoice | No | Number, dates, parties, lines and totals. | |
| missing | No | What the seller's country requires that the invoice lacks. | |
| warnings | No | What is worth knowing before the invoice goes out. | |
| sender_token | No | send_invoice only: proof the seller's address confirmed its code, for more sends from it. |