payments_delete
Permanently deletes a recorded invoice payment, recalculates amount paid and balance, and may reset invoice status to unpaid or partially paid. Use only for irreversible 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) |