Place a new VPS order by authenticating with your WHMCS credentials and specifying the order details in JSON format.
true
or false
.applycredit
is set to true
and there is sufficient credit in the account, the response will return:
{ "invoicepaid": true }
{ "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
}
Successfully added a new VPS order.
The response is of type object
.