版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 门店作业规则服务
1.1.1. 查询门店作业规则服务
POST /{tenant_id}/soms/storeoperationruleservice/rule
1.1.1.1. 说明
查询门店作业规则服务
1.1.1.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
desc |
升序、降序 |
boolean |
Query |
page |
页码 |
integer (int32) |
Query |
page_size |
每页条数 |
integer (int32) |
Query |
sort_key |
排序字段 |
string |
Body |
store_operation_rule_filter |
过滤条件 |
1.1.1.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
< StoreOperationRule > array |
1.1.1.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule?desc=true&page=0&page_size=0&sort_key=string
请求 body
{
"typeEq" : "string",
"platformIdEq" : "string",
"shopIdEq" : "string",
"storeIdEq" : "string",
"storeIdIn" : [ "string" ],
"stateEq" : "string"
}
1.1.1.5. HTTP响应示例
响应 200
[ {
"type" : "string",
"platform_id" : "33454",
"shop_id" : "33454",
"store_id" : "33454",
"state" : "applying",
"def" : {
"rtn_rule" : {
"limtRtnApproveTimeRange" : "string",
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
},
"pick_rule" : {
"allow_pick_time" : 0.0
}
},
"source" : "string"
} ]
1.1.2. 获取门店作业规则
GET /{tenant_id}/soms/storeoperationruleservice/rule
1.1.2.1. 说明
获取门店作业规则
1.1.2.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
platform_id |
平台ID |
string |
Query |
shop_id |
商家代码 |
string |
Query |
store_id |
门店代码 |
string |
Query |
type |
规则:storeRtnRule(门店退单规则) |
string |
1.1.2.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.2.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule?platform_id=string&shop_id=string&store_id=string&type=string
1.1.2.5. HTTP响应示例
响应 200
{
"type" : "string",
"platform_id" : "33454",
"shop_id" : "33454",
"store_id" : "33454",
"state" : "applying",
"def" : {
"rtn_rule" : {
"limtRtnApproveTimeRange" : "string",
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
},
"pick_rule" : {
"allow_pick_time" : 0.0
}
},
"source" : "string"
}
1.1.3. 删除门店作业规则
DELETE /{tenant_id}/soms/storeoperationruleservice/rule/delete
1.1.3.1. 说明
删除门店作业规则
1.1.3.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
platform_id |
平台ID |
string |
Query |
shop_id |
商家代码 |
string |
Query |
store_id |
门店代码 |
string |
Query |
type |
规则:storeRtnRule(门店退单规则) |
string |
1.1.3.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
default |
successful operation |
无内容 |
1.1.3.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule/delete?platform_id=string&shop_id=string&store_id=string&type=string
1.1.4. 按参数获取门店作业规则服务
POST /{tenant_id}/soms/storeoperationruleservice/rule/fetch/by/param
1.1.4.1. 说明
按参数获取门店作业规则服务
1.1.4.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Body |
param |
参数 |
1.1.4.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.4.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule/fetch/by/param
请求 body
{
"type" : "string",
"platform_id" : "string",
"shop_id" : "string",
"store_id" : "string",
"fetch_by_ptm_store_ignore_shop" : true
}
1.1.4.5. HTTP响应示例
响应 200
{
"type" : "string",
"platform_id" : "33454",
"shop_id" : "33454",
"store_id" : "33454",
"state" : "applying",
"def" : {
"rtn_rule" : {
"limtRtnApproveTimeRange" : "string",
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
},
"pick_rule" : {
"allow_pick_time" : 0.0
}
},
"source" : "string"
}
1.1.5. 保存门店作业规则
POST /{tenant_id}/soms/storeoperationruleservice/rule/save
1.1.5.1. 说明
保存门店作业规则
1.1.5.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
operator |
操作人 |
string |
Body |
store_operation_rule_save |
自提规则 |
1.1.5.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
default |
successful operation |
无内容 |
1.1.5.4. HTTP请求示例
请求 path
/string/soms/storeoperationruleservice/rule/save?operator=string
请求 body
{
"platform_id" : "33454",
"type" : "33454",
"shop_id" : "storeRtnRule",
"store_id" : "0001",
"def" : {
"rtn_rule" : {
"limtRtnApproveTimeRange" : "string",
"allow_part_refund" : true,
"allow_float" : true,
"manual_receive" : true
},
"pick_rule" : {
"allow_pick_time" : 0.0
}
}
}
2. 定义
2.1. StoreOperationRtnRule
| 名称 | 说明 | 类型 |
|---|---|---|
allow_float |
默认值 : |
boolean |
allow_part_refund |
默认值 : |
boolean |
limtRtnApproveTimeRange |
样例 : |
string |
manual_receive |
默认值 : |
boolean |
2.2. StoreOperationRule
| 名称 | 说明 | 类型 |
|---|---|---|
def |
规则内容 |
|
platform_id |
平台ID |
string |
shop_id |
商家ID |
string |
source |
样例 : |
string |
state |
是否开通:applying(未开通)、opened(已开通) |
enum (applying, opened) |
store_id |
门店ID |
string |
type |
样例 : |
string |
2.3. StoreOperationRuleDef
| 名称 | 说明 | 类型 |
|---|---|---|
pick_rule |
样例 : 门店作业拣货规则 |
|
rtn_rule |
2.4. StoreOperationRuleFilter
| 名称 | 说明 | 类型 |
|---|---|---|
platformIdEq |
样例 : |
string |
shopIdEq |
样例 : |
string |
stateEq |
样例 : |
string |
storeIdEq |
样例 : |
string |
storeIdIn |
样例 : |
< string > array |
typeEq |
样例 : |
string |
2.5. StoreOperationRuleSave
| 名称 | 说明 | 类型 |
|---|---|---|
def |
def |
|
platform_id |
平台ID |
string |
shop_id |
商家代码 |
string |
store_id |
门店代码 |
string |
type |
类型 |
string |
2.6. 门店作业拣货规则
| 名称 | 说明 | 类型 |
|---|---|---|
allow_pick_time |
限制拣货时间,允许提前多久分钟开始拣货,单位分钟 |
number |
2.7. 门店运营规则获取参数
| 名称 | 说明 | 类型 |
|---|---|---|
fetch_by_ptm_store_ignore_shop |
查平台门店的规则是否忽略商家 |
boolean |
platform_id |
平台Id |
string |
shop_id |
平台商家Id |
string |
store_id |
门店Id |
string |
type |
类型 |
string |