跳到主要内容

POST /api/private/v1/codes/redeem

兑换卡密,为指定客户激活对应套餐。

请求体

{
"code": "ABC-DEF-GHI",
"customer": "customer_001",
"autoCreate": false
}

成功响应

POST /api/private/v1/redemptions 相同:

{
"ok": true,
"requestId": "req_123",
"data": {
"customer": {
"id": 1,
"username": "customer_001",
"created": false
},
"subscriptions": []
}
}

返回结构与 POST /api/private/v1/redemptions 相同。