Cancel-VPS.
curl --request POST \
--url https://order.edisglobal.com/kvm/v2/cancel/product \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data email=yourwhmc_email \
--data pw=yourwhmcs_password \
--data kvmid=kvm_xxxxx_yyyyy \
--data serviceid=1234 \
--data 'type=End of Billing Period'import requests
url = "https://order.edisglobal.com/kvm/v2/cancel/product"
payload = {
"email": "yourwhmc_email",
"pw": "yourwhmcs_password",
"kvmid": "kvm_xxxxx_yyyyy",
"serviceid": "1234",
"type": "End of Billing Period"
}
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_xxxxx_yyyyy',
serviceid: '1234',
type: 'End of Billing Period'
})
};
fetch('https://order.edisglobal.com/kvm/v2/cancel/product', 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/cancel/product",
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_xxxxx_yyyyy&serviceid=1234&type=End%20of%20Billing%20Period",
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/cancel/product"
payload := strings.NewReader("email=yourwhmc_email&pw=yourwhmcs_password&kvmid=kvm_xxxxx_yyyyy&serviceid=1234&type=End%20of%20Billing%20Period")
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/cancel/product")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("email=yourwhmc_email&pw=yourwhmcs_password&kvmid=kvm_xxxxx_yyyyy&serviceid=1234&type=End%20of%20Billing%20Period")
.asString();require 'uri'
require 'net/http'
url = URI("https://order.edisglobal.com/kvm/v2/cancel/product")
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_xxxxx_yyyyy&serviceid=1234&type=End%20of%20Billing%20Period"
response = http.request(request)
puts response.read_body{
"status": "success",
"serviceid": 123456,
"clientid": 123
}{
"status": "error",
"message": "Invalid parameters or missing required fields.",
"errors": [
"service ID is required",
"cancellation type is invalid"
]
}{
"status": "error",
"message": "Invalid WHMCS credentials provided.",
"suggestion": "Please check your credentials and try again."
}{
"status": "error",
"message": "The specified KVM ID or service ID does not exist.",
"hint": "Please verify the provided KVM ID or service ID and try again."
}Cancel VPS
To cancel a VPS product, provide either the KVM ID or service ID, along with the type of cancellation you wish to proceed with.
POST
/
kvm
/
v2
/
cancel
/
product
Cancel-VPS.
curl --request POST \
--url https://order.edisglobal.com/kvm/v2/cancel/product \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data email=yourwhmc_email \
--data pw=yourwhmcs_password \
--data kvmid=kvm_xxxxx_yyyyy \
--data serviceid=1234 \
--data 'type=End of Billing Period'import requests
url = "https://order.edisglobal.com/kvm/v2/cancel/product"
payload = {
"email": "yourwhmc_email",
"pw": "yourwhmcs_password",
"kvmid": "kvm_xxxxx_yyyyy",
"serviceid": "1234",
"type": "End of Billing Period"
}
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_xxxxx_yyyyy',
serviceid: '1234',
type: 'End of Billing Period'
})
};
fetch('https://order.edisglobal.com/kvm/v2/cancel/product', 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/cancel/product",
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_xxxxx_yyyyy&serviceid=1234&type=End%20of%20Billing%20Period",
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/cancel/product"
payload := strings.NewReader("email=yourwhmc_email&pw=yourwhmcs_password&kvmid=kvm_xxxxx_yyyyy&serviceid=1234&type=End%20of%20Billing%20Period")
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/cancel/product")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("email=yourwhmc_email&pw=yourwhmcs_password&kvmid=kvm_xxxxx_yyyyy&serviceid=1234&type=End%20of%20Billing%20Period")
.asString();require 'uri'
require 'net/http'
url = URI("https://order.edisglobal.com/kvm/v2/cancel/product")
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_xxxxx_yyyyy&serviceid=1234&type=End%20of%20Billing%20Period"
response = http.request(request)
puts response.read_body{
"status": "success",
"serviceid": 123456,
"clientid": 123
}{
"status": "error",
"message": "Invalid parameters or missing required fields.",
"errors": [
"service ID is required",
"cancellation type is invalid"
]
}{
"status": "error",
"message": "Invalid WHMCS credentials provided.",
"suggestion": "Please check your credentials and try again."
}{
"status": "error",
"message": "The specified KVM ID or service ID does not exist.",
"hint": "Please verify the provided KVM ID or service ID and try again."
}Body
application/x-www-form-urlencoded
Your WHMCS email address.
Example:
"yourwhmc_email"
Your WHMCS password.
Example:
"yourwhmcs_password"
The KVM ID to cancel if the service ID is unknown.
Example:
"kvm_xxxxx_yyyyy"
The service ID to cancel if the KVM ID is unknown.
Example:
"1234"
The type of cancellation. Either 'Immediate' or 'End of Billing Period'.
Example:
"End of Billing Period"
Last modified on January 21, 2025
Was this page helpful?
âI