Add or edit a ledger line
save_ledger_itemAdd a line to a gig's finances as the Finances tab in the app does, or edit an UNPAID one. Without ledger_item_id this adds a line: ledger_type, amount, description and date are required. ledger_type is INCOME (money received), RECEIVABLE (an invoice/what a client owes), EXPENSE (money spent), or PAYABLE (a cost or payout still owed — set counterparty_user_id or counterparty_name). amount is positive in the item's currency (default USD); date is the civil day YYYY-MM-DD. account_id is resolved automatically when the org has one account of the matching type; otherwise pick one from list_ledger_accounts. INCOME and EXPENSE are created PAID and cannot then be edited; RECEIVABLE and PAYABLE start UNPAID, so to log a cost or income that has not changed hands yet, use PAYABLE or RECEIVABLE. With ledger_item_id (from get_event_ledger) it edits that line: each field you pass overwrites the stored value, fields you leave out are unchanged, and counterparty_user_id, assigned_to_user_id, counterparty_name or notes as "" clear them. Only UNPAID lines can be edited: a PAID line is refused, so undo a manually recorded payment with reverse_ledger_payment first. A line that belongs to an invoice or an overtime entry refuses changes to its amount, currency, date, description, type, tax or counterparty; change the invoice or overtime entry in the Soundcheck app instead. Bookkeeping only: no money moves and nobody is notified. Use record_ledger_payment for payments already made outside Soundcheck; settle_event only closes the gig after payouts are settled and does not pay lines. Members see only items involving them; admins/owners see all. When the organization has QuickBooks Online connected, the change is also sent to QuickBooks. Runs on the first call; there is no confirmation step.
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": {
"event_id": "<event_id>"
},
"name": "save_ledger_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | civil day YYYY-MM-DD (required when adding) | |
| notes | No | internal notes; "" clears | |
| amount | No | amount of the line in its currency (required when adding) | |
| currency | No | ISO code, default USD | |
| event_id | Yes | the gig whose ledger the line is on | |
| tax_rate | No | tax rate as a percentage of amount, e.g. 8.25 for 8.25% | |
| account_id | No | from list_ledger_accounts; auto-resolved when adding without one | |
| description | No | what the line is for (required when adding) | |
| ledger_type | No | kind of finance line; give it when adding | |
| invitation_id | No | when adding: link a PAYABLE to a gig invitation | |
| tax_inclusive | No | true when amount already includes the tax; false when the tax is added on top | |
| ledger_item_id | No | edit this ledger item (id from get_event_ledger); omit to add a line | |
| budget_category | No | when adding: budget bucket label | |
| organization_id | No | defaults to caller's active org; must be the event's org | |
| counterparty_name | No | free-text counterparty when not a user; "" clears | |
| assigned_to_user_id | No | member responsible for the line; "" clears | |
| counterparty_user_id | No | the person paid (PAYABLE) or paying (RECEIVABLE), by user id; "" clears |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | the API response { status (HTTP status), data: { crew_invoice, receipts [{ id, filename, content_type, size_bytes, url, uploaded_at, can_delete }], can_upload_receipts, account { external_id, external_provider, id, is_system, name, type }, account_id, amount, assigned_to_user_id, budget_category, can_mark_received, can_undo_received, counterparty_name, counterparty_user_id, created_by, crew_offer_id, currency, date, description, event_id, and 14 more fields } } | |
| error | No | when ok is false |