获取产品库存
POST
http://logistics.e-sunward.com:8080/scmAPI/rest/inventoryWS/getClientInventory
最后修改时间:2025-06-12 08:05:39
请求参数
Body 参数application/json
TransactionID
string
请求流水号
<= 30 字符
Token
string
授权码
<= 50 字符
GetInventoryType
string
获取库存的类型
WarehouseCode
enum<string>
启德仓库
枚举值:
LAXNJW
NeedPage
boolean
是否分页
默认值:
true
PageNum
string
页码
默认值:
1
示例值:
1
PageSize
string
单页数量
默认值:
10
示例值:
10
SkuList
object
按Sku查询库存
ClientSku
string
客户产品SKU
<= 50 字符
示例
{
"TransactionID": "GERPGO202303211137060000000035",
"Token": "0008000f32f23r2r",
"GetInventoryType": "ALL",
"WarehouseCode": "NJW",
"NeedPage": true,
"PageNum": "1",
"PageSize": "70",
"SkuList": {
"ClientSku": ""
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://logistics.e-sunward.com:8080/scmAPI/rest/inventoryWS/getClientInventory' \
--header 'Content-Type: application/json' \
--data-raw '{
"TransactionID": "GERPGO202303211137060000000035",
"Token": "0008000f32f23r2r",
"GetInventoryType": "ALL",
"WarehouseCode": "NJW",
"NeedPage": true,
"PageNum": "1",
"PageSize": "70",
"SkuList": {
"ClientSku": ""
}
}'
返回响应
🟢200成功
application/json
Body
TransactionID
string
请求流水号
<= 30 字符
RspCode
enum<string>
会话应答类型
<= 1 字符
枚举值:
01
RspDesc
string
会话应答描述
<= 500 字符
SkuInventoryList
array [object {6}]
SKU库存List
ClientSku
string
客户产品SKU
<= 50 字符
SunwardProductSku
string
启德产品SKU
<= 50 字符
WarehouseCode
enum<string>
仓库
<= 10 字符
枚举值:
LAXNJW
Quantity
string
产品库存数量
<= 50 字符
TransitAmount
string
在途库存数量
WaitDelivery
string
等待出库数量
total
string
总条数
示例
{
"SkuInventoryList": [
{
"TransitAmount": "0",
"ClientSku": "R-B00LH3DMUO",
"WaitDelivery": 0,
"SunwardProductSku": "R-B00LH3DMUO",
"Quantity": "1",
"WarehouseCode": "LAX"
},
{
"TransitAmount": "0",
"ClientSku": "SW00001",
"WaitDelivery": 0,
"SunwardProductSku": "SW0005200189",
"Quantity": "1",
"WarehouseCode": "LAX"
}
],
"total": "",
"RspDesc": "成功",
"RspCode": "0",
"TransactionID": "ZZSF201610040000000001"
}
🟠404记录不存在
🟠400参数不正确
修改于 2025-06-12 08:05:39