Skip to main content
POST
/
kvm
/
v2
/
get
/
serviceid
Get Service-ID.
curl --request POST \
  --url https://order.edisglobal.com/kvm/v2/get/serviceid \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data email=yourwhmc_email \
  --data pw=yourwhmcs_password \
  --data kvmid=kvm_xxxxxx_yyyyyyyy
import requests

url = "https://order.edisglobal.com/kvm/v2/get/serviceid"

payload = {
"email": "yourwhmc_email",
"pw": "yourwhmcs_password",
"kvmid": "kvm_xxxxxx_yyyyyyyy"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}

response = requests.post(url, data=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
email: 'yourwhmc_email',
pw: 'yourwhmcs_password',
kvmid: 'kvm_xxxxxx_yyyyyyyy'
})
};

fetch('https://order.edisglobal.com/kvm/v2/get/serviceid', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://order.edisglobal.com/kvm/v2/get/serviceid",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "email=yourwhmc_email&pw=yourwhmcs_password&kvmid=kvm_xxxxxx_yyyyyyyy",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://order.edisglobal.com/kvm/v2/get/serviceid"

payload := strings.NewReader("email=yourwhmc_email&pw=yourwhmcs_password&kvmid=kvm_xxxxxx_yyyyyyyy")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/x-www-form-urlencoded")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://order.edisglobal.com/kvm/v2/get/serviceid")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("email=yourwhmc_email&pw=yourwhmcs_password&kvmid=kvm_xxxxxx_yyyyyyyy")
.asString();
require 'uri'
require 'net/http'

url = URI("https://order.edisglobal.com/kvm/v2/get/serviceid")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "email=yourwhmc_email&pw=yourwhmcs_password&kvmid=kvm_xxxxxx_yyyyyyyy"

response = http.request(request)
puts response.read_body
{
  "status": "success",
  "kvmid": "kvm_123456_789012",
  "serviceid": 987654
}
{
"status": "error",
"message": "Invalid parameters or missing fields."
}
{
"status": "error",
"message": "Invalid WHMCS credentials."
}
{
"status": "error",
"message": "The specified KVM instance does not exist."
}

Body

application/x-www-form-urlencoded
email
string

Your WHMCS email address.

Example:

"yourwhmc_email"

pw
string

Your WHMCS password.

Example:

"yourwhmcs_password"

kvmid
string

The KVM instance ID.

Example:

"kvm_xxxxxx_yyyyyyyy"

Response

Successfully retrieved the service ID.

status
string
Example:

"success"

kvmid
string
Example:

"kvm_123456_789012"

serviceid
integer
Example:

987654

Last modified on January 20, 2025