Loading...

Knowledge Base

Modify or Upgrade a Multi Domain Linux Hosting Order Using the API

Summary

When you want to modify or upgrade an existing Multi Domain Linux Hosting order using the API. This article explains the required order and plan inputs and how to submit the modification or upgrade request.


Description

Modifies or upgrades an existing Multi Domain Linux Hosting order.


Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredYour Live Account Reseller ID used to authenticate the API request.
api-keyStringRequiredYour API key used to authenticate the API request.
order-idIntegerRequiredThe Order ID that is to be modified.
new-plan-idIntegerRequiredThe new plan to which the order is to be upgraded or downgraded. You can retrieve the available plan IDs using the Plan Details API described below.
monthsIntegerRequiredThe number of months in the new plan for which the order is to be modified.
invoice-optionStringRequiredDetermines how the Customer Invoice is handled. Supported values are NoInvoice, PayInvoice, KeepInvoice, and OnlyAdd.
discount-amountFloatOptionalDiscount amount for the order value.


Get the New Plan ID

Use the Plan Details API to retrieve the available Multi Domain Linux Hosting plan IDs.


HTTP Method

GET


Example Test URL Request

https://test.httpapi.com/api/products/plan-details.json?auth-userid=0&api-key=key

The Multi Domain Linux Hosting plans are returned under the relevant product key.


US, Texas Server

multidomainhosting

India Server

multidomainhostinglinuxin

Use the required plan ID returned in the response as the new-plan-id.


Modify or Upgrade the Order

HTTP Method

POST


Example Test URL Request

US, Texas Server

https://test.httpapi.com/api/multidomainhosting/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.0

India Server

https://test.httpapi.com/api/multidomainhosting/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.0


Response

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