update_transaction
Modify existing transaction details in LunchMoney, including date, amount, payee, category, status, and tags to keep financial records accurate.
Instructions
Update an existing transaction
Input Schema
Name | Required | Description | Default |
---|---|---|---|
input | Yes |
Input Schema (JSON Schema)
{
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"debit_as_negative": {
"description": "Pass true if debits are provided as negative amounts",
"type": "boolean"
},
"skip_balance_update": {
"description": "Skip updating balance for assets/accounts",
"type": "boolean"
},
"transaction": {
"additionalProperties": false,
"description": "Transaction data to update",
"properties": {
"amount": {
"description": "Amount as string with up to 4 decimal places",
"type": "string"
},
"asset_id": {
"description": "Asset ID for manual accounts",
"type": "number"
},
"category_id": {
"description": "Category ID",
"type": "number"
},
"currency": {
"description": "Three-letter lowercase currency code",
"type": "string"
},
"date": {
"description": "Date in YYYY-MM-DD format",
"type": "string"
},
"external_id": {
"description": "External ID (max 75 characters)",
"type": "string"
},
"notes": {
"description": "Transaction notes",
"type": "string"
},
"payee": {
"description": "Payee name",
"type": "string"
},
"recurring_id": {
"description": "Recurring expense ID",
"type": "number"
},
"status": {
"description": "Transaction status",
"enum": [
"cleared",
"uncleared",
"pending"
],
"type": "string"
},
"tags": {
"description": "Array of tag IDs",
"items": {
"type": "number"
},
"type": "array"
}
},
"type": "object"
},
"transaction_id": {
"description": "ID of the transaction to update",
"type": "number"
}
},
"required": [
"transaction_id",
"transaction"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}