Delete invoice
well_delete_invoiceDelete an invoice from Well (soft delete).
REQUIRED: invoice_id
Soft-deletes the invoice. Linked line items and payment_means rows are NOT cascade-deleted — they remain in the database, orphaned. The delete is reversible only at the database level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | The UUID of the invoice to delete | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which. | |
| idempotency_key | No | Optional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| success | Yes | ||
| invoice_id | No |