Apply to invoice
solo_apply_paymentSettle an invoice (or part of it) with a recorded payment. Bounded on both sides — never more than the payment has left, never more than the invoice still owes; refusals name the numbers. Effects: application recorded; invoice -> paid when fully settled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | How much to apply. Omit for the smaller of what is left on each side. In cents (integer minor units) — 1250 means $12.50. | |
| invoice_id | Yes | The invoice it settles. | |
| payment_id | Yes | The payment, e.g. P-0001. |