创建仓库
POST
/api/open/v2/warehouses/create
请求参数
Body 参数application/json
body
object (WarehouseSaveParam)
必需
code
string
编码
name
string
名称
staffCodes
array[string]
可选
默认负责员工为登录员工
warehouseType
integer
可选
示例
{
"body": {
"code": "WH-SH-ELECTRONIC",
"name": "上海电子仓",
"staffCodes": ["EMP-2024-WM001"],
"warehouseType": 2
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sit.newcoretech.com/api/open/v2/warehouses/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"code": "WH-SH-ELECTRONIC",
"name": "上海电子仓",
"staffCodes": ["EMP-2024-WM001"],
"warehouseType": 2
}
}'
返回响应
🟢200成功
application/json
Body
com.xinheyun.model.response.BaseResponse
code
integer
可选
message
string
可选
示例
{
"code": 0,
"message": ""
}