续费套餐

请求URL

  • {{url}}/api/package/user/renewal

请求方式

  • post

Header

字段名
示例值
必选
类型
说明

Authorization

Bearer {{token}}

string

x-api-key

{{x-api-key}}

string

x-api-secret

{{x-api-secret}}

string

请求参数示例

{
    "id": 11,
    "duration": "month",
    "coupon_code": ""
}

请求json字段说明

字段名
必选
类型
说明

id

string

已购套餐id

duration

string

购买的时长,可选值为month、quarter、year

coupon_code

string

优惠码

成功返回示例

{
    "code": 0,
    "data": null,
    "msg": "更新用户套餐成功"
}

Last updated