Record invoice payment
record_invoice_paymentRecords that the client paid, fully or in part, on a sent invoice: the amount, the day (default today, not in the future), the method (bank, card, cash, paypal, other) and a note. It records that the client paid; it does not charge or move money. The invoice becomes paid when the payments cover the total. A payment above the balance needs confirmOverpay. Needs confirm: true; without it the result is a preview with the balance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | The day it was received. Default today, YYYY-MM-DD. | |
| note | No | Up to 500 characters. | |
| amount | Yes | What the client paid. An amount in the currency's main unit, e.g. 85 or "85.50" (not cents). | |
| confirm | No | true performs the action. Without it (or with any value other than the boolean true) nothing changes and the result is a preview of the effects. | |
| invoiceId | Yes | The invoice or estimate. | |
| paymentMethod | No | How it was received. Default other. | |
| confirmOverpay | No | Record it even though it is more than the balance. |