v1

latestOpenAPI 3.0.02026-07-2248161142.3 KB

Upgrade a KVM Service

Upgrades a KVM service to a new product within the same location.

post/kvm/v2/add/upgrade

Request body

emailstring email
pwstring
kvmidstring

KVM service ID(kvm_id) or numeric client ID.

newpidinteger

New Product ID, must be within the same location

newbillingcycle'monthly' | 'quarterly' | 'semi-annually' | 'annually'

Billing cycle for the upgraded product. Please select from the dropdown list.

newpaymentmethodstring

Example request

{
  "email": "user@example.com",
  "pw": "securepassword",
  "kvmid": "kvm_123456_789012",
  "newpid": 1642,
  "newbillingcycle": "monthly",
  "newpaymentmethod": "paypal"
}

Response

Upgrade successful

statusstring
orderidstring
serviceidstring
invoiceidstring
oldproductnamestring
newproductnamestring
oldproductidstring
newproductidstring

Example response

{
  "status": "success",
  "orderid": "228300",
  "serviceid": "209052",
  "invoiceid": "1617670",
  "oldproductname": "KVM BASIC",
  "newproductname": "KVM PREMIUM PLUS",
  "oldproductid": "1632",
  "newproductid": "1642"
}