xero_invoices_create
Create a new invoice or bill in Xero by providing invoice type, contact ID, and line items.
Instructions
Create a new invoice in Xero. Requires type, contact, and at least one line item.
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": {
"Type": "<Type>",
"ContactID": "<ContactID>",
"LineItems": "<LineItems>"
},
"name": "xero_invoices_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Date | No | Invoice date in YYYY-MM-DD format | |
| Type | Yes | Invoice type: ACCREC (sales invoice) or ACCPAY (bill) (required) | |
| Status | No | Initial invoice status (default: DRAFT) | |
| DueDate | No | Due date in YYYY-MM-DD format | |
| ContactID | Yes | The contact ID to create the invoice for (required) | |
| LineItems | Yes | Array of line items (required). Each item needs Description, Quantity, UnitAmount, and AccountCode. | |
| Reference | No | Invoice reference/PO number |