{
"body": {
"code": "IN-202410-003",
"businessType": "PURCHASE_INBOUND",
"department": "Purchasing Dept",
"relativeOrderCode": "PO-202410-005",
"relativeOrderType": "PURCHASE_ORDER",
"enterprise": {
"type": "SUPPLIER",
"code": "SUP-IC-2024"
},
"comments": "季度备货入库 | 全检合格批次",
"customizeFields": {
"qcReportNo": "QC-202410-005",
"moistureProofDays": "72"
},
"records": [
{
"batchNumber": "BATCH-202410-IC01",
"warehouseCode": "WH-SH-ELECTRONIC",
"locationCode": "A-01-01",
"itemCode": "IC-CHIP-5NM",
"snInfos": [
{
"sn": "SN-5NM-202410-0001",
"assistQuantity": 1
},
{
"sn": "SN-5NM-202410-0002",
"assistQuantity": 1
}
],
"quantity": 2
},
{
"batchNumber": "BATCH-202410-CAP01",
"warehouseCode": "WH-SH-ELECTRONIC",
"locationCode": "B-02-03",
"itemCode": "CAP-10UF-25V",
"snInfos": [],
"quantity": 5000
}
]
}
}
curl --location --request POST '/api/open/v3/inventory/requisition/in/autoCreate' \
--header 'Cookie;' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"code": "IN-202410-003",
"businessType": "PURCHASE_INBOUND",
"department": "Purchasing Dept",
"relativeOrderCode": "PO-202410-005",
"relativeOrderType": "PURCHASE_ORDER",
"enterprise": {
"type": "SUPPLIER",
"code": "SUP-IC-2024"
},
"comments": "季度备货入库 | 全检合格批次",
"customizeFields": {
"qcReportNo": "QC-202410-005",
"moistureProofDays": "72"
},
"records": [
{
"batchNumber": "BATCH-202410-IC01",
"warehouseCode": "WH-SH-ELECTRONIC",
"locationCode": "A-01-01",
"itemCode": "IC-CHIP-5NM",
"snInfos": [
{
"sn": "SN-5NM-202410-0001",
"assistQuantity": 1
},
{
"sn": "SN-5NM-202410-0002",
"assistQuantity": 1
}
],
"quantity": 2
},
{
"batchNumber": "BATCH-202410-CAP01",
"warehouseCode": "WH-SH-ELECTRONIC",
"locationCode": "B-02-03",
"itemCode": "CAP-10UF-25V",
"snInfos": [],
"quantity": 5000
}
]
}
}'
{
"code": 0,
"message": ""
}