Create Invoice
whmcs_create_invoiceCreate new client invoices by specifying client ID, dates, line items, tax rates, payment method, and status. Generate accurate billing records directly in WHMCS.
Instructions
Create a new invoice for a client
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": {
"userid": "<userid>"
},
"name": "whmcs_create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Invoice date (YYYY-MM-DD) | |
| notes | No | Invoice notes | |
| status | No | Invoice status | |
| userid | Yes | Client ID | |
| duedate | No | Due date (YYYY-MM-DD) | |
| taxrate | No | Tax rate percentage | |
| taxrate2 | No | Second tax rate percentage | |
| itemtaxed | No | Line items taxed flags | |
| itemamount | No | Line item amounts | |
| sendinvoice | No | Send invoice email | |
| paymentmethod | No | Payment method | |
| itemdescription | No | Line item descriptions |