Order VPS
Place a new VPS order by authenticating with your WHMCS credentials and specifying the order details in JSON format.
JSON Parameters:
- billingcycle: Specifies the billing cycle, e.g., ‘monthly’ or ‘yearly’.
- paymentmethod: Specifies the payment method, e.g., ‘paypal’.
- applycredit: Specifies whether to apply available account credit for the order. Accepts
trueorfalse. - item: An array of product configurations:
- pid: Product ID.
- os: Operating System ID.
- hostname: Hostname for the VPS.
- additional_ram: Additional RAM requested (optional).
- additional_vcpu: Additional vCPU requested (optional).
- additional_ip: Additional IPs requested (optional).
- additional_diskboost: Additional disk boost requested (optional).
- ssh_pubkey: Public SSH key for access.
Response Behavior:
- If
applycreditis set totrueand there is sufficient credit in the account, the response will return:{ "invoicepaid": true } - If there is insufficient credit or the request is incorrect, the response will return:
{ "invoicepaid": false }
Example JSON:
{
"billingcycle": "monthly",
"paymentmethod": "paypal",
"applycredit": true,
"item": [
{
"pid": 1814,
"os": 92,
"hostname": "kvmtest",
"additional_ram": 467,
"additional_vcpu": 467,
"additional_ip": 467,
"additional_diskboost": 615,
"ssh_pubkey": "ssh-rsa. ..."
},
{
"pid": 1814,
"os": 88,
"hostname": "kvmtest2",
"additional_ram": "",
"additional_vcpu": "",
"additional_ip": "",
"additional_driveboost": "",
"ssh_pubkey": "ssh-rsa. ..."
}
]
}
⚠️ Note:
If you receive a response like "status": "failed" along with an orderid, it may indicate that the VPS could not be provisioned due to the product being out of stock in the selected location.
Example Failed Response:
{
"status": "failed",
"orderid": 241158
}
Documentation Index
Fetch the complete documentation index at: https://docs.edisglobal.com/llms.txt
Use this file to discover all available pages before exploring further.
Body
Your WHMCS email address.
"yourwhmc_email"
Your WHMCS password.
"yourwhmcs_password"
JSON-encoded string that includes order details such as billing cycle, payment method, apply credit, and VPS item configurations. Each item specifies properties like product ID (pid), operating system (os), hostname, additional resources (RAM, vCPU, IP), and an optional SSH public key.
"{\n \"billingcycle\": \"monthly\",\n \"paymentmethod\": \"paypal\",\n \"applycredit\": true,\n \"item\": [\n {\n \"pid\": 1814,\n \"os\": 92,\n \"hostname\": \"kvmtest\",\n \"additional_ram\": 467,\n \"additional_vcpu\": 467,\n \"additional_ip\": 467,\n \"additional_diskboost\": 615,\n \"ssh_pubkey\": \"ssh-rsa. ...\"\n },\n {\n \"pid\": 1814,\n \"os\": 88,\n \"hostname\": \"kvmtest2\",\n \"additional_ram\": \"\",\n \"additional_vcpu\": \"\",\n \"additional_ip\": \"\",\n \"additional_driveboost\": \"\",\n \"ssh_pubkey\": \"ssh-rsa. ...\"\n }\n ]\n}\n"
Response
Successfully added a new VPS order.