Mark an invoice paid
invoice_mark_paidRecord a payment on an invoice, adding to the paid amount and preventing overpayment by checking the open balance. Optionally pay off the full remaining balance when no amount is specified.
Instructions
Record a payment. It ADDS to what is already paid (never replaces it) and refuses an amount that would overpay, naming the open balance. Omit amount to pay off the rest in full.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount received in major units, ADDED to what is already paid on this invoice. Omit to pay off the remaining balance in full | |
| method | No | How it was paid, e.g. bank transfer, card. Stored on this payment's row | |
| number | Yes | ||
| paid_date | No | YYYY-MM-DD, defaults to today | |
| reference | No | Bank reference or transaction id for this payment. Stored on this payment's row |