Loading...

Knowledge Base

Adding a Reseller Linux Hosting Order Using the API

When your system or integration needs to provision a Reseller Linux Hosting order automatically. This article explains the API request parameters required to add a hosting order, including customer details, plan selection, billing options, dedicated IP configuration, auto-renew settings, discounts, and response details.

Add

  • Description
  • Parameters
  • HTTP Method
  • Example Test URL Request
  • Response

Description

Places a Reseller Linux Hosting Order for the specified domain name.

Parameters

 

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
domain-nameStringRequiredThe domain name for which the Order to be placed.
customer-idIntegerRequiredThe Customer under whom the Order should be added.
monthsIntegerRequiredThe number of months for which the Order to be placed.
plan-idIntegerRequiredThe plan under which the Order should be added. To fetch the plan details i.e. plan-id etc., use this method.
add-dedicated-ipBooleanOptionalValues can be: true or false (default). To learn more, click here.
auto-renewBooleanRequired

Enables / Disables the Auto Renewal setting for the Order.

Note

Auto-Renewal

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/resellerhosting/linux/us/add.json?auth-userid=0&api-key=key&domain-name=name&customer-id=0&months=0&plan-id=0&invoice-option=NoInvoice&discount-amount=0.00 India Server https://test.httpapi.com/api/resellerhosting/linux/in/add.json?auth-userid=0&api-key=key&domain-name=name&customer-id=0&months=0&plan-id=0&invoice-option=NoInvoice&discount-amount=0.00

Response

Returns a map with the execution details of the Order addition.