Split a receipt by item
split_by_itemsSplit a bill line by line so each person pays only for what they ordered, with tax and tip allocated proportionally. Validates item totals against the receipt total before posting.
Instructions
Split a bill line by line instead of equally, so everyone pays for what they ordered. Read the receipt yourself (from a photo, a PDF or text the user pasted) and pass the lines in as items, each with who shares it. Tax and tip are allocated in proportion to what each person ordered, not split equally. Pass total from the receipt and the tool will refuse to post if the lines do not add up, which catches a misread photo before it becomes five wrong balances. Shows a preview and waits for confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | No | Tax as printed. Allocated in proportion to each person's items. | |
| tip | No | Tip as printed. Allocated the same way. | |
| date | No | YYYY-MM-DD. Defaults to today. | |
| items | Yes | ||
| payer | No | "me" or a member name or id. Defaults to me. | |
| total | No | The printed grand total. Strongly recommended: it is the check that the receipt was read correctly. | |
| currency | No | ||
| group_id | Yes | ||
| category_id | No | ||
| description | Yes | What the bill was, e.g. "Dinner at Cervejaria". | |
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| total | No | Decimal amount as a string, two places, e.g. "84.00" | |
| posted | Yes | ||
| currency | No | ||
| group_id | Yes | ||
| breakdown | No | ||
| expense_id | No |