invoice_adjustment_delete
[REQUIRES APPROVAL] Retires a dilution fact row — the only correction lane (adjustments are append-only; amounts are never edited). If the retired row was a credit that settled the invoice, the status rolls from 'paid' back to 'sent' and paid_at clears; the remaining balance and the derived 'written_off' state re-derive from the live rows immediately. An agent's call parks here for human approval. NEXT: invoice_adjustment_record to re-record the correct amount.
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": {
"id": "<id>"
},
"name": "invoice_adjustment_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The adjustment id (invoice_adjustment_list shows them). | |
| reason | No | ||
| currency | No | ||
| invoice_id | No | ||
| occurred_at | No | ||
| reason_code | No | ||
| amount_cents | No | ||
| adjustment_id | No | Alias of id. | |
| credit_outcome | No | ||
| adjustment_type | No |