invoice_adjustment_delete
DestructiveIdempotent
[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.
Input Schema
TableJSON 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 |