Inventory
GET
/inventory/product/{carrier}
Query products details from third party logistics company.
Path parameters
-
carrier string Required
The carrier name
Query parameters
-
warehouse_goods_no string
Product number used in warehouse.
-
stock_status string
Stock status, options: 1, Good product; 2, Defective product; 3, Samples.
Values are
GOOD
,DEFECTIVE
, orSAMPLE
. -
stock_type string
Stock type, options: 1, Normal; 2, Product to be returned; 3, Store reservation; 4, Warehouse lock; 5, Inventory lock.
Values are
NORMAL
,RETURNED
,RESERVATION
,WAREHOUSE_LOCK
, orINVENTORY_LOCK
. -
shop_no string
Shop number, required for shop stock query.
-
page_no integer(int32)
Page number, between 1 and 1000
Minimum value is
1
, maximum value is1000
. Default value is1
. -
page_size integer(int32)
Page size, options: [1, 10, 50, 100, 1000]
Values are
1
,10
,50
,100
, or1000
. Default value is10
.
GET /inventory/product/{carrier}
curl \
-X GET https://nomad.samarkand-global.cn/pilot/inventory/product/{carrier} \
-H "x-ca-key: $API_KEY"
Response example (200)
{
"code": 42,
"message": "string",
"connectorResponses": [
{
"input": "{\"product_id\": 12121}",
"mappingName": "GetProductOp",
"api": [
"string"
],
"httpRequestRawData": "-",
"code": 42,
"response": "string",
"responseEn": "string",
"platform": "youzan",
"requestCount": 1,
"responseTime": 1000
}
],
"products": [
{
"merchantGoodsNo": "string",
"platformGoodsNo": "string",
"warehouseGoodsNo": "string",
"barcodes": "string",
"thirdCategoryNo": "string",
"goodsName": "string",
"shopNo": "string",
"stockStatus": "string",
"stockType": "string",
"totalNum": "string",
"usableNum": "string",
"recordCount": "string",
"brandName": "string",
"manufacturer": "string",
"produceAddress": "string",
"grossWeight": 42.0,
"netWeight": 42.0,
"safeDays": 42,
"adventDay": 42
}
],
"purchases": [
{
"warehousePurchaseNo": "string",
"warehouseGoodsNo": "string",
"supplierNo": "string",
"poOrderStatus": "string",
"storageStatus": "string",
"createTime": "string",
"completeTime": "string",
"productName": "string",
"receiveBoxNumber": "string",
"grossWeight": "string",
"volume": "string",
"poItems": [
{
"goodsNo": "string",
"goodsName": "string",
"goodsStatus": "string",
"serialNo": "string",
"numApplication": "string",
"unQualifiedQty": "string",
"qualifiedQty": "string",
"realInstoreQty": "string",
"shortQty": "string",
"damagedQty": "string",
"emptyQty": "string",
"expiredQty": "string",
"otherQty": "string",
"goodsDamagedQty": "string",
"deformedQty": "string",
"errorQty": "string",
"excessQty": "string",
"barcodeScanFailQty": "string",
"expirationDateErrorQty": "string",
"barcodeErrorQty": "string",
"pollutionQty": "string",
"markUnclearQty": "string",
"remark": "string",
"orderLine": "string",
"realGoodsStatus": "string",
"realGoodsLevel": "string",
"checkResultStr": "string",
"errReason": "string",
"qcTimeStr": "string",
"batchCode": "string",
"isvGoodsNo": "string"
}
],
"qcQualifiedItems": [
{
"goodsNo": "string",
"goodsName": "string",
"goodsStatus": "string",
"serialNo": "string",
"numApplication": "string",
"unQualifiedQty": "string",
"qualifiedQty": "string",
"realInstoreQty": "string",
"shortQty": "string",
"damagedQty": "string",
"emptyQty": "string",
"expiredQty": "string",
"otherQty": "string",
"goodsDamagedQty": "string",
"deformedQty": "string",
"errorQty": "string",
"excessQty": "string",
"barcodeScanFailQty": "string",
"expirationDateErrorQty": "string",
"barcodeErrorQty": "string",
"pollutionQty": "string",
"markUnclearQty": "string",
"remark": "string",
"orderLine": "string",
"realGoodsStatus": "string",
"realGoodsLevel": "string",
"checkResultStr": "string",
"errReason": "string",
"qcTimeStr": "string",
"batchCode": "string",
"isvGoodsNo": "string"
}
],
"qcUnqualifiedItems": [
{
"goodsNo": "string",
"goodsName": "string",
"goodsStatus": "string",
"serialNo": "string",
"numApplication": "string",
"unQualifiedQty": "string",
"qualifiedQty": "string",
"realInstoreQty": "string",
"shortQty": "string",
"damagedQty": "string",
"emptyQty": "string",
"expiredQty": "string",
"otherQty": "string",
"goodsDamagedQty": "string",
"deformedQty": "string",
"errorQty": "string",
"excessQty": "string",
"barcodeScanFailQty": "string",
"expirationDateErrorQty": "string",
"barcodeErrorQty": "string",
"pollutionQty": "string",
"markUnclearQty": "string",
"remark": "string",
"orderLine": "string",
"realGoodsStatus": "string",
"realGoodsLevel": "string",
"checkResultStr": "string",
"errReason": "string",
"qcTimeStr": "string",
"batchCode": "string",
"isvGoodsNo": "string"
}
]
}
]
}