apply_credit
Pay Hostkey invoices in full or in part from the account credit balance; deducts the specified amount and requires confirmation to complete.
Instructions
Pay an invoice in full or in part from the credit balance (whmcs/apply_credit). MONEY: deducts funds from the account.
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": {
"invoice_id": "<invoice_id>",
"amount": "<amount>",
"confirm": "<confirm>"
},
"name": "apply_credit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Payment amount in account currency | |
| confirm | Yes | Must be true to run the operation. | |
| invoice_id | Yes | Invoice number |