Record payment
record_paymentRecord a payment received against an invoice and reduce the amount due.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Payment date. Default: today. | |
| amount | Yes | Amount received, at most the amount due. | |
| method | No | Payment method name, e.g. Bank Deposit, Cash, Credit Card. Default: Unknown. | |
| reference | No | e.g. the check number. | |
| invoice_id | Yes | Invoice ID from list_invoices. |