Update Transaction Splits
update_transaction_splitsReplace a transaction's entire split set or remove all splits by passing an empty list. Split amounts must sum to the parent amount for Monarch to accept the update.
Instructions
Replace a transaction's entire set of splits, or remove all splits with [].
Args: transaction_id: Parent transaction ID. For a split leg from list/search, resolve parent_transaction_id with get_transaction_details first. splits: Complete replacement list. Each leg accepts: - amount (required): Negative for expenses, positive for income. Amounts must sum to the parent's amount or Monarch rejects the update. - category_id: Category ID for the leg. - merchant_name: Display name; defaults to the parent merchant. - notes: Per-leg memo.
Example for a -100.00 parent transaction: [{"amount": -70.00, "category_id": "cat_groceries", "notes": "Food"}, {"amount": -30.00, "category_id": "cat_household"}]
Returns transaction_id, has_split_transactions, resulting splits, and a summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| splits | Yes | ||
| transaction_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| splits | Yes | ||
| message | Yes | ||
| transaction_id | Yes | ||
| has_split_transactions | Yes |