描述:获取批量续费
请求方式: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 |