Loading...

Knowledge Base

Modify or Upgrade Reseller Linux Hosting Orders Using the API

When you want to modify or upgrade a Reseller Linux Hosting order. This article explains how to change hosting plans, update billing duration, configure invoice handling options, apply discounts, and add cPanel account blocks using the API.

Modify/Upgrade

Description

Modifies/upgrades an existing Reseller Linux Hosting Order.

Parameters

NameData TypeRequired / Optional
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
order-idIntegerRequiredThe Order ID which is to be modified.
new-plan-idIntegerRequiredThe new plan to which the Order is to be upgraded/downgraded.
monthsIntegerRequiredThe number of months in the new plan for which the Order is to be modified.
invoice-optionStringRequiredThis parameter will decide how the Customer Invoices will be handled. Values can be: NoInvoice, PayInvoice, KeepInvoice, OnlyAdd
discount-amountFloatOptionalDiscount amount for the order value.
cpanel-blocksIntegerOptional

The addon unit of cPanel accounts. 
If the value of this parameter is 1, 10 cPanel accounts will be added.
(1 cPanel block = 10 cPanel accounts)

Value of this parameter will always be greater than 0

HTTP Method

POST

Example Test URL Request

US Server https://test.httpapi.com/api/resellerhosting/linux/us/modify.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0&invoice-option=NoInvoice&discount-amount=0.00&cpanel-blocks=2  India Server https://test.httpapi.com/api/resellerhosting/linux/in/modify.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0&invoice-option=NoInvoice&discount-amount=0.00&cpanel-blocks=2 

Response

Returns a map of the execution details of the modify operation.