- Account
- Category
- Company
- Customer
- Freightfee
- Goodslocation
- Goodsowner
- Rolemenu
- Spu
- Supplier
- User
- Userrole
- Warehouse
- Warehousearea
- Action_log
- Asn
- Arrival list
- get Arrival list
- add a new record
- update record
- delete a record
- page search, sqlTitle input asn_status:0 ~ 4
- get a record by id
- add a new record
- update a record
- delete a record
- Bulk modify Goodsowner
- Confirm Delivery change the asn_status from 0 to 1
- Cancel confirm, change asn_status 1 to 0
- Unload change the asn_status from 1 to 2
- Cancel unload change the asn_status from 2 to 1
- sorting, add a new asnsort record and update asn sorted_qty
- get asnsorts list by asn_id
- update or delete asnsorts data
- Sorted change the asn_status from 2 to 3
- Cancel sorted change the asn_status from 3 to 2
- get pending putaway data by asn_id
- PutAway
- Dispatchlist
- page search
- advanced dispatch order page search
- add a new record
- update dispatchlist with same dispatch_no
- delete a record
- get dispatchlist by dispatch_no
- get Dispatchlist details with available stock
- get pick list by dispatch_id
- Confirm orders and create dispatchpicklist
- confirm dispatchpicklist picked by dispatch_no
- package dispatchpicklist
- weight dispatchpicklist
- dispatchpicklist outbound delivery
- set dispatchlist freightfee
- sign for arrival
- cancel order opration
- cancel dispatchlist detail opration
- PrintSolution
- Stock
- Stockadjust
- Stockfreeze
- Stockmove
- Stockprocess
- Stocktaking
add a new record
POST
/spu
Spu
请求参数
Body 参数application/json
spu with sku viewModel
id
integer <int32>
id
spu_code
string
spu_code
>= 1 字符<= 32 字符
spu_name
string
spu_name
>= 1 字符<= 200 字符
category_id
integer <int32>
可选
category_name
string
必需
>= 1 字符<= 32 字符
spu_description
string | null
可选
<= 1000 字符
supplier_id
integer <int32>
可选
supplier_name
string | null
可选
<= 256 字符
brand
string | null
brand
<= 128 字符
origin
string | null
origin
<= 256 字符
length_unit
integer <int32>
可选
volume_unit
integer <int32>
可选
weight_unit
integer <int32>
可选
creator
string | null
creator
<= 64 字符
create_time
string <date-time>
可选
last_update_time
string <date-time>
可选
is_valid
boolean
is_valid
detailList
array[object (SkuViewModel) {16}] | null
sku
id
integer <int32>
id
spu_id
integer <int32>
spu_id
sku_code
string
sku_code
>= 1 字符<= 32 字符
sku_name
string
sku_name
>= 1 字符<= 200 字符
bar_code
string | null
bar_code
<= 64 字符
weight
number <double>
weight
lenght
number <double>
lenght
width
number <double>
width
height
number <double>
height
volume
number <double>
volume
unit
string | null
unit
<= 5 字符
cost
number <double>
cost
price
number <double>
price
create_time
string <date-time>
可选
last_update_time
string <date-time>
可选
detailList
array[object (SkuSafetyStockViewModel) {5}] | null
可选
示例
{
"id": 0,
"spu_code": "string",
"spu_name": "string",
"category_id": 0,
"category_name": "string",
"spu_description": "string",
"supplier_id": 0,
"supplier_name": "string",
"brand": "string",
"origin": "string",
"length_unit": 0,
"volume_unit": 0,
"weight_unit": 0,
"creator": "string",
"create_time": "2019-08-24T14:15:22Z",
"last_update_time": "2019-08-24T14:15:22Z",
"is_valid": true,
"detailList": [
{
"id": 0,
"spu_id": 0,
"sku_code": "string",
"sku_name": "string",
"bar_code": "string",
"weight": 0,
"lenght": 0,
"width": 0,
"height": 0,
"volume": 0,
"unit": "strin",
"cost": 0,
"price": 0,
"create_time": "2019-08-24T14:15:22Z",
"last_update_time": "2019-08-24T14:15:22Z",
"detailList": [
{
"id": 0,
"sku_id": 0,
"warehouse_id": 0,
"warehouse_name": "string",
"safety_stock_qty": 0
}
]
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/spu' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"spu_code": "string",
"spu_name": "string",
"category_id": 0,
"category_name": "string",
"spu_description": "string",
"supplier_id": 0,
"supplier_name": "string",
"brand": "string",
"origin": "string",
"length_unit": 0,
"volume_unit": 0,
"weight_unit": 0,
"creator": "string",
"create_time": "2019-08-24T14:15:22Z",
"last_update_time": "2019-08-24T14:15:22Z",
"is_valid": true,
"detailList": [
{
"id": 0,
"spu_id": 0,
"sku_code": "string",
"sku_name": "string",
"bar_code": "string",
"weight": 0,
"lenght": 0,
"width": 0,
"height": 0,
"volume": 0,
"unit": "strin",
"cost": 0,
"price": 0,
"create_time": "2019-08-24T14:15:22Z",
"last_update_time": "2019-08-24T14:15:22Z",
"detailList": [
{
"id": 0,
"sku_id": 0,
"warehouse_id": 0,
"warehouse_name": "string",
"safety_stock_qty": 0
}
]
}
]
}'
返回响应
🟢200Success
application/json
Body
http response viewmodel
isSuccess
boolean
可选
code
integer <int32>
可选
errorMessage
string | null
可选
data
integer <int32>
data
示例
{
"isSuccess": true,
"code": 0,
"errorMessage": "string",
"data": 0
}
修改于 2023-10-10 03:03:53