Endpoint: !autoRevokeCertificate
https://secure.trust-provider.com/products/!autoRevokeCertificate
The autoRevokeCertificate API endpoint allows you to revoke a certificate or cancel the order if the certificate has not yet been issued.
Use the POST method for this endpoint.
Submit parameters in the x-www-form-urlencoded format.
The following table lists the required and optional parameters.
| Parameter | Type | Requirement | Max. Length | Description |
|---|---|---|---|---|
|
string |
required |
64 chars |
Your account username. This value is case sensitive. |
|
string |
required |
128 chars |
Your account password. This value is case sensitive. |
|
integer |
required |
The order number of the account. |
|
|
integer |
optional |
Your account ID number. |
|
|
string |
optional |
1024 chars |
A comment describing the reason for revocation. This information is for your reference only and does not affect processing by Sectigo. |
|
integer |
required |
The code of the reason for revocation. The possible values are:
If omitted, |
|
|
char |
optional |
50 chars |
Determines the certificate to be revoked. |
|
integer |
optional |
The product code for the certificate to be revoked. |
|
|
char |
optional |
1 char |
Indicates whether the revocation is a test operation.
If omitted, This value is case sensitive. |
|
integer |
optional |
1 digit |
Specifies the response format. The possible values are:
|
Sample request
curl --location --request POST 'https://secure.trust-provider.com/products/!AutoRevokeCertificate' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'loginName=yourLoginName' \
--data-urlencode 'loginPassword=yourPassword' \
--data-urlencode 'orderNumber=123456' \
--data-urlencode 'codeReason=1' \
--data-urlencode 'revocationReason=Key compromised' \
--data-urlencode 'responseFormat=0'
Response
The request is successful when the server returns a response with the status code = 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 response is text/plain when responseFormat = 0 (by default).
If the status code < 0, the second line of the response is a textual representation of an error message.
autoRevokeCertificate can be instructed to return responses in the URL-encoding format by specifying responseFormat = 1 in the request.
The MIME type will be application/x-www-form-urlencoded
Response parameters
The following table displays the content that can appear in the response.
| Parameter | Type | Description |
|---|---|---|
|
integer |
The numeric code indicating the result of the request. For more information, see Error codes. |
|
string |
The explanation of the error.
This parameter is not present when |