Request
Endpoint: !WebHostReport
https://secure.trust-provider.com/products/!WebHostReport
Use the POST method for this endpoint.
Submit parameters in the x-www-form-urlencoded format.
Request parameters
The following table displays the required, optional, and conditional parameters.
| Parameter | Requirement | Type | Max.Length | Description |
|---|---|---|---|---|
|
conditional |
string |
64 chars |
Your account username. This value is case sensitive. |
|
required |
string |
128 chars |
Your account password. This value is case sensitive. |
|
optional |
integer |
The timestamp indicates when the certificate was issued. It is expressed as a UNIX time value. Orders placed before this time will be ignored. |
|
|
optional |
integer |
The timestamp indicates when the certificate was issued. It is expressed as a UNIX time value. The orders placed after this time will be ignored. |
|
|
optional |
integer |
Specifies the index of the first result to return. |
|
|
optional |
integer |
Specifies the index of the last result to return. |
|
|
optional |
string |
64 string |
Specifies the organization name. The allowed characters:
|
|
optional |
string |
255 chars |
Specifies the fully qualified domain name (FQDN).
|
|
optional |
string |
32767 chars |
Specifies one or more comma-separated generated order numbers. If required,
|
|
optional |
string |
32767 chars |
Specifies one or more comma-separated foreign order numbers.
|
|
optional |
string |
32767 chars |
Specifies one or more comma-separated generated certificate IDs.
|
|
optional |
char |
1 char |
Specifies whether to include status details in the report. The allowed values are:
|
|
optional |
integer |
Specifies one or more comma-separated certificate code statuses. The allowed values are:
|
|
|
optional |
string |
64 chars |
Specifies one or more comma-separated certificate statuses. The allowed values are:
|
|
optional |
char |
1 char |
Specifies whether to include additional domains in the report. The allowed values are:
|
|
optional |
char |
1 char |
Specifies whether to include the signature algorithm in the report. The allowed values are:
If omitted, the value defaults to |
|
optional |
integer |
The timestamp indicates when the certificate expires. It is expressed as a UNIX time value. The orders placed before this time will be ignored. |
|
|
optional |
integer |
The timestamp indicates when the certificate expires. It is expressed as a UNIX time value. The orders placed after this time will be ignored. |
|
|
optional |
char |
1 char |
Specifies whether to include old items in the report. The allowed values are:
If omitted, the value defaults to |
|
optional |
char |
1 char |
Specifies whether to include the certificate ID in the report. The allowed values are:
If omitted, the value defaults to |
|
optional |
char |
1 char |
Specifies whether to include the extended status in the report. The allowed values are:
If omitted, the value defaults to |
|
optional |
char |
1 char |
Specifies whether to include only the statuses in the report. The allowed values are:
If omitted, the value defaults to |
|
optional |
char |
1 char |
Specifies whether to include the cost in the response. The allowed values are:
If omitted, the value defaults to |
|
optional |
char |
1 char |
Specifies whether to include associated replacement orders in the report. The allowed values are:
If omitted, the value defaults to |
|
Only one variable of |
Sample request
curl --location 'https://secure.trust-provider.com/products/!WebHostReport' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password
Response
The request is successful when the server returns a response with the status code equals 0.
Any status code less than 0 indicates an error condition.
|
The list of codes and their descriptions can be found in Error codes. |
The MIME type will be application/x-www-form-urlencoded, because the format of the response will be the same URL-encoded format as the request (for example, name1=value1&name2=value2).
Response parameters
The following table displays the various parameters that can appear in the response.
| Parameter | Type | Description |
|---|---|---|
|
integer |
A numeric code that identifies the type of error. For more information, see Error codes. |
|
string |
A description of the error. |
|
integer |
Total number of results. |
|
string |
The generated order number. |
|
string |
An external order number for integration with partner systems. |
|
string |
Description of the current status of the order (for example, 'Pending', 'Processed') |
|
float (15,4) |
Order total amount in the account currency. Shown without the currency symbol. |
|
integer |
Date/time when the order was placed. It is expressed as a UNIX time value. |
|
string |
The name of the company. |
|
string |
The department within the company. |
|
string |
The company’s post office box. |
|
string |
The company’s street address. |
|
string |
The second part of the company’s street address (if necessary). |
|
string |
The third part of the company’s street address (if necessary). |
|
string |
The city in which the company resides. |
|
string |
The company’s state or province. |
|
string |
The company’s postal code. |
|
string |
The company’s full country name (for example, |
|
string |
The validation status. Available if |
|
integer |
The type of the certificate. The possible values are:
|
|
string |
The fully qualified domain name for SSL certificates. The domain insurance covering breaches for TrustLogos (for example, |
|
string |
The additional domain for single certificates if input |
|
string |
The domain names for MDC if the input |
|
string |
The current status of the certificate. |
|
integer |
The date or time when the status of this certificate last changed. It is expressed as a UNIX time value. |
|
integer |
The date or time when the certificate became valid. It is expressed as a UNIX time value. |
|
integer |
The date or time when the certificate stops being valid. It is expressed as a UNIX time value. |
|
integer |
The certificate duration. Displayed in days. |
|
string |
The certificate serial number. Available for SSL certificates only. |
|
string |
The key algorithm. Available for SSL certificates only. |
|
string |
The key size (for example, Available for SSL certificates only. |
|
string |
The webserver software specified in AutoApplySSL that is used with the certificate. Available for SSL certificates only. |
|
integer |
The internal certificate ID for this element of the order where relevant. Available if |
|
integer |
The CSR status of certificate. Available if The possible values are:
|
|
integer |
DCV Status of certificate Available if The possible values are:
|
|
integer |
The OV callback status of the account. Available if The possible values are:
|
|
integer |
A string describing the current status of account validation (OV). Available if The possible values are:
|
|
integer |
The status of Free DV Upgrade. Available if The possible values are:
|
The X in most of the preceding parameters is a placeholder for an integer.
This integer is the 'result number' within the entire result set.
Each 'result number' corresponds to a different order within the entire result set.
The Y is a placeholder for an integer.
It is the 'item number' within an order.
The first item in each order has Y=1.
For example, if firstResultNo=5 and lastResultNo=7 in the request.
The following parameter names for X_orderNumber are displayed in the response:
-
5_orderNumber -
6_orderNumber -
7_orderNumber
The results are sorted in reverse date order (the 'date' being when the order was placed, not the 'valid from' date of any certificate within the order).
Sample success response
The success response with code 0 and getting details for the all webhost’s orders in a time period (notBefore / notAfter).
errorCode=0&noOfResults=1&1_orderNumber=xxxxxxxx&1_orderStatus=Processed&1_foreignOrderNumber=xxxxxx&1_cost=x&x_x_status=Valid&1_1_lastStatusChange=xxxxxxxxxx&1_1_certificateID=xxxxxxxxxx
Error codes
The following table outlines error responses returned by the WebHostReport API endpoint.
Each error response consists of an errorCode and an errorMessage indicating why the request failed.
| Error Code | Error Message | Description |
|---|---|---|
|
|
The request must use HTTPS protocol. |
|
|
The provided argument is not recognized. |
|
|
The required argument is missing from the request. |
|
|
The argument value does not meet validation requirements. |
|
|
An unknown error occurred. |
|
|
The user doesn’t have the permission to perform the specified action. |
|
|
The request method should be |
|
|
Indicates that the maximum number of API calls has been reached. |