{
"body": {
"autoAccess": true,
"code": "OUT-202410-001",
"relativeOrderCode": "SO-202410-001",
"relativeOrderType": "SALE_ORDER",
"businessType": "SAMPLE_OUTBOUND",
"approveProcessCode": "APPROVE-SAMPLE-OUT",
"warehouseCode": "WH-SH-ELECTRONIC",
"comments": "客户样品需求 | 加急处理",
"department": "Sales Dept",
"enterprise": {
"type": "CUSTOMER",
"code": "CUST-HW-2024"
},
"customizeFields": {
"samplePurpose": "新产品测试",
"expressRequirement": "空运+温控"
},
"details": [
{
"itemCode": "IC-CHIP-5NM",
"quantity": 50,
"batchNumber": "BATCH-202409-01"
},
{
"itemCode": "PCB-5G-001",
"quantity": 100,
"batchNumber": "BATCH-202409-02"
}
]
}
}
curl --location --request POST '/api/open/v3/inventory/requisition/out/create' \
--header 'Cookie;' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"autoAccess": true,
"code": "OUT-202410-001",
"relativeOrderCode": "SO-202410-001",
"relativeOrderType": "SALE_ORDER",
"businessType": "SAMPLE_OUTBOUND",
"approveProcessCode": "APPROVE-SAMPLE-OUT",
"warehouseCode": "WH-SH-ELECTRONIC",
"comments": "客户样品需求 | 加急处理",
"department": "Sales Dept",
"enterprise": {
"type": "CUSTOMER",
"code": "CUST-HW-2024"
},
"customizeFields": {
"samplePurpose": "新产品测试",
"expressRequirement": "空运+温控"
},
"details": [
{
"itemCode": "IC-CHIP-5NM",
"quantity": 50,
"batchNumber": "BATCH-202409-01"
},
{
"itemCode": "PCB-5G-001",
"quantity": 100,
"batchNumber": "BATCH-202409-02"
}
]
}
}'
{
"code": 0,
"message": ""
}