Knowledge Base
Categories: Single Domain Linux Hosting API
Modify or Upgrade Single Domain Linux Hosting Orders Using the API
When you want to modify or upgrade a Single Domain Linux Hosting order. This article explains how to change hosting plans, update billing duration, configure invoice handling options, and apply discounts using the API.
Description
Modifies/upgrades an existing Single Domain Linux Hosting Order.
Parameters
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
| auth-userid | Integer | Required | Your Live Account Reseller Id |
| api-key | String | Required | n alphanumeric code that can be used to authenticate your API calls |
| order-id | Integer | Required | The OrderId which is to be modified. |
| new-plan-id | Integer | Required | The new plan to which the order is to be upgraded/downgraded. |
| months | Integer | Required | The number of months in the new plan for which the Order is to be modified. |
| invoice-option | String | Required | This parameter will decide how the Customer Invoices will be handled. Values can be: NoInvoice, PayInvoice, KeepInvoice, OnlyAdd |
| discount-amount | Float | Optional | Discount amount for the order value. |
HTTP Method
POST
Example Test URL Request
US, Texas Server https://test.httpapi.com/api/singledomainhosting/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
India Server https://test.httpapi.com/api/singledomainhosting/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
Response
Returns a map of the execution details of the modify operation.
Did you find this article helpful?