版权所有©,上海海鼎信息工程股份有限公司,2016-2025,保留所有权利。
1. 接口定义
1.1. 自提规则服务
1.1.1. 获取自提规则
GET /{tenant_id}/soms/selftakeruleservice/selftakerule
1.1.1.1. 说明
获取自提规则
1.1.1.2. 参数
| 类型 | 名称 | 说明 | 类型 |
|---|---|---|---|
Path |
tenant_id |
租户Id |
string |
Query |
platform_id |
平台ID |
string |
Query |
shop_id |
商家ID |
string |
Query |
store_id |
门店ID |
string |
1.1.1.3. 响应
| HTTP代码 | 说明 | 类型 |
|---|---|---|
200 |
successful operation |
1.1.1.4. HTTP请求示例
请求 path
/string/soms/selftakeruleservice/selftakerule?platform_id=string&shop_id=string
1.1.1.5. HTTP响应示例
响应 200
{
"state" : "applying",
"def" : {
"check_selftake_code" : true
},
"source" : "ptm_store",
"platform_id" : "meituan",
"shop_id" : "33454",
"store_id" : "0001"
}
2. 定义
2.1. SelftakeRule
自提规则
| 名称 | 说明 | 类型 |
|---|---|---|
def |
规则内容 |
|
platform_id |
平台ID |
string |
shop_id |
商家ID |
string |
source |
规则来源,取值:ptm_shop(平台商家)、ptm_store(平台门店) |
string |
state |
是否开通:applying(未开通)、opened(已开通) |
enum (applying, opened) |
store_id |
门店ID |
string |