请求头
| 请求头 | 必填 | 说明 |
|---|---|---|
Authorization | ✓ | Bearer YOUR_ACCESS_TOKEN,账号访问令牌 |
Content-Type | ✓ | application/json |
接口:POST /api/user/topup 使用兑换码给当前账号充值。这个接口是“兑换码充值”,不是在线支付创建订单。
请求体
| 字段 | 必填 | 类型 | 说明 |
|---|---|---|---|
key | ✓ | string | 兑换码 |
curl "https://top.qingyuntop.ai/dashboard//api/user/topup" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key":"REDEMPTION_CODE"}'Response
{
"success": true,
"message": "",
"data": 10
}| 字段 | 类型 | 说明 |
|---|---|---|
data | integer | 本次兑换增加的额度(model.Redeem 返回 int,单位为 quota,非金额字符串) |