MYOB: Record invoice payment
myob_record_invoice_paymentMYOB: Record money received from a customer against one or more open invoices. Records the payment as Sales > Record invoice payment does and returns the amount applied to each invoice with its new balance and status. A payment that settles an invoice in full closes it; a smaller amount leaves it open. An amount above the open invoices makes MYOB create a customer credit, so check the balance with get_invoice first. Payments already reconciled cannot be changed later. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Payment date. Default: today. | |
| payments | Yes | Objects with invoice_number, amount and optional discount. | |
| reference | No | Reference number. Default: the next number MYOB suggests. | |
| customer_id | Yes | Customer card ID from list_customers, e.g. CUS000012. | |
| description | No | Description of transaction. | |
| bank_account | Yes | Account code from list_bank_accounts, the account the money came in to or goes out of. |