Skip to content

GET /api/subscription-plans

请求

内容
方法GET
路径/api/subscription-plans
鉴权管理员高级版

Header 参数

参数位置类型必填说明
AuthorizationHeaderstringBearer <jwt>
Content-TypeHeaderstring无请求体时不需要。

Path 参数

无。

Query 参数

无。

Body 参数

无。

返回值

订阅套餐列表。

返回字段

字段类型说明
idnumber订阅套餐 ID。
namestring套餐名称。
reset_amountstring/number每个周期重置到的额度。
reset_interval_daysnumber重置周期天数,必须大于 0。
enabledboolean是否启用。
created_atstring创建时间。
updated_atstring更新时间。

错误

状态码说明
400参数不合法。
401未登录或登录失效。
403无权限。
404资源不存在。
500服务端错误。

基于 MIT 协议发布(社区版)