WHMCS · Example Payload

Whmcs Create Invoice Example

Create a new invoice for a client in WHMCS.

Web HostingBilling AutomationClient ManagementDomain ManagementSupport TicketsProvisioning

Whmcs Create Invoice Example is an example object payload from WHMCS, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationdescriptionrequestresponse

Example Payload

Raw ↑
{
  "operation": "CreateInvoice",
  "description": "Create a new invoice for a client in WHMCS.",
  "request": {
    "method": "POST",
    "url": "https://example.com/includes/api.php",
    "headers": {
      "Content-Type": "application/x-www-form-urlencoded"
    },
    "body": {
      "identifier": "your-api-identifier",
      "secret": "your-api-secret",
      "action": "CreateInvoice",
      "responsetype": "json",
      "userid": 1,
      "status": "Unpaid",
      "sendinvoice": true,
      "paymentmethod": "paypal",
      "duedate": "20260601",
      "itemdescription[0]": "Monthly Hosting - May 2026",
      "itemamount[0]": "9.99",
      "itemtaxed[0]": 1
    }
  },
  "response": {
    "status": 200,
    "body": {
      "result": "success",
      "invoiceid": 42
    }
  }
}