Apply to invoice (invoicing)
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"payment_id": "<payment_id>",
"invoice_id": "<invoice_id>"
},
"name": "solo_apply_payment"
}
}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. |