Loading...

Knowledge Base

Add Add-ons to a Cloud Hosting Order Using the API

When you want to add add-ons to an existing Cloud Hosting order using the API. This article explains supported add-ons, billing options, and API request details for add-on provisioning. 

Description

Adds the specified Add-on for an existing Cloud Hosting Order.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
order-idIntegerRequiredOrder ID of the Order for which the specified Add-on(s) is/are to be added
addonStringRequiredAdd-ons can be one of the following:
  • cpu_1
  • ram_1
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 Server

https://test.httpapi.com/api/cloudsites/linux/us/addon/add.json?auth-userid=0&api-key=key&order-id=0&addon=cpu_1&invoice-option=NoInvoice&discount-amount=0.00

 

India Server

https://test.httpapi.com/api/cloudsites/linux/in/addon/add.json?auth-userid=0&api-key=key&order-id=0&addon=cpu_1&invoice-option=NoInvoice&discount-amount=0.00

 

Response

Returns a map of the execution details of the adding Add-on operation.

Note

IP addresses cannot be provisioned using the API calls. Please contact our Support team in case you wish to add an IP address to your order.