- Default Group
- Product
- Inbound Plan
- Inventory
- Orders
Inventory Query
POST
/v1/inventory/getInventory
inventory
Request
Header Params
x-api-key
string
required
Example:
abc123(认证信息)
Content-Type
string
required
Example:
application/json
Body Params application/json
skus
array[string]
required
Example
{
"skus": [
"string"
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1/v1/inventory/getInventory' \
--header 'x-api-key: abc123(认证信息)' \
--header 'Content-Type: application/json' \
--data-raw '{
"skus": [
"string"
]
}'
Responses
🟢200成功
application/json
Body
code
string
required
message
string
required
data
array [object {9}]
required
warehouseCode
string
optional
lineName
string
optional
sku
string
optional
inventoryType
integer
optional
inventoryAvailable
integer
optional
inventoryReserved
integer
optional
inventoryTransport
string
optional
inventoryCurrent
string
optional
updatedAt
string
optional
Example
{
"statusCode": 200,
"status": 0,
"code": 200,
"message": "查询成功",
"data": [
{
"warehouseCode": "HF_CA_US",
"lineName": "Klineo",
"sku": "K150002Y",
"inventoryType": 0,
"inventoryAvailable": 0,
"inventoryReserved": 0,
"inventoryTransport": 0,
"inventoryCurrent": 0,
"updatedAt": "2017-03-24 02:19:56"
},
{
"warehouseCode": "accessory2go",
"lineName": "Klineo",
"sku": "K150002Y",
"inventoryType": 1,
"inventoryAvailable": 0,
"inventoryReserved": 0,
"inventoryTransport": 0,
"inventoryCurrent": 0,
"updatedAt": "2017-09-05 08:07:54"
},
{
"warehouseCode": "accessory2go",
"lineName": "Klineo",
"sku": "K150002Y",
"inventoryType": 0,
"inventoryAvailable": 0,
"inventoryReserved": 0,
"inventoryTransport": 0,
"inventoryCurrent": 0,
"updatedAt": "2019-10-31 09:16:37"
}
]
}
Modified at 2023-12-07 22:21:58