Skip to main content

Terminate Certificate

Permanently terminates a certificate associated with a communication channel, revoking its use for AS2 or encryption operations.

:::danger Irreversible Action Terminating a certificate used for active AS2 connections will immediately break EDI delivery for that channel. Ensure the trading partner has accepted a replacement certificate before terminating the existing one, or use the overlap period provided by Renew Certificate. :::

Endpoint

POST /v2/certificates/terminate

Request Body

FieldTypeRequiredConstraintsDescription
commIdintegerYesMust be a valid Comm IDCommunication channel whose certificate will be terminated
certKeyIdintegerYesMust match an existing certUnique identifier of the certificate to terminate
{
"commId": 5001,
"certKeyId": 88
}

Response

Returns a success boolean confirming the certificate has been terminated.

{
"success": true,
"data": true
}

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/certificates/terminate" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "commId": 5001, "certKeyId": 88 }'

See Also