Skip to main content
重新激活激活码
curl --request POST \
  --url https://api.example.com/api/v1/projects/{project_id}/codes/reactivate \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "code": "<string>",
  "reactivated_by": "<string>",
  "reason": "<string>"
}
'
{
  "success": true,
  "code_id": "<string>",
  "code": "<string>",
  "reactivated_at": 123,
  "message": "<string>",
  "error_code": "<string>"
}
Resets a used (verified) activation code to unused. Request body must include code (required); optional reactivated_by and reason. Reactivation succeeds only when the code is used, not disabled, not expired, and the project is enabled. Use for scenarios such as refunds or rolling back mistaken verification. Response success=true means success; otherwise check error_code (e.g. CODE_ALREADY_UNUSED, CODE_EXPIRED).

Authorizations

X-API-Key
string
header
required

API Key + X-Timestamp + X-Signature(HMAC-SHA256)

Path Parameters

project_id
string
required

Body

application/json
code
string
required
reactivated_by
string
reason
string

Response

重新激活结果

success
boolean
code_id
string | null
code
string
reactivated_at
integer | null
message
string
error_code
string | null