产品管理

API - 获取续费

描述:获取续费

请求方式:GET

请求地址:/v1/hosts/:id/renew

版本:v1

内部API调用方法名:Host_renewPage

请求参数

参数类型验证规则最大长度描述示例
   id int require 产品ID 1
   billingcycle string - 周期 monthly

返回参数

参数类型验证规则最大长度描述示例
  _currency array[] - 货币信息
         Lid int - 货币ID 1
         Lcode string - 货币代码 CNY
         Lprefix string - 货币前缀
         Lsuffix string - 货币后缀
  _cycle array[] - 商品可续费周期 { "setup_fee": "0.00", "price": "1000.00", "billingcycle": "monthly", "billingcycle_zh": "月付", "amount": "1005.00", "saleproducts": "0.00" }
         Lbillingcycle string - 周期 monthly
         Lamount price - 续费金额 1005.00
         Lsaleproducts price - 折扣后续费金额 0.00
         Lprice price - 商品价格 1000.00
         Lsetup_fee price - 初装费价格 0.00
  _pay_type array[] - 其它周期付款信息 { "pay_type": "recurring", "pay_hour_cycle": "720", "pay_day_cycle": "30", "pay_ontrial_status": 1, "pay_ontrial_cycle": "10", "pay_ontrial_num": "1", "pay_ontrial_condition": [ "phone", "realname" ], "pay_ontrial_cycle_type": "day", "pay_ontrial_num_rule": "0", "clientscount_rule": "0" }
         Lpay_type string - 付款周期 recurring
         Lpay_hour_cycle int - 小时付周期 720
         Lpay_day_cycle int - 天付周期 30
         Lpay_ontrial_status int - 是否支持试用:1是,0否 1
         Lpay_ontrial_cycle_type string - 试用周期类型:day天,hour小时 1
         Lpay_ontrial_cycle int - 试用周期周期 10
         Lpay_ontrial_condition array[] - 试用条件:phone需要绑定手机号,realname需要实名认证 [ "phone", "realname" ]
         Lpay_ontrial_num int - 试用周期可购买数量:0表示无限制 10
         Lpay_ontrial_num_rule int - 试用规则 1
         Lclientscount_rule int - 试用数量计算规则:0任意状态产品,1激活状态产品 1