POST app/cakeapp/distributionRuleNew
参数:
| 参数名 | 必选 | 类型 | 示例值 | 说明 |
|---|---|---|---|---|
| city_id | 是 | string | 3 | 城市id |
| spec_id | 是 | string | 2304 | 商品规格id |
| product_id | 是 | string | 101345 | 商品id |
| product_amount | 否 | string | 456 | 商品价格 |
| quantitys | 是 | string | 1 | 购买数量 |
| address |
string `json:"city_name"` |
json | 地址详情 |
返回示例
商家自配送/用户自提类型
{
“code”:200,
“msg”:”success”,
“data”:{
“is_distribution”:”1″,
“can_take”:”1″,
“can_ship”:”1″,
“can_same”:”0″,
“validate_delivery_dates”:[
{
“date”:”2022-01-12″,
“date_text”:”1月12日”,
“delivery_amount”:”0″,
“validate_delivery_times”:[
“10:00-12:00”,
“12:00-14:00”,
“14:00-16:00”,
“21:00-23:00”
]
},
{
“date”:”2022-01-13″,
“date_text”:”1月13日”,
“delivery_amount”:”0″,
“validate_delivery_times”:[
“08:00-10:00”,
“10:00-12:00”,
“12:00-14:00”,
“14:00-16:00”,
“16:00-18:00”,
“18:00-20:00”
]
}
],
“validate_take_dates”:[
{
“date”:”2022-01-10″,
“date_text”:”1月10日”,
“validate_take_times”:[
“21:00-23:00”
]
},
{
“date”:”2022-01-11″,
“date_text”:”1月11日”,
“validate_take_times”:[
“10:00-12:00”,
“12:00-14:00”,
“21:00-23:00”
]
}
],
“validate_same_row”:[],
“delivery_text”:”麦库指定时间可以自提可以配送”
}
}
发快递类型
{
“code”:200,
“msg”:”success”,
“data”:{
“is_distribution”:”1″,
“can_take”:”0″,
“can_ship”:”0″,
“can_same”:”1″,
“validate_delivery_dates”:[
],
“validate_take_dates”:[
],
“validate_same_row”:{
“delivery_amount”:”8″
}
“delivery_text”:”2022年1月8日-2022年2月9日48小时内发货,所有订单均加8元运费wonder lab加8元运费”
}
}
返回参数说明
| 参数名 | 类型 | 示例值 | 说明 |
|---|---|---|---|
| is_distribution | string | 0 | 是否可配送 0不可配送、1可配送 |
| can_take | string | 1 | 是否支持门店自提 1-支持,0-不支持 |
| can_ship | string | 1 | 是否支持商户自配送 1-支持,0-不支持 |
| can_same | string | 0 | 是否支持快递配送 1-支持,0-不支持 |
| validate_delivery_dates[] | array | [] | 商家自配送时间集合 |
| validate_delivery_dates[‘date’] | string | 2022-01-12 | 商家自配送日期 |
| validate_delivery_dates[‘date_text’] | string | 1月12日 | 商家自配送月日 |
| validate_delivery_dates[‘delivery_amount’] | string | 0 | 运费 |
| validate_delivery_dates[‘validate_delivery_times’][] | array | [] | 商家自配送当天所有时间段 |
| validate_take_dates[] | array | [] | 用户自提时间集合 |
| validate_take_dates[‘date’] | string | 2022-01-12 | 用户自提日期 |
| validate_take_dates[‘date_text’] | string | 1月12日 | 用户自提月日 |
| validate_take_dates[‘validate_take_times’][] | array | [] | 用户自提当天所有时间段 |
| validate_same_row[] | array | [] | 快递配送集合 |
| validate_same_row[‘delivery_amount’] | string | 8 | 运费 |
| delivery_text | string | 所有订单均加8元运费 | 配送规则描述 |