查询SKU
通过此接口,您可以通过SKU或者库存编码查询SKU在我司系统的信息。
请求规格说明
请求方式
GET api/stockUnits?skuList={skuList}&idList={idList}
skuList 为您的SKU,idList为库存编码。多个值之前用英文逗号(,)隔开。
skuList 与 idList 二者只需要有一个有值即可,在二者都有值的情况下,skuList 的值会被忽略。
返回数据格式说明
名称 | 类型 | 描述 | 示例值 |
---|---|---|---|
Elements | StockUnit[] | SKU信息,请参导入SKU接口中返回数据格式说明 | |
PageNumber | int | 页码 | |
PageSize | int | 分页大小 | |
TotalItemCount | int | 符合条件的总数目 |
返回数据格式示例
下面为请求 api/stockUnits?skuList=1138,ODM0064
接口返回的示例数据。
{
"Data": {
"Elements": [
{
"Id": "SU0000073",
"SKU": "1138",
"Name": "usb light (blue)",
"Weight": 210,
"Size": null,
"CheckWeight": null,
"CheckSize": null,
"DeclaredNameCn": "usb 灯",
"DeclaredNameEn": "usb light",
"DeclaredValue": {
"Code": "USD",
"Value": 4.22
},
"HsCode": "",
"Characteristics": {
"WithBatteryType": "NOBattery",
"IsFragile": false
},
"IsActive": true,
"CreateOn": "2016-08-06T09:21:37.927Z"
},
{
"Id": "SU0000071",
"SKU": "ODM0064",
"Name": "Test Name 64",
"Weight": 200,
"Size": {
"Length": 1,
"Width": 1,
"Height": 1,
"Unit": "CM"
},
"CheckWeight": null,
"CheckSize": null,
"DeclaredNameCn": "USB 风扇",
"DeclaredNameEn": "USB fan",
"DeclaredValue": {
"Code": "USD",
"Value": 3.22
},
"HsCode": "",
"Characteristics": {
"WithBatteryType": "NOBattery",
"IsFragile": false
},
"IsActive": false,
"CreateOn": "2016-07-04T09:48:38.467Z"
}
],
"PageNumber": 1,
"PageSize": 2,
"TotalItemCount": 2
},
"Succeeded": true,
"Error": null
}