invoice_payments_record
Record a payment received against an invoice. SENDS THE CUSTOMER A RECEIPT BY EMAIL unless sendReceipt is false — this contacts a third party, so confirm the amount with the user first. Partial payments are normal; overpayment is recorded with a warning rather than refused, because money arriving is a fact. The receipt is sent from the user's own email connection, never from a Groundbase address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| amount | Yes | Decimal string in the invoice currency, e.g. "1600.00". | |
| method | No | bank_transfer | card | cash | cheque | other | |
| sendVia | No | Force a transport: smtp or resend. Defaults to the user's SMTP account when connected. | |
| invoiceId | Yes | ||
| reference | No | Cheque number, transfer reference, or payment id. | |
| receivedAt | No | ISO date or datetime. Defaults to now. | |
| sendReceipt | No | Default true. Set false for cash handed over in person where a receipt was already given. |