Apply a deposit to an invoice
deposit_applyApply part of a held deposit to one invoice: it records that amount as a PAYMENT through the invoice server. amount_minor defaults to the lesser of held and owed. More than either, or a pre-arrival date, is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Deposit id such as DEP-2026-0001, or an exact client name | |
| date | No | YYYY-MM-DD, the day the deposit was set against the invoice. Defaults to today | |
| note | No | Free text kept on the application row | |
| invoice | Yes | The invoice number to apply it to, e.g. INV-2026-0001 | |
| amount_minor | No | How much of the deposit to apply, in minor units. Defaults to the smaller of what is held and what the invoice still owes |