payments_delete
Delete a recorded payment from an invoice, updating its paid amount, balance, and status. Irreversible, use for corrections.
Instructions
Permanently delete a recorded payment from an invoice. Updates the invoice amountPaid and balance, and may change the invoice status back to "unpaid" or "partially_paid". This action is irreversible — use with caution for corrections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | No | Company UUID override (uses active company if not set) | |
| invoiceId | Yes | Invoice UUID | |
| paymentId | Yes | Payment UUID to delete (from payments_list) |