描述:添加商品至购物车
请求方式:POST
请求地址:v1/cart/products
版本:v1
内部API调用方法名:Cart_addProducts
请求参数
参数 | 类型 | 验证规则 | 最大长度 | 描述 | 示例 |
product_id | int | require | 11 | 商品ID | 1 |
billingcycle | string | require | 购买周期 | monthly | |
qty | int | require | 购买数量 | 1 | |
host | string | require | 主机名 | ser422497445528 | |
password | string | require | 密码 | daLSEOK4wUIR | |
configoption | json | require | 商品配置项数组:键为配置项ID,值为配置子项ID(注意:当配置项类型为数量时,传数量;当配置项类型为单选框,且不勾选时,不传此configoption值) | {"15297":85257,"15303":1} | |
customfield | json | 有自定义字段时,传此值;键为自定义字段ID,值为客户填写 | {"89":无,"90":"test"} |