智简魔方文档

GET 续费页面

接口概览

项目内容
文档类型前台接口
请求方式GET
接口地址/console/v1/host/{id}/renew
所属业务插件
来源模块/系统续费
认证方式Bearer Token(用户令牌)

完整请求

请求

bash
正在加载示例…

失败请求

bash
正在加载示例…

接口说明

续费页面

请求参数

名称位置类型必选说明
idpathinteger(int32)产品ID

成功响应

json
正在加载示例…

失败响应 400:请求参数或业务校验失败

json
正在加载示例…

失败响应 401:未认证或登录已失效

json
正在加载示例…

失败响应 403:无权执行当前操作

json
正在加载示例…

失败响应 404:接口或业务资源不存在

json
正在加载示例…

失败响应 500:服务器内部错误

json
正在加载示例…

响应状态

状态码状态码含义说明数据模型
200OK成功响应内联对象
400Bad Request请求参数或业务校验失败内联对象
401Unauthorized未认证或登录已失效内联对象
403Forbidden无权执行当前操作内联对象
404Not Found接口或业务资源不存在内联对象
500Internal Server Error服务器内部错误内联对象

响应参数

状态码 200

名称类型必选约束中文名说明
statusinteger(int32)状态码
msgstring提示信息
dataobject
data.host[object]可续费周期列表
data.host[].pricenumber(double) | string实际支付金额
data.host[].billing_cyclestring周期
data.host[].durationinteger(int32)周期时间
data.host[].base_pricenumber(double) | integer基础原价 不包括优惠码客户等级等折扣
data.host[].idinteger(int32)周期比例ID
data.host[].name_showstring周期名字显示
data.host[].prrnumber(double) | integer与产品当前周期比例的比値 开启按比例续费功能会使用
data.host[].price_savenumber(double) | string保存至数据库的续费金额
data.host[].renew_amountnumber(double)续费金额 自有软件使用
data.host[].max_renewboolean当前周期为true 其他周期为false 手动输入优惠码时也为false
data.host[].current_base_pricestring当前原价 自然月预付费为折算后原价 普通周期为完整周期原价 不包括优惠码和客户等级折扣
data.host[].prr_denominatorstring
data.host[].manual_promo_code_successinteger
data.host[].client_level_discountstring
data.host[].promo_code_exclude_client_level_renewboolean
data.host[].renew_client_level_discountstring
data.host[].discount_renew_pricestring
data.host[].is_current_cycleinteger
data.host[].promo_code_discountinteger
data.host[].prr_numeratorstring
data.host[].has_manual_promo_codeinteger
data.host[].promo_code_exclude_client_levelboolean
data.host[].renew_promo_code_discountinteger
renew_forbiddeninteger

失败状态码 400、401、403、404、500 共用以下结构:

名称类型必选约束中文名说明
statusinteger(int32)错误状态码
msgstring错误提示