SiteLock license
Endpoint: !AutoApplyOrder
https://secure.trust-provider.com/products/!AutoApplyOrder
Use the POST method for this endpoint.
Submit parameters in the x-www-form-urlencoded format.
Request parameters
| Parameter | Requirement | Type | Max.Length | Description | ||
|---|---|---|---|---|---|---|
|
required |
string |
64 chars |
Your account username. This value is case sensitive. |
||
|
required |
string |
128 chars |
Your account password. This value is case sensitive. |
||
|
required |
string |
64 chars |
Specifies a comma-separated string of integers for a product code. There must be exactly one of the following integers specified:
These addon products can only be ordered and used in addition to and during validity period of the SiteLock license.
|
||
|
required |
integer |
The validity period, in days. For SiteLock products the allowed values are:
|
|||
|
required |
string |
255 chars |
The applicant representative’s email address which is used for the organizational callback by Sectigo. |
||
|
optional |
string |
32 chars |
The applicant representative’s telephone number which is used for the organizational callback by Sectigo. Required when Sectigo will perform the organizational callback. |
||
|
conditional |
string |
64 chars |
The applicant representative’s name which is used for the organizational callback by Sectigo. Required when Sectigo will perform the organizational callback. |
||
|
conditional |
string |
64 chars |
The applicant representative’s last name which is used for the organizational callback by Sectigo. Required when Sectigo will perform the organizational callback. |
||
|
optional |
string |
64 chars |
The applicant representative’s job title which is used for the organizational callback by Sectigo. Required when Sectigo will perform the organizational callback. |
||
|
optional |
char |
1 char |
The callback method for verification of the applicant representative’s identity. The allowed values are:
|
||
|
required |
string |
64 chars |
The domain name the SiteLock product is ordered for. |
||
|
optional |
char |
1 char |
Indicates whether the SiteLock product should renew automatically at expiry. To allow automatic renewal, sufficient account funds are required. The allowed values are:
If omitted, the value is determined by the account’s auto‑renew settings. |
||
|
required |
char |
1 char |
Specifies whether the customer will validate the customer’s documents. The allowed values are:
|
||
|
required |
string |
64 chars |
Specifies the organization name. |
||
|
conditional |
string |
128 chars |
The street address where the organization operates. |
||
|
optional |
string |
128 chars |
The second part of the company’s street address (if necessary). |
||
|
optional |
string |
128 chars |
The third part of the company’s street address (if necessary). |
||
|
optional |
string |
128 chars |
The city in which the organization operates. |
||
|
optional |
string |
128 chars |
The state or province in which the organization operates. |
||
|
optional |
string |
2 chars |
An ISO 3166 two-character country code. |
||
|
optional |
char |
1 char |
Specifies the response format. The allowed values are:
If omitted, the value defaults to |
||
|
optional |
char |
1 char |
Specifies whether this is a test order. The allowed values are:
If omitted, the value defaults to |
Sample request
curl --location 'https://secure.trust-provider.com/products/!AutoApplyOrder' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'product=1060' \
--data-urlencode 'days=365' \
--data-urlencode 'isCustomerValidated=N' \
--data-urlencode 'organizationName=Company 3443695' \
--data-urlencode 'organizationalUnitName=Department` \
--data-urlencode 'streetAddress1=Elm Street 12' \
--data-urlencode 'stateOrProvinceName=California' \
--data-urlencode 'countryName=US' \
--data-urlencode '[email protected]' \
--data-urlencode 'appRepTelephone= 38 1234578' \
--data-urlencode 'callbackMethod=T' \
--data-urlencode 'appRepForename=John' \
--data-urlencode 'appRepSurname=Doe' \
--data-urlencode 'appRepTitle=Senior Manager' \
--data-urlencode 'domainName=domain_name.com'
Response
The request is successful when the server returns a response with the error code 0.
Any error code less than 0 indicates an error condition, and the error message provides additional details.
Error responses are returned in application/x-www-form-urlencoded format.
Response format 0 (Plain text)
The MIME type will be text/plain for responseFormat=0 (by default).
The first line of the response contains a status code.
Whether 0 or 1 is returned for successful orders depends on how your account is configured with Sectigo.
Usually, you will take payment from your customer and Sectigo will debit your account funds when you place the order.
However, in special circumstances it can be arranged for Sectigo to take payment from your customer on your behalf.
|
If the status code is less than 0, the second line of the response contains an error message describing the error.
If the status code is greater than or equal to 0, the response can contain the following lines which provide:
| Line | Possible Value | Description |
|---|---|---|
Line 1 |
The status of the order. For more information, see Error codes. |
The status code. |
Line 2 |
An integer. |
The second line contains an order number. |
Line 3 |
|
The amount in your account’s native currency, without a currency symbol. |
Line 4 |
The expected delivery time. |
This value can be ignored and has been deprecated for SiteLock. |
Line 5, 6 or 7 (if applicable) |
A unique alphanumeric value up to 20 characters long. |
The unique value.
Returned if the |
Line 5 or 6 |
The SiteLock user ID up to 16 integers long. |
The fifth line contains |
Line 6 or 7 |
The SiteLock site ID (string). |
The sixth line contains |
Response format 1 (URL-encoded)
Most of Sectigo’s API endpoints use URL-encoded responses. AutoApplyOrder can return responses in the same format by specifying responseFormat=1 in the request.
The MIME type will be application/x-www-form-urlencoded for responseFormat=1.
The following table displays the various parameters that can appear for responseFormat=1.
| Parameter | Description |
|---|---|
|
A numeric code that identifies the type of error and is always present in the response. For more information, see Error codes. |
|
A description of the error.
|
|
An integer.
This parameter is only present when |
|
The amount in your account’s native currency, without a currency symbol.
This parameter is only present when |
|
This value can be ignored and has been deprecated for SiteLock.
This parameter is only present when |
|
A unique alphanumeric value up to 20 characters long. Returned if the |
|
The SiteLock user ID up to 16 integers long. This parameter is only present if a SiteLock license is the only product ordered. |
|
The SiteLock site ID, represented as a string. This parameter is only present if a SiteLock license is the only product ordered. |
Sample success response for ordering SiteLock license
0
987654321
100.00
123456
12ab34cd
| Output | Details | ||
|---|---|---|---|
|
The successful response. |
||
|
The Sectigo order number. |
||
|
The amount debited to the account — $100.00.
|
||
|
The SiteLock user ID up to 16 integers long. |
||
|
The SiteLock site ID. |
Upgrading and downgrading SiteLock license
When you place an upgrade order:
-
You are charged a pro-rated price for the new license based on the remaining time of the existing license. For example, if you have a one-year SiteLock Basic license for $149, and 6 months into the license you decide to upgrade to SiteLock Pro for $249, you will be charged for the 6 months of the new pro-rated license: ($249/2)-($149/2) = $50. Half of the remaining funds on your SiteLock Basic license are converted to your new license so you’re only charged $50 (all prices are examples).
-
The new license starts from the date of the upgrade and lasts for the duration left on the previous license. In the preceding example, the duration of the new license will be 6 months.
-
If a license is upgraded to a product with lower capacity than an existing add-on, the add-on remains unchanged with the same renewal date, billing term, and auto-renewal setting.
-
If a license is upgraded to a product with a higher capacity than an existing add-on, the existing add-on is cancelled.
Downgrades are only allowed during refund and renewal periods. The renewal period is 30 days by default. The refund period is 14 days by default. Refunds aren’t provided for monthly licenses.
Sample request of upgrading/downgrading SiteLock license
The following is a sample request for upgrading/downgrading a SiteLock license using AutoApplyOrder:
| Parameter | Requirement | Type | Max.Length | Description |
|---|---|---|---|---|
|
required |
string |
64 chars |
Your account username. |
|
required |
string |
128 chars |
Your account password. |
|
required |
integer |
The validity period, in days. |
|
|
required |
string |
64 chars |
Specifies a comma-separated string of integers for a product code. |
|
required |
string |
255 chars |
The applicant representative’s email address which is used for the organizational callback by Sectigo. |
|
required |
string |
64 chars |
The domain name the SiteLock product is ordered for. |
|
optional |
integer |
The order number of the previous license. |
Sample success response for upgrading and downgrading SiteLock license
0
987654321
100.00
| Output | Details | ||
|---|---|---|---|
|
The successful response. |
||
|
The Sectigo order number. |
||
|
The amount debited to the account — $100.00.
|
Sample request of upgrading SiteLock license from monthly to annual
The following is a sample request for upgrading SiteLock license from monthly to annual using AutoApplyOrder:
| Parameter | Requirement | Type | Max.Length | Description |
|---|---|---|---|---|
|
required |
string |
64 chars |
Your account username. |
|
required |
string |
128 chars |
Your account password. |
|
required |
integer |
The validity period, in days. |
|
|
required |
string |
64 chars |
Specifies a comma-separated string of integers for a product code. |
|
required |
string |
64 chars |
The domain name the SiteLock product is ordered for. |
|
required |
char |
1 char |
Specifies whether the customer will validate the customer’s documents. The allowed values are:
|
|
optional |
integer |
The order number of the previous license. |
|
|
required |
string |
255 chars |
The applicant representative’s email address which is used for the organizational callback by Sectigo. |
|
optional |
char |
1 char |
Indicates whether the SiteLock product should renew automatically at expiry. To allow automatic renewal, sufficient account funds are required. The allowed values are:
If omitted, the value is determined by the account’s auto‑renew settings. |
|
optional |
char |
1 char |
Specifies the response format. The allowed values are:
If omitted, the value defaults to |
Sample success response of upgrading SiteLock license from monthly to annual
The following is a sample success response of upgrading SiteLock license from monthly to annual, using AutoApplyOrder:
| Output | Details | ||
|---|---|---|---|
|
The successful response. |
||
|
The Sectigo order number. |
||
|
The amount debited to the account — $100.00.
|
0
987654321
210.00
SiteLock addon
Request parameters for ordering SiteLock addon
The following is a sample request for ordering a SiteLock addon using AutoApplyOrder:
| Parameter | Requirement | Type | Max.Length | Description |
|---|---|---|---|---|
|
required |
string |
64 chars |
Your account username. This value is case sensitive. |
|
required |
string |
128 chars |
Your account password. This value is case sensitive. |
|
required |
integer |
The validity period, in days. |
|
|
required |
string |
64 chars |
Specifies a comma-separated string of integers for a product code. The allowed values are:
These addon products can only be ordered and used in addition to and during validity period of the SiteLock license. |
|
required |
string |
255 chars |
The applicant representative’s email address which is used for the organizational callback by Sectigo. |
|
optional |
char |
1 char |
Specifies who will verify the applicant representative’s contact details before the callback is performed. The allowed values are:
|
|
required |
string |
64 chars |
The domain name the SiteLock product is ordered for. |
|
optional |
char |
1 char |
Indicates whether the SiteLock product should renew automatically at expiry. To allow automatic renewal, sufficient account funds are required. The allowed values are:
If omitted, the value is determined by the account’s auto‑renew settings. |
|
optional |
integer |
The order number of the previous license. |
curl --location 'https://secure.trust-provider.com/products/!AutoApplyOrder' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'product=1068' \
--data-urlencode 'days=365' \
--data-urlencode 'domainName=domainname.test' \
--data-urlencode '[email protected]' \
--data-urlencode 'enableAutoRenew=N' \
--data-urlencode 'previousOrderNumber=1234567'
Error codes
| Error Code | Error Message | Description |
|---|---|---|
|
|
The request must use HTTPS protocol. |
|
|
The provided argument is not recognized. |
|
|
A required argument is missing from the request. |
|
|
The argument value does not meet validation requirements. |
|
|
The specified country code is not valid according to the ISO-3166 standard. |
|
|
An unknown error occurred. |
|
|
The account does not have sufficient credit. |
|
|
The user does not have permission to access the |
|
|
The request method should be POST. |
|
|
Trial licenses cannot be renewed. |
|
|
The specified domain name has already been validated. |
|
|
The order can include only one main license. |
|
|
Your current license cannot be renewed more than 30 days before its expiration date. |
|
|
The specified PlanID for the product could not be found. |
|
|
The specified parameter can only be used with license products. |
|
|
The provided email address is not valid. |
|
|
The previous order must include a license of the same type. |
|
|
Trial licenses cannot be renewed. |
|
|
The specified argument is not applicable for the current order. |
|
|
The order must include the specified item. |
|
|
The user does not have permission for the specified context. |
|
|
The user does not have permission for the specified context. |
|
|
The Tier1 credit/debit processing encountered an internal error. |
|
|
The Tier1 credit/debit processing encountered an internal error. |
|
|
The Tier1 credit/debit processing encountered an internal error. |
|
|
The specified |
|
|
No price information available for the specified item. |
|
|
The provided item cost is incorrect. |
|
|
The provided item cost is incorrect. |
|
|
The specified product identifier is incorrect. |
|
|
An internal error occurred. |
|
|
Semantic error. TAX is no longer a valid value. Use TIN instead. |
|
|
Semantic error. The format of the provided identifier is incorrect. |
|
|
Semantic error. The country code in the provided identifier is incorrect. |
|
|
The specified site already exists in the system. |
|
|
A generic error indicating a SiteLock synchronous synchronization issue. |
|
|
SiteLock Monitor must be ordered in conjunction with an SSL product. |
|
|
The user does not have sufficient privileges to order the specified product type. |
|
|
The specified parameter is not valid for this product type. |