draft_invoice
Create a DRAFT invoice in Xero with VAT preview. Returns line totals and tax amounts for review before sending.
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": {
"contact_name": "<contact_name>",
"contact_email": "<contact_email>",
"line_items": "<line_items>",
"due_date": "<due_date>",
"api_key_hash": "<api_key_hash>"
},
"name": "draft_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes for internal use | |
| currency | No | Currency code (defaults to EUR) | EUR |
| due_date | Yes | Due date (YYYY-MM-DD) | |
| reference | No | Invoice reference number | |
| line_items | Yes | Invoice line items | |
| api_key_hash | Yes | Customer API key hash identifying Xero token | |
| contact_name | Yes | Invoice recipient name | |
| contact_email | Yes | Invoice recipient email address |