Delete non-receipt payment
delete_paymentRemove a card payment, bank transfer, or promissory note that has no receipt number. Use when a payment was recorded with wrong amount or client, or never arrived.
Instructions
Remove a collection that has no receipt number of its own — a card payment, bank transfer, promissory note and so on. Irreversible.
Use this to undo a create_payment that recorded the wrong amount, the wrong client or a payment that never arrived. Because these payments have no series and number, identify one either by the invoice it settles (invoiceNumber, plus invoiceSeries) — which is the reliable way — or, if it is not tied to an invoice, by paymentDate and paymentValue together with the client.
For receipts (chitanta), use cancel_payment or delete_receipt instead. Confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientCif | No | Client CIF. Not needed when the invoice is known. | |
| clientName | No | Client name. Not needed when the invoice is known. | |
| paymentDate | No | Payment date (YYYY-MM-DD). Not needed when the invoice is known. | |
| paymentType | Yes | Type of the payment to delete. | |
| paymentValue | No | Payment amount. Not needed when the invoice is known. | |
| invoiceNumber | No | Number of the settled invoice. | |
| invoiceSeries | No | Series of the settled invoice. | |
| companyVatCode | No | Issuing company CIF. Falls back to SMARTBILL_VAT_CODE. |