请求头

请求头必填说明
AuthorizationBearer YOUR_ACCESS_TOKEN,账号访问令牌
Content-Typeapplication/json

接口:POST /api/user/topup 使用兑换码给当前账号充值。这个接口是“兑换码充值”,不是在线支付创建订单。

请求体

字段必填类型说明
keystring兑换码
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
}
字段类型说明
datainteger本次兑换增加的额度(model.Redeem 返回 int,单位为 quota,非金额字符串)