Create Invoice
create_invoiceCreate tax-compliant invoices with automatic Spanish IVA calculation and Verifactu support by providing line items and contact details.
Instructions
Create a tax-compliant invoice in Billin with automatic tax calculation. Supports Spanish tax codes (IVA 21%, 10%, 4%, 0%) and Verifactu compliance. Just provide item name, quantity, unit price, and tax code — amounts are computed automatically.
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": {
"lines": "<lines>",
"contact": "<contact>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Invoice line items | |
| contact | Yes | Invoice recipient | |
| dueDate | No | Payment due date YYYY-MM-DD | |
| comments | No | Notes to appear on the invoice | |
| currency | No | ISO 4217 currency code (default: EUR) | EUR |
| reference | No | Internal reference or PO number | |
| issuedDate | No | Issue date YYYY-MM-DD (defaults to today) |