Skip to main content

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​

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"
}
}

Error Codes​

HTTP Status CodemessageMeaning and Suggested Action
400Order is manually locked, aborting reissue is not supportedThe order is manually locked and aborting the reissue is not supported; contact support
400Certificate submission is pending, please try again laterThe certificate is being submitted to the CA; retry later
400Error message returned by the CACancelling the reissue on the CA side failed; troubleshoot based on the message content; contact support if there is no useful information
404The certificate is not found, or has been cancelled or refundedThe certificate does not exist, has been cancelled or refunded, or does not belong to the workspace of the current API key
422The certificate is already issued, no need to abort the reissueThe certificate is not in the reissue process; nothing to cancel
422The certificate has been revoked, cannot abort the reissueThe certificate has been revoked; the reissue cannot be aborted
422The certificate has not been submitted yet, no need to abort the reissueThe certificate has not been submitted to the CA; nothing to cancel
422No restorable historical issuance record foundData anomaly; contact support
422Parameter validation messageThe certificate ID was not provided or cannot be resolved; the response also includes errors details
422 Responses Include errors Details

When 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:

  1. The certificate's current ca_status is pending, i.e. a reissue request is being processed
  2. The order is not manually locked
  3. The certificate is not in the submission queue (submit_pending is false)
  4. The certificate belongs to the workspace of the current API key

To initiate a reissue again, use the Reissue Certificate API.