更新发货单
POST
/api/open/v3/salesOutOrder/update
请求参数
Body 参数application/json
body
必需
Any of
code
string | null
发货单编号
deliveryTime
integer <int64>
可选
创建时此 日期必填
records
array[object (SalesOutOrderDetail) {8}] | null
订单明细
deliveryCompany
string
物流公司
deliveryOrderNumber
string
物流单号
enableLineNo
boolean
是否开启行号
comments
string
备注
示例
{
"body": {
"code": "DN-20240730-001",
"deliveryTime": 1725086400000,
"records": [
{
"num": 1,
"saleOrderNum": 20240728001,
"orderCode": "SO-20240728-HW-001",
"itemCode": "SMARTPHONE-X1-PLUS",
"quantity": 4500,
"comment": "华为P70主板 | 批次:BATCH-MB-20240728 | 缺料SN:MB0728-4501~5000",
"warehouseCode": "WH-FINISHED",
"warehouseBinCode": "BIN-HOLD-03"
},
{
"num": 2,
"orderCode": "SO-20240728-HW-001",
"itemCode": "IC-CHIP-5NM",
"quantity": 5500,
"comment": "5nm工艺芯片 | 批次:BATCH-20240726-5NM",
"warehouseCode": "WH-CHIP",
"warehouseBinCode": "BIN-03-12"
},
{
"num": 3,
"orderCode": "SO-20240728-HW-001",
"itemCode": "IC-CHIP-5NM-ALT",
"quantity": 500,
"comment": "替代料批次:ALT-BATCH-0728-01 | ECN-0728-05批准"
}
],
"deliveryCompany": "DHL-顺丰联合运输",
"deliveryOrderNumber": "DHL-SF-0728JQ001",
"enableLineNo": true,
"comments": "分批发运方案 | 首批4500pcs空运+500pcs陆运 | 剩余500pcs预计8月5日发运(缺料报告MAT-0728-006)"
}
}
示例代码
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/salesOutOrder/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"code": "DN-20240730-001",
"deliveryTime": 1725086400000,
"records": [
{
"num": 1,
"saleOrderNum": 20240728001,
"orderCode": "SO-20240728-HW-001",
"itemCode": "SMARTPHONE-X1-PLUS",
"quantity": 4500,
"comment": "华为P70主板 | 批次:BATCH-MB-20240728 | 缺料SN:MB0728-4501~5000",
"warehouseCode": "WH-FINISHED",
"warehouseBinCode": "BIN-HOLD-03"
},
{
"num": 2,
"orderCode": "SO-20240728-HW-001",
"itemCode": "IC-CHIP-5NM",
"quantity": 5500,
"comment": "5nm工艺芯片 | 批次:BATCH-20240726-5NM",
"warehouseCode": "WH-CHIP",
"warehouseBinCode": "BIN-03-12"
},
{
"num": 3,
"orderCode": "SO-20240728-HW-001",
"itemCode": "IC-CHIP-5NM-ALT",
"quantity": 500,
"comment": "替代料批次:ALT-BATCH-0728-01 | ECN-0728-05批准"
}
],
"deliveryCompany": "DHL-顺丰联合运输",
"deliveryOrderNumber": "DHL-SF-0728JQ001",
"enableLineNo": true,
"comments": "分批发运方案 | 首批4500pcs空运+500pcs陆运 | 剩余500pcs预计8月5日发运(缺料报告MAT-0728-006)"
}
}'
返回响应
🟢200成功
application/json
Body
基础http返回信息
code
integer
可选
message
string
可选
示例
{
"code": 0,
"message": ""
}