添加物料
系统级参数
名称 |
类型 |
是否必须 |
示例 |
描述 |
v |
String |
否 |
1.0 |
版本 |
format |
String |
否 |
json |
格式,支持:json、xml |
sign |
String |
是 |
0d72e9537ece8864b7e29d392509fda7 |
签名 |
method |
String |
是 |
store.wms.item.add |
方法 |
timestamp |
int |
是 |
1435912385 |
时间戳 |
task |
String |
是 |
14364344528513665503176 |
任务号 |
wms_node_id |
String |
是 |
|
Wms在ERP唯一 |
callback_url |
String |
否 |
|
回调URL |
业务级参数
名称 |
类型 |
示例 |
描述 |
item_lists |
WmsItem |
|
商品列表(json字符串) |
请求参数示例
[{
"item_lists": "{\"item\":[{\"name\":null,\"title\":null,\"item_code\":\"test1\",\"remark\":\"\",\"type\":\"NORMAL\",\"is_sku\":\"1\",\"gross_weight\":\"\",\"net_weight\":\"\",\"tare_weight\":\"\",\"is_friable\":\"\",\"is_dangerous\":\"\",\"pricing_cat\":\"\",\"package_material\":\"\",\"price\":\"\",\"support_batch\":\"\\u5426\",\"support_expire_date\":\"\\u5426\",\"expire_date\":\"2015-07-10\",\"support_barcode\":\"0\",\"barcode\":\"\",\"support_antifake\":\"\\u5426\",\"unit\":\"\",\"package_spec\":\"\",\"ename\":\"\",\"brand\":\"\",\"batch_no\":\"\",\"goods_cat\":\"\",\"color\":\"\",\"property\":\"\"}]}",
"uniqid": "6dfdb40cbf0fa8efc04a6abf5c2dbf2c",
"callback_url": "http://:/index.php/openapi/asynccallback/async_result_handler/id/143652315856891484156271-1436523158",
"task": "143652315856891484156271",
"v": "1.0",
"method": "store.wms.item.add",
"format": "json",
"timestamp": 1436523158,
"wms_node_id": "o1111725941",
"sign": "bdea44560603851491d194fbac65ade8"
}]
响应结果
名称 |
类型 |
是否必须 |
示例 |
描述 |
item_code |
String |
是 |
|
商家编码 |
wms_item_code |
String |
是 |
|
第三方仓储商品编码 |
json格式:
{
"rsp":"fail",
"data":{
'succ': [
{
'item_code': '123456',
'wms_item_code': 'wlb987654321'
}
],
'error': [
{
'item_code': '654321',
'wms_item_code': '',
"error_code": 'xxxx',
"error_description": '编号重复'
}
]
}
}