更新销售退货入库任务
POST
/api/open/v3/inventory/task/salesReturn/confirm
请求参数
Body 参数application/json
body
object (InventroySaleReturnConfirmParams)
必需
code
string
库存申请编码
records
array[object (TaskConfirmParamsRecord) {9}]
库存确认明细
示例
{
"body": {
"code": "RMA-20240730-001",
"records": [
{
"warehouseCode": "WH-QLAB",
"locationCode": "BIN-INSP-05",
"itemCode": "SMARTPHONE-X1-PLUS",
"configurableSpecs": [
{
"name": "颜色",
"code": "COLOR-CONFIG",
"value": "曜石黑"
},
{
"name": "存储容量",
"code": "STORAGE-CONFIG",
"value": "512GB"
}
],
"quantity": 50,
"assistQuantity": 5,
"batchNumber": "BATCH-MB-20240728",
"snInfos": [],
"originOrderNumber": "SO-20240728-HW-001"
},
{
"warehouseCode": "WH-CHIP-BACK",
"locationCode": "BIN-RESTOCK-03",
"itemCode": "IC-CHIP-5NM",
"quantity": 1,
"batchNumber": "BATCH-20240726-5NM",
"snInfos": [
{
"sn": "SN-MB0728-0456",
"assistQuantity": 1,
"defectCode": "PCB-DEF-0728-01"
}
],
"originOrderNumber": "SO-20240728-HW-001",
"extendedFields": [
{
"name": "MSL管控等级",
"value": "Level 3(72小时)"
}
]
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sit.newcoretech.com/api/open/v3/inventory/task/salesReturn/confirm' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"code": "RMA-20240730-001",
"records": [
{
"warehouseCode": "WH-QLAB",
"locationCode": "BIN-INSP-05",
"itemCode": "SMARTPHONE-X1-PLUS",
"configurableSpecs": [
{
"name": "颜色",
"code": "COLOR-CONFIG",
"value": "曜石黑"
},
{
"name": "存储容量",
"code": "STORAGE-CONFIG",
"value": "512GB"
}
],
"quantity": 50,
"assistQuantity": 5,
"batchNumber": "BATCH-MB-20240728",
"snInfos": [],
"originOrderNumber": "SO-20240728-HW-001"
},
{
"warehouseCode": "WH-CHIP-BACK",
"locationCode": "BIN-RESTOCK-03",
"itemCode": "IC-CHIP-5NM",
"quantity": 1,
"batchNumber": "BATCH-20240726-5NM",
"snInfos": [
{
"sn": "SN-MB0728-0456",
"assistQuantity": 1,
"defectCode": "PCB-DEF-0728-01"
}
],
"originOrderNumber": "SO-20240728-HW-001",
"extendedFields": [
{
"name": "MSL管控等级",
"value": "Level 3(72小时)"
}
]
}
]
}
}'
返回响应
🟢200成功
application/json
Body
com.xinheyun.model.response.BaseResponse
code
integer
可选
message
string
可选
示例
{
"code": 0,
"message": ""
}