Delete a ledger line
delete_ledger_itemHard-delete an UNPAID ledger line that is not tied to an invitation (for example a duplicate entered by mistake). Prefer void_ledger_item, which keeps the audit trail. Admins/owners, or crew for their own non-payable lines. Confirmation-gated. When the organization has QuickBooks Online connected, the change is also sent to QuickBooks.
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>",
"ledger_item_id": "<ledger_item_id>"
},
"name": "delete_ledger_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_id | Yes | the gig the line belongs to, an id from list_events, open_gigs or my_agenda | |
| ledger_item_id | Yes | ledger item id from get_event_ledger | |
| organization_id | No | defaults to caller's active org; must be the event's org | |
| confirmation_token | No | leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: absent (the API answers 204 with no body) } | |
| error | No | when ok is false |