Inventory_purchase Deprecated
POST
/inventory/purchase/{carrier}
Create purchase orders with third party logistics company.
Path parameters
-
carrier string Required
The carrier name
Body Required
Inventory purchase order request body.
-
warehouseGoodsNo string Required
Warehouse goods No, generated by warehouse.
-
purchaseOrderNo string Required
Merchant purchase order number.
-
supplierNo string
Supplier number.
-
goodsNum integer(int32) Required
Quantity of goods applied for storage.
-
goodsStatus string
Product status. GOOD: Good product; DEFECTIVE: Defective product; SAMPLE: Samples.
Default value is
GOOD
.
POST /inventory/purchase/{carrier}
curl \
-X POST https://nomad.samarkand-global.cn/pilot/inventory/purchase/{carrier} \
-H "x-ca-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"warehouseGoodsNo":"string","purchaseOrderNo":"string","supplierNo":"string","goodsNum":42,"goodsStatus":"GOOD"}'
Request example
{
"warehouseGoodsNo": "string",
"purchaseOrderNo": "string",
"supplierNo": "string",
"goodsNum": 42,
"goodsStatus": "GOOD"
}
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"
}
]
}
]
}