sdhwindows
True if reseller signed up for any SDH Windows Product (US or IN or UK)
HTTP to HTTPS Redirection - IIS
Windows servers supports IIS URL Rewrite module. You can make use of this module to automatically redirect your visitors from HTTP to HTTPS.
Setting the HTTPS Redirection
-
Ensure that the Digital Certificate is properly installed on your Hosting Order, and the site is resolving on https://yourdomainname.com.
NoteYour site will work on https://yourdomainname.com or https://www.yourdomainname.com or https://subdomain.yourdomainname.com, depending on the Common Name for which you had the certificate issued. Resolving HTTPS on anything other than this Common Name would result in a certificate name mismatch error.
-
Create a web.config file under the site's directory and add the following lines to it. In case there already exists a web.config in your site's directory, carefully edit it to add these lines:
<common_name> needs to be replaced by the Common Name for which the Digital Certificate is issued.
Get DNS Records
Description
Gets the DNS records of a Single Domain Windows Hosting Order.
Parameters
Name | Data Type | Required / Optional | Description |
---|---|---|---|
auth-userid | Integer | Required | Authentication Parameter |
api-key | String | Required | Authentication Parameter |
order-id | Integer | Required | Order Id of the Single Domain Windows Hosting Order |
HTTP Method
GET
Example Test URL Request
US, Texas Server
https://test.httpapi.com/api/singledomainhosting/windows/us/dns-record.json?auth-userid=0&api-key=key&order-id=0
US, California Server
https://test.httpapi.com/api/singledomainhosting/windows/us/ca/dns-record.json?auth-userid=0&api-key=key&order-id=0
UK Server
https://test.httpapi.com/api/singledomainhosting/windows/uk/dns-record.json?auth-userid=0&api-key=key&order-id=0
India Server
https://test.httpapi.com/api/singledomainhosting/windows/in/dns-record.json?auth-userid=0&api-key=key&order-id=0
Hong Kong Server
https://test.httpapi.com/api/singledomainhosting/windows/hk/dns-record.json?auth-userid=0&api-key=key&order-id=0
Turkey Server
https://test.httpapi.com/api/singledomainhosting/windows/tr/dns-record.json?auth-userid=0&api-key=key&order-id=0
Response
Returns DNS records of the domain name.
Change Hosting Panel Password
Description
Changes the hosting panel password of the specified Single Domain Windows Hosting Order.
Parameters
Name | Data Type | Required / Optional | Description |
---|---|---|---|
auth-userid | Integer | Required | Authentication Parameter |
api-key | String | Required | Authentication Parameter |
order-id | Integer | Required | Order ID of the Single Domain Windows Hosting Order whose hosting panel password needs to be changed. |
new-passwd | String | Required | New password. |
HTTP Method
POST
Example Test URL Request
US, Texas Server
https://test.httpapi.com/api/singledomainhosting/windows/us/change-password.json?auth-userid=0&api-key=key&order-id=0&new-passwd=password1
US, California Server
https://test.httpapi.com/api/singledomainhosting/windows/us/ca/change-password.json?auth-userid=0&api-key=key&order-id=0&new-passwd=password1
UK Server
https://test.httpapi.com/api/singledomainhosting/windows/uk/change-password.json?auth-userid=0&api-key=key&order-id=0&new-passwd=password1
India Server
https://test.httpapi.com/api/singledomainhosting/windows/in/change-password.json?auth-userid=0&api-key=key&order-id=0&new-passwd=password1
Hong Kong Server
https://test.httpapi.com/api/singledomainhosting/windows/hk/change-password.json?auth-userid=0&api-key=key&order-id=0&new-passwd=password1
Turkey Server
https://test.httpapi.com/api/singledomainhosting/windows/tr/change-password.json?auth-userid=0&api-key=key&order-id=0&new-passwd=password1
Response
Returns status as success if the password is changed successfully.
Get Customer Pricing
Description
Use this method to get details of the pricing for the Single Domain Windows Hosting plans.
Response
Returns a map with the prices of the Single Domain Windows Hosting plans along with the prices of the other products.
The response structure for the Single Domain Windows Hosting will be:
"productkey":
{
"planid":
{
"action":
{
"tenure-in-months":price
},
"ssl":price
}
}
Example:
US, Texas Server
"singledomainhostingwindowsus":
{
"1":
{
"renew":
{
"3":0.0,
"12":0.0
},
"ssl":0.0,
"add":
{
"3":0.0,
"12":0.0
}
},
"2":
{
"renew":
{
"3":0.0,
"12":0.0
},
"add":
{
"3":0.0,
"12":0.0
}
}
}
US, California Server
"singledomainhostingwindowsusca":
{
"1":
{
"renew":
{
"3":0.0,
"12":0.0
},
"ssl":0.0,
"add":
{
"3":0.0,
"12":0.0
}
},
"2":
{
"renew":
{
"3":0.0,
"12":0.0
},
"add":
{
"3":0.0,
"12":0.0
}
}
}
UK Server
"singledomainhostingwindowsuk":
{
"1":
{
"renew":
{
"3":0.0,
"12":0.0
},
"ssl":0.0,
"add":
{
"3":0.0,
"12":0.0
}
},
"2":
{
"renew":
{
"3":0.0,
"12":0.0
},
"add":
{
"3":0.0,
"12":0.0
}
}
}
India Server
"singledomainhostingwindowsin":
{
"1":
{
"renew":
{
"3":0.0,
"12":0.0
},
"ssl":0.0,
"add":
{
"3":0.0,
"12":0.0
}
},
"2":
{
"renew":
{
"3":0.0,
"12":0.0
},
"add":
{
"3":0.0,
"12":0.0
}
}
}
Hong Kong Server
"singledomainhostingwindowshk":
{
"1":
{
"renew":
{
"3":0.0,
"12":0.0
},
"ssl":0.0,
"add":
{
"3":0.0,
"12":0.0
}
},
"2":
{
"renew":
{
"3":0.0,
"12":0.0
},
"add":
{
"3":0.0,
"12":0.0
}
}
}
Turkey Server
"singledomainhostingwindowstr":
{
"1":
{
"renew":
{
"3":0.0,
"12":0.0
},
"ssl":0.0,
"add":
{
"3":0.0,
"12":0.0
}
},
"2":
{
"renew":
{
"3":0.0,
"12":0.0
},
"add":
{
"3":0.0,
"12":0.0
}
}
}
Get Modify/Upgrade Price
Description
Gets the applicable modify/upgrade price for a particular Single Domain Windows Hosting Order.
Parameters
Name | Data Type | Required / Optional | Description |
---|---|---|---|
auth-userid | Integer | Required | Authentication Parameter |
api-key | String | Required | Authentication Parameter |
order-id | Integer | Required | The OrderId for which the details are to be fetched. |
new-plan-id | Integer | Required | The new plan to which the Order is to be upgraded/downgraded. To fetch the plan details: plan-id etc., use this method. |
months | Integer | Required | The number of months (tenure) in the new plan for which the Order to be placed. |
HTTP Method
GET
Example Test URL Request
US, Texas Server
https://test.httpapi.com/api/singledomainhosting/windows/us/modify-pricing.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0
US, California Server
https://test.httpapi.com/api/singledomainhosting/windows/us/ca/modify-pricing.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0
UK Server
https://test.httpapi.com/api/singledomainhosting/windows/uk/modify-pricing.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0
India Server
https://test.httpapi.com/api/singledomainhosting/windows/in/modify-pricing.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0
Hong Kong Server
https://test.httpapi.com/api/singledomainhosting/windows/hk/modify-pricing.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0
Turkey Server
https://test.httpapi.com/api/singledomainhosting/windows/tr/modify-pricing.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0
Response
Returns the applicable modify/upgrade price for a particular Single Domain Windows Hosting Order.
Example:
{
"upgradecost":0.0,
"modifiedOrderPrice":0.0,
"endtime":"0000000000",
"remainingmonths":0,
"currentOrderPrice":0.0
}
where
-
currentOrderPrice: The current pricing of the Order for remaining months.
-
modifiedOrderPrice: New applicable pricing of the Order as per the new plan.
-
upgradecost: Actual price applicable i.e. modifiedOrderPrice - currentOrderPrice
Search Orders
Description
Gets a list and details of the Single Domain Windows Hosting Orders matching the search criteria.
Parameters
Name | Data Type | Required / Optional | Description |
---|---|---|---|
auth-userid | Integer | Required | Authentication Parameter |
api-key | String | Required | Authentication Parameter |
no-of-records | Integer | Required | Number of Orders to be fetched. |
page-no | Integer | Required | Page number for which details are to be fetched. |
order-id | Array of Integers | Optional | Order Id(s) of the Single Domain Windows Hosting Order(s) whose details need to be fetched. |
reseller-id | Array of Integers | Optional | Reseller Id(s) whose Orders need to be fetched. |
customer-id | Array of Integers | Optional | Customer Id(s) whose Orders need to be fetched. |
show-child-orders | Boolean | Optional | Whether Sub-Reseller Orders need to be fetched or not. |
status | Array of Strings | Optional | Status of the Order: Active, InActive, Deleted, etc. |
domain-name | String | Optional | Name of the Domain of the Single Domain Windows Hosting Order. |
creation-date-start | String | Optional | UNIX TimeStamp for listing of the Single Domain Windows Hosting Orders whose Creation Date is greater than creation-date-start. |
creation-date-end | String | Optional | UNIX TimeStamp for listing of the Single Domain Windows Hosting Orders whose Creation Date is less than creation-date-end. |
expiry-date-start | String | Optional | UNIX TimeStamp for listing of the Single Domain Windows Hosting Orders whose expiry date is greater than expiry-date-start. |
expiry-date-end | String | Optional | UNIX TimeStamp for listing of the Single Domain Windows Hosting Orders whose expiry date is less than expiry-date-end. |
order-by | Array of Strings | Optional | One or more parameters by which you want to sort the Orders. Default is orderid.
Example: If page-no is 1, no-of-records is 30 and order-by is orderid; it will fetch the first 30 Orders which suit the search criteria sorted by orderid. |
HTTP Method
GET
Example Test URL Request
US, Texas Server
https://test.httpapi.com/api/singledomainhosting/windows/us/search.json?auth-userid=0&api-key=key&no-of-records=1&page-no=1
US, California Server
https://test.httpapi.com/api/singledomainhosting/windows/us/ca/search.json?auth-userid=0&api-key=key&no-of-records=1&page-no=1
UK Server
https://test.httpapi.com/api/singledomainhosting/windows/uk/search.json?auth-userid=0&api-key=key&no-of-records=1&page-no=1
India Server
https://test.httpapi.com/api/singledomainhosting/windows/in/search.json?auth-userid=0&api-key=key&no-of-records=1&page-no=1
Hong Kong Server
https://test.httpapi.com/api/singledomainhosting/windows/hk/search.json?auth-userid=0&api-key=key&no-of-records=1&page-no=1
Turkey Server
https://test.httpapi.com/api/singledomainhosting/windows/tr/search.json?auth-userid=0&api-key=key&no-of-records=1&page-no=1
Response
Returns the list of the Single Domain Windows Windows Hosting Orders which match the search criteria.
Get Order Id
Description
Gets the associated Single Domain Windows Hosting Order Id from the domain name.
Parameters
Name | Data Type | Required / Optional | Description |
---|---|---|---|
auth-userid | Integer | Required | Authentication Parameter |
api-key | String | Required | Authentication Parameter |
domain-name | String | Required | The domain name for which the Order Id is to be fetched. |
HTTP Method
GET
Example Test URL Request
US, Texas Server
https://test.httpapi.com/api/singledomainhosting/windows/us/orderid.json?auth-userid=0&api-key=key&domain-name=domainname.asia
US, California Server
https://test.httpapi.com/api/singledomainhosting/windows/us/ca/orderid.json?auth-userid=0&api-key=key&domain-name=domainname.asia
UK Server
https://test.httpapi.com/api/singledomainhosting/windows/uk/orderid.json?auth-userid=0&api-key=key&domain-name=domainname.asia
India Server
https://test.httpapi.com/api/singledomainhosting/windows/in/orderid.json?auth-userid=0&api-key=key&domain-name=domainname.asia
Hong Kong Server
https://test.httpapi.com/api/singledomainhosting/windows/hk/orderid.json?auth-userid=0&api-key=key&domain-name=domainname.asia
Turkey Server
https://test.httpapi.com/api/singledomainhosting/windows/tr/orderid.json?auth-userid=0&api-key=key&domain-name=domainname.asia
Response
Returns the associated Single Domain Windows Hosting Order Id (Integer) of the domain name.
Get Plan Details
Description
Use this method to get details of your plans.
Response
Returns the details of the plans of Single Domain Windows Hosting product along with the plan details of other Products of the reseller.
Example:
The response structure for the Single Domain Hosting Windows will be:
US, Texas Server
singledomainhostingwindowsus
{
"plan-id(value)"
{
"plan details keys" => "plan details values"
}
}
US, California Server
singledomainhostingwindowsusca
{
"plan-id(value)"
{
"plan details keys" => "plan details values"
}
}
UK Server
singledomainhostingwindowsuk
{
"plan-id(value)"
{
"plan details keys" => "plan details values"
}
}
India Server
singledomainhostingwindowsin
{
"plan-id(value)"
{
"plan details keys" => "plan details values"
}
}
Hong Kong Server
singledomainhostingwindowshk
{
"plan-id(value)"
{
"plan details keys" => "plan details values"
}
}
Turkey Server
singledomainhostingwindowstr
{
"plan-id(value)"
{
"plan details keys" => "plan details values"
}
}