Loading...

Knowledge Base

Modify or Upgrade Web Services Orders Using the API

When you want to modify or upgrade a Web Services order. This article explains how to change plans, update billing duration, configure invoice handling options, and apply discounts using the API, including supported plan category limitations.

 

Description

Modifies/upgrades an existing Web Services Order.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredYour Live Account Reseller Id
api-keyStringRequiredAuthentication Parameter
order-idIntegerRequiredThe OrderId which is to be modified.
new-plan-idIntegerRequiredThe new Plan to which the order is to be upgraded/downgraded. 
Note
  • The new Plan category can be websitebuilder_plan or email_plan.

  • The new Plan category can be linux_hosting_plan only if the current Plan category is linux_hosting_plan. Similarly, the new Plan category can be windows_hosting_plan only if the current Plan category is windows_hosting_plan. In all other cases, an exception will be thrown if the new Plan category is linux_hosting_plan or windows_hosting_plan.

monthsIntegerRequiredThe number of months in the new Plan for which the Order is to be placed.
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

https://test.httpapi.com/api/webservices/modify.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0&invoice-option=PayInvoice&discount-amount=0.0

Response

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

 
 

Loading...