产品管理

API - 获取批量续费

描述:获取批量续费

请求方式:GET

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

版本:v1

内部API调用方法名:Host_renewBatchPage

请求参数

参数类型验证规则最大长度描述示例
   ids array[] 产品ID数组 [613,142]
   billingcycles array[] 产品对应周期 {"613":"monthly","142":"monthly"}

返回参数

参数类型验证规则最大长度描述示例
   total price 续费总价 1028.40
   totalsale price 折扣后续费总价 0.00
  _currency array[] - 货币信息
         Lid int - 货币ID 1
         Lcode string - 货币代码 CNY
         Lprefix string - 货币前缀
         Lsuffix string - 货币后缀
         Ldefault int - 是否默认货币:1是,0否 1
  _hosts array[] 产品信息 { "productid": 1, "dedicatedip": "192.168.1.71", "uid": 7, "id": 142, "name": "魔方云主机", "nextduedate": 1638786314, "billingcycle": "monthly", "amount": "23.40", "flag": 1, "groupid": 1, "promoid": 0, "groupn": { "id": 1, "groupname": "云服务器", "fa_icon": "el-icon-menu", "order": 0 }, "saleproducts": 0, "nextduedate_renew": 1641464714, "allow_billingcycle": [ { "setup_fee": "1.00", "price": "60.00", "billingcycle": "hour", "billingcycle_zh": "小时", "amount": "54.00", "saleproducts": "36.00", "flags": 1 }, { "setup_fee": "10.00", "price": "20.00", "billingcycle": "day", "billingcycle_zh": "天", "amount": "12.00", "saleproducts": "8.00", "flags": 1 }, { "setup_fee": "10.00", "price": "20.00", "billingcycle": "monthly", "billingcycle_zh": "月付", "amount": "23.40", "saleproducts": 0 }, { "setup_fee": "20.00", "price": "40.00", "billingcycle": "quarterly", "billingcycle_zh": "季付", "amount": "36.00", "saleproducts": "24.00" }, { "setup_fee": "30.00", "price": "60.00", "billingcycle": "semiannually", "billingcycle_zh": "半年付", "amount": "36.00", "saleproducts": "24.00" } ], "flags": 1 }
         Lproductid int 商品ID 1
         Ldedicatedip string 独立IP 192.168.1.71
         Lname string 商品名称 魔方云主机
         Lnextduedate int 到期时间时间戳 1638786314
         Lbillingcycle string 周期 monthly
         Lnextduedate int 到期时间时间戳 1638786314
         Lamount price 续费金额 23.40
   L_groupn array[] 产品菜单 { "id": 1, "groupname": "云服务器", "fa_icon": "el-icon-menu", "order": 0 },
            Lid int 菜单ID 1
            Lgroupname string 菜单名称 云服务器
            Lfa_icon string 图标 1el-icon-menu
            Lorder int 菜单排序 1
         Lpromoid int 优惠码ID 1
         Lflags int 是否有折扣:1是,0否 1
   L_allow_billingcycle array[] 允许的周期 { "setup_fee": "20.00", "price": "40.00", "billingcycle": "quarterly", "billingcycle_zh": "季付", "amount": "36.00", "saleproducts": "24.00" }
            Lbillingcycle string 周期 quarterly
            Lbillingcycle_zh string 周期(中文) 季付
            Lamount price 续费金额 36.00
            Lsetup_fee price 初装费 20.00
            Lprice price 商品价格 40.00
            Lsaleproducts price 折扣后价格 24.00