Skip to content

续费(会员中心) ​

续费页面 ​

项目内容
接口描述续费页面
接口地址/console/v1/host/:id/renew
请求方式GET
接口版本v1

请求参数

nametypedefaultvalidatedesc
idint-validate:requireddesc:产品ID

响应参数

nametypedefaultdesc
hostarray-desc:可续费周期列表
host[].pricefloat-desc:实际支付金额
host[].billing_cyclestring-desc:周期
host[].durationint-desc:周期时间
host[].base_pricefloat-desc:基础原价
host[].idint-desc:周期比例ID
host[].name_showstring-desc:周期名字显示
host[].prrfloat-desc:与产品当前周期比例的比値
host[].price_savefloat-desc:保存至数据库的续费金额
host[].renew_amountfloat-desc:续费金额
host[].max_renewbool-desc:当前周期为true
host[].current_base_pricestring-desc:当前原价

续费 ​

项目内容
接口描述续费
接口地址/console/v1/host/:id/renew
请求方式POST
接口版本v1

请求参数

nametypedefaultvalidatedesc
idint-validate:requireddesc:产品ID
billing_cyclestring-通用产品为中文云产品为英文根据续费页面返回的周期传入validate:requireddesc:周期
customfieldobject-优惠码参数示例{"promo_code":["pr8nRQOGbmv5"]}validate:optionaldesc:自定义参数
client_operate_passwordstring-需要验证时传validate:optionaldesc:操作密码

响应参数

无

批量续费页面 ​

项目内容
接口描述批量续费页面
接口地址/console/v1/host/renew/batch
请求方式GET
接口版本v1

请求参数

nametypedefaultvalidatedesc
idsarray-validate:requireddesc:产品ID数组

响应参数

nametypedefaultdesc
listarray-desc:产品列表
list[].idint-desc:产品ID
list[].product_idint-desc:商品ID
list[].product_namestring-desc:商品名称
list[].namestring-desc:标识
list[].active_timeint-desc:开通时间
list[].due_timeint-desc:到期时间
list[].first_payment_amountstring-desc:金额
list[].billing_cyclestring-desc:周期
list[].statusstring-desc:状态
list[].billing_cyclesarray-desc:可续费周期列表
list[].billing_cycles[].pricefloat-desc:价格
list[].billing_cycles[].billing_cyclestring-desc:周期
list[].billing_cycles[].durationint-desc:周期时间
list[].billing_cycles[].base_pricefloat-desc:基础原价
list[].billing_cycles[].idint-desc:周期比例ID
list[].billing_cycles[].name_showstring-desc:周期名字显示
list[].billing_cycles[].prrfloat-desc:与产品当前周期比例的比値
list[].billing_cycles[].price_savefloat-desc:保存至数据库的续费金额
list[].billing_cycles[].renew_amountfloat-desc:续费金额
list[].billing_cycles[].max_renewbool-desc:当前周期为true

批量续费 ​

项目内容
接口描述批量续费
接口地址/console/v1/host/renew/batch
请求方式POST
接口版本v1

请求参数

nametypedefaultvalidatedesc
idsarray-validate:requireddesc:产品ID数组
billing_cyclesobject-示例{"id":"小时"}validate:requireddesc:周期对象
customfieldobject-优惠码示例{"promo_code":{"host_id":"pr8nRQOGbmv5"}}validate:optionaldesc:自定义参数
client_operate_passwordstring-需要验证时传validate:optionaldesc:操作密码

响应参数

无

获取自动续费设置 ​

项目内容
接口描述获取自动续费设置
接口地址/console/v1/host/:id/renew/auto
请求方式GET
接口版本v1

请求参数

nametypedefaultvalidatedesc
idint-validate:requireddesc:产品ID

响应参数

nametypedefaultdesc
statusint-desc:自动续费状态

自动续费设置 ​

项目内容
接口描述自动续费设置
接口地址/console/v1/host/:id/renew/auto
请求方式PUT
接口版本v1

请求参数

nametypedefaultvalidatedesc
idint-validate:requireddesc:产品ID
statusint-1开启0关闭validate:requireddesc:自动续费状态

响应参数

无