- 开放平台须知
- 开放平台接口
- 巡检
- 主数据
- 获取授权信息
- 运营组织
- 门店信息
- 门店员工
- 公司员工
- 加盟商
- 岗位
- 查询所有员工POST
- 训练
- 费用单
- 表单
新增门店
POST
/{{route}}/md/open/store/addStore
开放平台
最后修改时间:2024-11-25 07:34:18
请求参数
Query 参数
version
string
必需
示例值:
1
Header 参数
Authorization
string
必需
示例值:
{{Authorization}}
Content-Type
string
必需
示例值:
application/json
ent
string
可选
默认值:
{{ent}}
Body 参数application/json
fullName
string
必需
storeCode
string
必需
organizeId
number
必需
organizeCode
string
必需
type
string
必需
franchiseeCode
string
可选
startDate
string
必需
longitude
string
经度
latitude
string
纬度
edition
string
第几代餐厅
示例
{
"fullName": "开放平台新增门店:{{$randomLastName}}",
"storeCode": "{{$timestamp}}",
"organizeId": null,
"organizeCode":"1655117724",
"startDate":"2021-11-20",
"type": "jm",
"franchiseeCode": "",
"latitude": "28.139756",
"longitude": "112.923491",
"edition":"2"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/{{route}}/md/open/store/addStore?version=1&version=' \
--header 'Authorization: {{Authorization}}' \
--header 'ent: {{ent}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"fullName": "开放平台新增门店:{{$randomLastName}}",
"storeCode": "{{$timestamp}}",
"organizeId": null,
"organizeCode":"1655117724",
"startDate":"2021-11-20",
"type": "jm",
"franchiseeCode": "",
"latitude": "28.139756",
"longitude": "112.923491",
"edition":"2"
}'
返回响应
🟢200组织id,新增成功
application/json
Body
message
string
必需
status
integer
必需
示例
{
"message": "新增门店成功!",
"status": 0
}