Skip to main content
重新激活激活码
将已使用(已核销)的激活码重置为未使用状态。请求体需包含 code(必需),可选 reactivated_byreason。仅当激活码处于已使用、未禁用、未过期且项目启用时可重新激活。适用于用户退款、误核销回滚等场景。响应中 success=true 表示成功,否则查看 error_code(如 CODE_ALREADY_UNUSEDCODE_EXPIRED)。

授权

X-API-Key
string
header
必填

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

路径参数

project_id
string
必填

请求体

application/json
code
string
必填
reactivated_by
string
reason
string

响应

重新激活结果

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