新增一张存货分类
POST
/api/inventoryclass/add
适用版本:支持U8V12.0 及更高版本
使用场景:基础数据同步或前端展示
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.yonyouup.com/api/inventoryclass/add?from_account&to_account&app_key=&token=&tradeid&biz_id' \
--header 'Content-Type: application/json' \
--data-raw '{
"inventoryclass":{
"rank":2,
"end_rank_flag":1,
"name":"PC原辅材料",
"code":"0101"
}
}'
响应示例响应示例
{
"errcode": "string",
"errmsg": "string",
"id": "string",
"tradeid": "string"
}
请求参数
Query 参数
from_account
调用方id
to_account
提供方id
app_key
应用编码
token
必需
tradeid
必需
ds_sequence
可选
biz_id
必需
sync
可选
Body 参数application/json
返回响应
修改于 2021-11-15 13:06:25