描述:计算总价
请求方式:POST
请求地址:v1/products/total
版本:v1
内部API调用方法名:Cart_productsTotal
请求参数
参数 | 类型 | 验证规则 | 最大长度 | 描述 | 示例 |
product_id | int | require | 11 | 商品ID | 1 |
billingcycle | string | require | 购买周期 | monthly | |
qty | int | require | 购买数量 | 1 | |
configoption | json | require | 商品配置项数组:键为配置项ID,值为配置子项ID(注意:当配置项类型为数量时,传数量;当配置项类型为单选框,且不勾选时,不传此configoption值) | {"15297":85257,"15303":1} |
返回参数
参数 | 类型 | 验证规则 | 最大长度 | 描述 | 示例 |
total | price | 总价 | 100.00 | ||
sale_total | price | 折扣价 | 80.00 |