InventoryBriefList¶
Use this api, you can query the main product information and inventory information int the ginee warehouse.
POST /openapi/product/variation/v1/inventory-brief-list
Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
page |
string |
fasle |
page details default 0 |
size |
string |
fasle |
size details default 20 |
masterSkus |
Array(String) |
fasle |
master skus. Supports up to 20 |
Response Parameters¶
Name | Type | Description |
---|---|---|
masterVariationId |
string |
masterSku Specification id |
sku |
string |
masterSku |
productName |
string |
productName |
variationName |
string |
Specification name |
variationImage |
string |
variationImage |
warehouseDistributionList |
Array(WarehouseDistributionBriefVO) |
Array of object, please refer to WarehouseDistributionBriefVO for details |
WarehouseDistributionBriefVO¶
Name | Type | Description |
---|---|---|
warehouseId |
string |
Ginee warehouse Id |
warehouseName |
string |
Ginee warehouse Name |
warehouseStock |
string |
Ginee warehouse stock |
availableStock |
string |
Ginee available stock |
warehouseCode |
string |
Ginee warehouse Code |
shelfInventoryIdList |
Array(String) |
Ginee shelfInventoryId |
warehouseType |
String |
Type, please refer to WarehouseType for details |
warehouseProvider |
String |
Type, please refer to WarehouseProvider for details |
WarehouseType¶
Name | Type | Description |
---|---|---|
MY_WAREHOUSE |
string |
My warehouse |
MY_STORE |
string |
My store |
THIRD_PARTY_WAREHOUSE |
string |
Third party warehouse |
WarehouseProvider¶
Name | Type | Description |
---|---|---|
GINEE_LOCAL |
string |
GINEE_LOCAL |
FASTOCK |
string |
FASTOCK |
SHOPEE |
string |
SHOPEE |
YUEHAI |
string |
YUEHAI |
YILIAN |
string |
YILIAN |
GINEE_WMS |
string |
GINEE_WMS |
SHIPPER |
string |
SHIPPER |
JITU |
string |
JITU |
YICANG |
string |
YICANG |
Request Example¶
Example
curl --location --request POST '{Ginee Host}/openapi/product/variation/v1/inventory-brief-list' \
--header 'Content-Type: application/json' \
--header 'X-Advai-Country: ID' \
--header 'Authorization: 2aedf7919e5e6cb4:n0IECNXloTKCTSSxeBEYhzmeVClHmgvw4ruI3W2f9eY=' \
--data-raw '{
{
"page": 0,
"size": 20
}'
Success
{
"code": "SUCCESS",
"message": "成功",
"data": {
{
"content": [{
"masterVariationId": "MV6242B471EE35880001DADB92",
"sku": "shipper_test-20220329-1",
"productName": "shipper_test-20220329",
"variationName": "-",
"variationImage": "https://ecs7.tokopedia.net/img/cache/700/product-1/2021/8/5/10982627/10982627_57fa2282-74d4-428a-a0bb-007627655bc1.jpeg",
"warehouseDistributionList": [{
"warehouseId": "WW6238569FCFF47E00015DDC56",
"warehouseName": "WH-TGR04+GINEEERP",
"warehouseStock": 25,
"availableStock": 23,
"warehouseCode": "WH-TGR04+GINEEERP",
"shelfInventoryIdList": ["SI6242B481CFF47E00012D49E2"],
"warehouseType": "THIRD_PARTY_WAREHOUSE",
"warehouseProvider": "SHIPPER"
}],
"delivery": {
"length": 1,
"width": 2,
"height": 3,
"lengthUnit": "cm",
"weight": 4,
"weightUnit": "g"
}
}],
"number": 0,
"size": 20,
"totalElements": 1898,
"totalPages": 95,
"last": false,
"numberOfElements": 20,
"first": true
},
"extra": null,
"pricingStrategy": "PAY"
}
Invalid parameters
{
"code": "PARAMETER_ERROR",
"message": "error message",
"data": null,
"extra": null
}
!!! note You need to check the code
to see if the operation was successful. If failed, see message
for detail
reason.