Scenario
External system record newest data of stores and it updates to EZR so that
a) sales order can be delivered with newly opened store
b) customer can check newest information of stores in WeChat
Direction
External system will call EZR
Call path: api/pbase/shopupload
Core Logic
Repeated updates will rewrite old data
100 pieces maximum at a time
Request Parameters
Field | Type | Required | Length | Description |
Code | string | Yes | 1~16 | code of shop |
Name | string | Yes | 1~32 | name of shop |
AltName | string | 1~16 | alias of shop | |
ChannelType | string | Yes | channel of shop | |
ServiceTel | string | 0~15 | telephone number | |
ServiceTel2 | string | 0~15 | telephone number (backup) | |
Province | string | |||
City | string | |||
County | string | |||
Address | string | 0~128 | ||
Longitude | double | |||
Latitude | double | |||
Area | int | area of shop | ||
OpenDate | string | 0~64 | service time | |
OpenPeople | int | 0~1000 | number of staff | |
Remark | string | 0~200 | ||
BrandTag | string | 0~256 | Tag for store |
Example Request (JSON)
[
{
"Code": "HQS0001",
"Name": "上海正大广场店",
"AltName": "正大店",
"ChannelType": "线下",
"ServiceTel": "021-66668888",
"ServiceTel2": "",
"Province": "上海",
"City": "上海市",
"County": "浦东新区",
"Address": "",
"Area": 300,
"OpenDate": "09:30-21:00",
"OpenPeople": 6,
"Remark": ""
},
{
......
}
]
Example Result (JSON)
{
"Status": true,
"StatusCode": 200,
"Msg": "成功",
"Timestamp": "20150622093101",
"Sign": "6ECC9BF07C69E80F6D8552FF7B2E7A8FCA2CC80E",
"Result": 见业务返回结果示例,
}