跳转到主要内容
查询单个激活码(按 ID)
curl --request GET \
  --url https://api.example.com/api/v1/projects/{project_id}/codes/{code_id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "code": "<string>",
  "status": true,
  "is_disabled": true,
  "is_expired": true,
  "expires_at": 123,
  "verified_at": 123,
  "verified_by": "<string>",
  "created_at": 123,
  "verification_logs": [
    {
      "id": "<string>",
      "verified_at": 123,
      "verified_by": "<string>",
      "ip_address": "<string>",
      "result": "<string>"
    }
  ]
}
根据激活码 ID 查询单个激活码详情,包含核销状态、禁用/过期状态及 verification_logs(核销记录)。若已知激活码内容而非 ID,请使用 按内容查询

授权

X-API-Key
string
header
必填

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

路径参数

project_id
string
必填
code_id
string
必填

响应

激活码详情

id
string
code
string
status
boolean
is_disabled
boolean
is_expired
boolean
expires_at
integer | null
verified_at
integer | null
verified_by
string | null
created_at
integer
verification_logs
object[]