Abort Reissue API
Cancels an in-progress reissue request and restores the certificate to its state before the reissue.
After a successful abort: if the certificate has a previous issuance record, the last issued certificate is restored (ca_status returns to issued); if the reissue was for a first-time application, the certificate falls back to the awaiting-submission state (ca_status is awating_csr).
Endpoint
POST /api/v1/certificate/abort-reissue
Host:
...
Full URL
/api/v1/certificate/abort-reissue
Request
Content-Type: application/json
{
"service_id": "o91bZ" // Certificate ID, required, the `service_id` returned when the order was created
}
Response
- response
- errors
HTTP/1.1 200 OK
Content-Type: application/json
{
"success": true,
"data": {
"service_id": "o91bZ", // Same certificate ID as passed in the request; the echoed key name matches the request parameter name
"status": "issued", // Certificate status
"ca_status": "issued", // Status on the CA side: `issued` when there is a previous issuance record, or falls back to `awating_csr` for a first-time application
"message": "Reissue request cancelled successfully"
}
}
HTTP/1.1 404 Not Found
Content-Type: application/json
{
"success": false,
"message": "The certificate is not found, or has been cancelled or refunded"
}
HTTP/1.1 422 Unprocessable Content
Content-Type: application/json
{
"success": false,
"message": "The certificate is already issued, no need to abort the reissue"
}
Error Codes
| HTTP Status Code | message | Meaning and Suggested Action |
|---|---|---|
| 400 | Order is manually locked, aborting reissue is not supported | The order is manually locked and aborting the reissue is not supported; contact support |
| 400 | Certificate submission is pending, please try again later | The certificate is being submitted to the CA; retry later |
| 400 | Error message returned by the CA | Cancelling the reissue on the CA side failed; troubleshoot based on the message content; contact support if there is no useful information |
| 404 | The certificate is not found, or has been cancelled or refunded | The certificate does not exist, has been cancelled or refunded, or does not belong to the workspace of the current API key |
| 422 | The certificate is already issued, no need to abort the reissue | The certificate is not in the reissue process; nothing to cancel |
| 422 | The certificate has been revoked, cannot abort the reissue | The certificate has been revoked; the reissue cannot be aborted |
| 422 | The certificate has not been submitted yet, no need to abort the reissue | The certificate has not been submitted to the CA; nothing to cancel |
| 422 | No restorable historical issuance record found | Data anomaly; contact support |
| 422 | Parameter validation message | The certificate ID was not provided or cannot be resolved; the response also includes errors details |
422 Responses Include
errors DetailsWhen parameter validation fails (422), in addition to message, an errors field is returned indicating which parameter is invalid:
{
"success": false,
"message": "The service ID is required",
"errors": {
"service_id": ["The service ID is required"]
}
}
Prerequisites
Before calling, make sure all of the following conditions are met; otherwise the request will be rejected:
- The certificate's current
ca_statusispending, i.e. a reissue request is being processed - The order is not manually locked
- The certificate is not in the submission queue (
submit_pendingis false) - The certificate belongs to the workspace of the current API key
To initiate a reissue again, use the Reissue Certificate API.