Xero Create Bank Transaction
xero_create_bank_transactionCreates a spend or receive money bank transaction in Xero using contact, bank account, line items, and optional date or reference to record bank activity.
Instructions
Create a bank transaction (spend or receive money). Requires XERO_WRITE_ENABLED=true.
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": {
"txn_type": "<txn_type>",
"contact_id": "<contact_id>",
"bank_account_id": "<bank_account_id>",
"line_items": "<line_items>"
},
"name": "xero_create_bank_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Transaction date (YYYY-MM-DD) | |
| txn_type | Yes | SPEND or RECEIVE | |
| reference | No | Reference | |
| contact_id | Yes | Contact UUID | |
| line_items | Yes | JSON array of line items | |
| bank_account_id | Yes | Bank account UUID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |