请求头

请求头必填说明
AuthorizationBearer YOUR_ACCESS_TOKEN,账号访问令牌(控制台登录态,非 sk- API Key)

接口:GET /api/user/topup/info 返回当前站点的充值配置:可用支付方式、最低充值额、快捷金额、折扣,以及各类在线支付/兑换码开关。前端充值页据此渲染;发起在线支付(POST /api/user/pay)前先调用此接口拿到 pay_methods[].type

curl "https://top.qingyuntop.ai/dashboard//api/user/topup/info" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response

{
  "success": true,
  "message": "",
  "data": {
    "enable_online_topup": true,
    "enable_stripe_topup": false,
    "enable_creem_topup": false,
    "enable_waffo_topup": false,
    "enable_waffo_pancake_topup": false,
    "enable_redemption": true,
    "payment_compliance_confirmed": true,
    "payment_compliance_terms_version": 1,
    "pay_methods": [
      { "name": "支付宝", "type": "alipay", "color": "rgba(var(--semi-blue-5), 1)", "min_topup": "1" },
      { "name": "微信", "type": "wxpay", "color": "rgba(var(--semi-green-5), 1)", "min_topup": "1" }
    ],
    "waffo_pay_methods": null,
    "creem_products": null,
    "min_topup": 1,
    "stripe_min_topup": 1,
    "waffo_min_topup": 1,
    "waffo_pancake_min_topup": 1,
    "amount_options": [10, 30, 50, 100, 300],
    "discount": { "100": 0.95, "300": 0.9 },
    "topup_link": ""
  }
}
字段类型说明
enable_online_topupboolean是否开启易支付(在线扫码)充值
enable_stripe_topup / enable_creem_topupboolean是否开启 Stripe / Creem 充值
enable_waffo_topup / enable_waffo_pancake_topupboolean是否开启 Waffo / Waffo Pancake 全球支付
enable_redemptionboolean是否允许使用兑换码(POST /api/user/topup
payment_compliance_confirmedboolean管理员是否已确认支付合规条款(未确认时 pay_methods 为空)
payment_compliance_terms_versionnumber当前合规条款版本号
pay_methodsarray易支付可用支付方式列表,每项 { name, type, color, min_topup }
pay_methods[].typestring支付方式标识,发起支付时作为 payment_method 传入,例如 alipaywxpay
pay_methods[].min_topupstring该支付方式的最低充值额(字符串,与顶层 min_topup 整数不同)
waffo_pay_methodsarraynull
creem_productsarraynull
min_topupinteger易支付最低充值额度数量(低于此值 POST /api/user/amount 报错)
stripe_min_topup / waffo_min_topup / waffo_pancake_min_topupinteger对应渠道的最低充值额
amount_optionsnumber\[\]充值页快捷金额按钮
discountobject阶梯折扣表 { 额度: 折扣系数 },乘在实付金额上
topup_linkstring外部充值跳转链接(为空表示用站内充值)