Knowledge Base
Categories: Multi-Domain Linux Hosting API
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
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
auth-userid | Integer | Required | Your Live Account Reseller ID used to authenticate the API request. |
api-key | String | Required | Your API key used to authenticate the API request. |
order-id | Integer | Required | The Order ID that is to be modified. |
new-plan-id | Integer | Required | The 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. |
months | Integer | Required | The number of months in the new plan for which the order is to be modified. |
invoice-option | String | Required | Determines how the Customer Invoice is handled. Supported values are NoInvoice, PayInvoice, KeepInvoice, and OnlyAdd. |
discount-amount | Float | Optional | Discount 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.
Did you find this article helpful?