Upgrade a KVM Service
curl --request POST \
--url https://order.edisglobal.com/kvm/v2/add/upgrade \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"pw": "securepassword",
"kvmid": "kvm_123456_789012",
"newpid": 1642,
"newbillingcycle": "monthly",
"newpaymentmethod": "paypal"
}
'import requests
url = "https://order.edisglobal.com/kvm/v2/add/upgrade"
payload = {
"email": "user@example.com",
"pw": "securepassword",
"kvmid": "kvm_123456_789012",
"newpid": 1642,
"newbillingcycle": "monthly",
"newpaymentmethod": "paypal"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'user@example.com',
pw: 'securepassword',
kvmid: 'kvm_123456_789012',
newpid: 1642,
newbillingcycle: 'monthly',
newpaymentmethod: 'paypal'
})
};
fetch('https://order.edisglobal.com/kvm/v2/add/upgrade', 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/add/upgrade",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'user@example.com',
'pw' => 'securepassword',
'kvmid' => 'kvm_123456_789012',
'newpid' => 1642,
'newbillingcycle' => 'monthly',
'newpaymentmethod' => 'paypal'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/add/upgrade"
payload := strings.NewReader("{\n \"email\": \"user@example.com\",\n \"pw\": \"securepassword\",\n \"kvmid\": \"kvm_123456_789012\",\n \"newpid\": 1642,\n \"newbillingcycle\": \"monthly\",\n \"newpaymentmethod\": \"paypal\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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/add/upgrade")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"user@example.com\",\n \"pw\": \"securepassword\",\n \"kvmid\": \"kvm_123456_789012\",\n \"newpid\": 1642,\n \"newbillingcycle\": \"monthly\",\n \"newpaymentmethod\": \"paypal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://order.edisglobal.com/kvm/v2/add/upgrade")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"user@example.com\",\n \"pw\": \"securepassword\",\n \"kvmid\": \"kvm_123456_789012\",\n \"newpid\": 1642,\n \"newbillingcycle\": \"monthly\",\n \"newpaymentmethod\": \"paypal\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"orderid": "228300",
"serviceid": "209052",
"invoiceid": "1617670",
"oldproductname": "KVM BASIC",
"newproductname": "KVM PREMIUM PLUS",
"oldproductid": "1632",
"newproductid": "1642"
}{
"status": "error",
"message": "Invalid parameters provided."
}{
"status": "error",
"message": "Authentication failed. Invalid email or password."
}{
"status": "error",
"message": "Unexpected server error. Please try again later."
}Upgrade VPS
Upgrades a KVM service to a new product within the same location.
POST
/
kvm
/
v2
/
add
/
upgrade
Upgrade a KVM Service
curl --request POST \
--url https://order.edisglobal.com/kvm/v2/add/upgrade \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"pw": "securepassword",
"kvmid": "kvm_123456_789012",
"newpid": 1642,
"newbillingcycle": "monthly",
"newpaymentmethod": "paypal"
}
'import requests
url = "https://order.edisglobal.com/kvm/v2/add/upgrade"
payload = {
"email": "user@example.com",
"pw": "securepassword",
"kvmid": "kvm_123456_789012",
"newpid": 1642,
"newbillingcycle": "monthly",
"newpaymentmethod": "paypal"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'user@example.com',
pw: 'securepassword',
kvmid: 'kvm_123456_789012',
newpid: 1642,
newbillingcycle: 'monthly',
newpaymentmethod: 'paypal'
})
};
fetch('https://order.edisglobal.com/kvm/v2/add/upgrade', 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/add/upgrade",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'user@example.com',
'pw' => 'securepassword',
'kvmid' => 'kvm_123456_789012',
'newpid' => 1642,
'newbillingcycle' => 'monthly',
'newpaymentmethod' => 'paypal'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/add/upgrade"
payload := strings.NewReader("{\n \"email\": \"user@example.com\",\n \"pw\": \"securepassword\",\n \"kvmid\": \"kvm_123456_789012\",\n \"newpid\": 1642,\n \"newbillingcycle\": \"monthly\",\n \"newpaymentmethod\": \"paypal\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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/add/upgrade")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"user@example.com\",\n \"pw\": \"securepassword\",\n \"kvmid\": \"kvm_123456_789012\",\n \"newpid\": 1642,\n \"newbillingcycle\": \"monthly\",\n \"newpaymentmethod\": \"paypal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://order.edisglobal.com/kvm/v2/add/upgrade")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"user@example.com\",\n \"pw\": \"securepassword\",\n \"kvmid\": \"kvm_123456_789012\",\n \"newpid\": 1642,\n \"newbillingcycle\": \"monthly\",\n \"newpaymentmethod\": \"paypal\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"orderid": "228300",
"serviceid": "209052",
"invoiceid": "1617670",
"oldproductname": "KVM BASIC",
"newproductname": "KVM PREMIUM PLUS",
"oldproductid": "1632",
"newproductid": "1642"
}{
"status": "error",
"message": "Invalid parameters provided."
}{
"status": "error",
"message": "Authentication failed. Invalid email or password."
}{
"status": "error",
"message": "Unexpected server error. Please try again later."
}Body
application/json
Example:
"user@example.com"
Example:
"securepassword"
KVM service ID(kvm_id) or numeric client ID.
Example:
"kvm_123456_789012"
New Product ID, must be within the same location
Example:
1642
Billing cycle for the upgraded product. Please select from the dropdown list.
Available options:
monthly, quarterly, semi-annually, annually Example:
"monthly"
Example:
"paypal"
Response
Upgrade successful
Last modified on February 11, 2025
Was this page helpful?
⌘I