Apply Credit
whmcs_apply_creditApply credit to a customer's invoice by providing the invoice ID and credit amount, with an option to suppress notification emails.
Instructions
Apply credit to an invoice
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": {
"invoiceid": "<invoiceid>",
"amount": "<amount>"
},
"name": "whmcs_apply_credit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of credit to apply | |
| noemail | No | Do not send email | |
| invoiceid | Yes | Invoice ID |