Create draft Xero sales invoice
xero_create_draft_invoiceCreate a draft ACCREC sales invoice in Xero from a contact, invoice and due dates, and line items; it does not approve, email, or send invoices.
Instructions
Create an ACCREC sales invoice with status DRAFT only. It never approves, emails, or sends invoices.
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": {
"contactId": "<contactId>",
"invoiceDate": "<invoiceDate>",
"dueDate": "<dueDate>",
"lineItems": "<lineItems>"
},
"name": "xero_create_draft_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dueDate | Yes | Due date as YYYY-MM-DD | |
| contactId | Yes | Xero ContactID | |
| lineItems | Yes | ||
| reference | No | ||
| invoiceDate | Yes | Invoice date as YYYY-MM-DD | |
| currencyCode | No | Optional currency enabled in Xero; unit amounts use this currency. Omission uses the organisation base currency. | |
| lineAmountTypes | No | Invoice tax basis; omitted values use Exclusive | Exclusive |