Reverse a recorded payment
reverse_ledger_paymentUndo the most recent payment recorded outside Soundcheck on a ledger line (one recorded with record_ledger_payment or the app's Mark as paid). The line returns to UNPAID or its earlier partially-paid balance; the reversal stays on the audit trail. Only manual payments can be reversed — card/Stripe payments need a refund in the app. Does not move money. Only the org owner, an Admin, a Finance member, or a member with finance access can reverse any line; crew only a payment they recorded on their own payout. Each call reverses one more payment, so it is 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": "reverse_ledger_payment"
}
}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: { 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 |