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.
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": {
"invoiceId": "<invoiceId>",
"paymentId": "<paymentId>"
},
"name": "payments_delete"
}
}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) |