{
"body": {
"code": "RE-20240730-001",
"orderCode": "SO-20240728-HW-001",
"saleOutCode": "DN-20240730-001",
"enableLineNo": true,
"records": [
{
"num": 1,
"saleOutNum": 20240730001,
"itemCode": "SMARTPHONE-X1-PLUS",
"quantity": 50,
"type": "QUALIFIED",
"comment": "虚焊缺陷(缺陷代码:SMT-DEF-005)| 批次:BATCH-MB-20240728 | 序列号:MB0728-0456~0505"
},
{
"num": 2,
"saleOutNum": 20240730001,
"itemCode": "IC-CHIP-5NM",
"quantity": 100,
"type": "QUALIFIED",
"comment": "客户订单取消过剩库存 | 批次:BATCH-20240726-5NM | 可重新入库"
}
],
"comments": "华为P70主板质量投诉RMA#0728-001 | 缺陷品需入WH-QLAB库位 | 合格品入WH-CHIP-BACK库位",
"attachments": [
{
"type": "XRAY_REPORT",
"url": "https://qms.xxx.com/reports/XRAY-0728-005.pdf",
"name": "X光检测报告_缺陷分析"
},
{
"type": "LOGISTICS_PROOF",
"url": "https://logistics.xxx.com/track/SF1024000056789",
"name": "物流签收单"
}
]
}
}
curl --location --request POST '/api/open/v3/salesReturnOrder/create' \
--header 'Cookie;' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"code": "RE-20240730-001",
"orderCode": "SO-20240728-HW-001",
"saleOutCode": "DN-20240730-001",
"enableLineNo": true,
"records": [
{
"num": 1,
"saleOutNum": 20240730001,
"itemCode": "SMARTPHONE-X1-PLUS",
"quantity": 50,
"type": "QUALIFIED",
"comment": "虚焊缺陷(缺陷代码:SMT-DEF-005)| 批次:BATCH-MB-20240728 | 序列号:MB0728-0456~0505"
},
{
"num": 2,
"saleOutNum": 20240730001,
"itemCode": "IC-CHIP-5NM",
"quantity": 100,
"type": "QUALIFIED",
"comment": "客户订单取消过剩库存 | 批次:BATCH-20240726-5NM | 可重新入库"
}
],
"comments": "华为P70主板质量投诉RMA#0728-001 | 缺陷品需入WH-QLAB库位 | 合格品入WH-CHIP-BACK库位",
"attachments": [
{
"type": "XRAY_REPORT",
"url": "https://qms.xxx.com/reports/XRAY-0728-005.pdf",
"name": "X光检测报告_缺陷分析"
},
{
"type": "LOGISTICS_PROOF",
"url": "https://logistics.xxx.com/track/SF1024000056789",
"name": "物流签收单"
}
]
}
}'
{
"code": 0,
"message": ""
}