Request
Endpoint: !GetDCVDetailsMC
https://secure.trust-provider.com/products/!GetDCVDetailsMC
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 |
|---|---|---|---|---|
|
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 |
128 chars |
The VMC or CMC certificate order number for which to retrieve DCV information. |
Sample request
curl --location 'https://secure.trust-provider.com/products/!GetDCVDetailsMC' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=login_name' \
--data-urlencode 'loginPassword=login_password' \
--data-urlencode 'orderNumber=1234567890'
Response
The response is returned in JSON format with the MIME type application/json; charset=UTF-8.
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.
Response parameters
The response may contain the following parameters:
| Parameter | Description |
|---|---|
|
A numeric code that identifies the type of the error. For more information, see Error codes. |
|
A description of the error. |
|
The requested order number. |
|
An array of domains awaiting DCV, sorted by domain name. The array may be empty. Validated domains are omitted. |
|
The domain name associated with the order. |
|
The unique identifier for the domain. |
|
The current stored DCV status. The possible values are:
|
|
An array of available non-email DCV options for the domain. |
|
The validation candidate. Use it as the DNS record name or file-validation location, depending on the DCV method. |
|
The code identifying the domain control validation (DCV) method. The possible values are:
|
|
The value to publish for the candidate. Depending on the DCV method, this is the DNS record value or target, or the content of the validation file. |
Sample success response
{
"orderNumber": "1234567890",
"certificateID": 12345678901,
"domains": [
{
"domainName": "mail.example.com",
"domainUUID": "01234567-89ab-cdef-0123-456789abcdef",
"dcvStatus": "SELECTED",
"dcvOptions": [
{
"candidate": "_validation-token.mail.example.com",
"protocol": "CNAMERNDVAL",
"verificationValue": "dcv.yourdomain.com"
}
]
}
],
"error": {
"code": 0,
"description": null,
"item": null
}
}
Error codes
| Error Code | Error Message | Description |
|---|---|---|
|
|
The request must use |
|
|
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. |
|
|
Authentication failed due to permission issues. |
|
|
The request method should be |
|
|
The maximum number of allowed API requests has been exceeded. Please wait before submitting additional requests. |