Loading...

Knowledge Base

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

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredYour Live Account Reseller Id
api-keyStringRequiredn alphanumeric code that can be used to authenticate your API calls
order-idIntegerRequiredThe OrderId 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.

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.