xero_create_invoice
Create a draft Xero invoice using a contact ID and line items with account codes; optionally set due date and reference.
Instructions
Create a draft invoice in Xero. Use the contact ID from xero.list_contacts; line items reference Xero account codes.
Args: contact_id (required): Xero contact ID. line_items (required): JSON-string list of line items: [{description, quantity, unit_amount, account_code}]. due_date: Due date (YYYY-MM-DD). reference: Customer-facing invoice reference. project_id: Authenticated Project UUID. project_ref: Exact project correlation reference. connector_account_ref: Project-bound connector account alias. idempotency_key: Stable business-action identity. effect: Claimed read or write effect; Spring verifies it. approval_ref: Approved platform task UUID when resuming a write.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "xero_create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | No | ||
| due_date | No | ||
| reference | No | ||
| contact_id | No | ||
| line_items | No | ||
| project_id | No | ||
| project_ref | No | ||
| approval_ref | No | ||
| idempotency_key | No | ||
| connector_account_ref | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |