ynab_create_receipt_split_transaction
Create a split transaction from itemized receipt data, automatically allocating tax proportionally across categories.
Instructions
Create a split transaction from itemized receipt data with proportional tax allocation.
Args:
budget_id (string, optional): Budget UUID. Omit to use the default budget.
account_id (string, required): Account UUID.
payee_name (string, required): Store/payee name.
receipt_total (number, required): Total amount in dollars (positive).
receipt_tax (number, required): Tax amount in dollars (0 if none).
categories (array, required): Category groups with items. Each item needs name, amount.
date (string, optional): ISO date. Default: today.
memo (string, optional): Memo applied to the parent transaction.
receipt_subtotal (number, optional): Pre-tax subtotal for validation.
cleared (string, optional): "cleared", "uncleared", or "reconciled". Default: "uncleared".
approved (boolean, optional): Mark as approved. Default: false.
flag_color (string, optional): Transaction flag color ("red", "orange", "yellow", "green", "blue", "purple").
dry_run (boolean, optional): Preview subtransactions without saving. Default: false.
Use this helper when you have receipt line items and want tax allocated across categories automatically. For generic manual split transactions without receipt/tax logic, use "ynab_create_transaction" with "subtransactions".
Returns: transaction with subtransactions and receipt_summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget_id | No | ||
| account_id | Yes | ||
| payee_name | Yes | ||
| date | No | ||
| memo | No | ||
| receipt_subtotal | No | ||
| receipt_tax | Yes | ||
| receipt_total | Yes | ||
| categories | Yes | ||
| cleared | No | ||
| approved | No | ||
| flag_color | No | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||