deprovisionCredential
Deprovisions a credential regardless of its current lifecycle stage.
Given a credentialRecordId (as returned by findCredentialRecords), this mutation:
- Revokes the credential if it has been issued to a wallet.
- Cancels the remote issuance request if it is a pending offer.
- Cancels the in-person issuance offer if it has not been redeemed.
The operation is idempotent — calling it on an already-deprovisioned credential succeeds without error and returns the current status.
Returns an error when the credentialRecordId does not resolve to any known record.
deprovisionCredential(
credentialRecordId: ID!
): CredentialRecordStatus!
Arguments
deprovisionCredential.credentialRecordId ● ID! non-null scalar
Type
CredentialRecordStatus enum
The unified lifecycle status of a credential record.
States are grouped into four phases: Offer, Verification, Issuance, and Credential lifecycle. Transient states (offerAccepted, verificationCompleted) are used only in audit events and never returned by queries.