# 新建入库单

接口地址 /api/dxm/inbound

请求方式 POST

consumes ["application/json"]

produces ["*/*"]

接口描述 ``

请求示例

{
    "warehouseId": 2001,
    "customerRef": "客户订单号",
    "trackingNumber": "TRK123456789",
    "totalCarton": 100,
    "inboundType": 1,
    "containerType": "20GP",
    "palletQty": 10,
    "inboundDate": "2024-12-19",
    "attachment": "https://example.com/attachment.pdf",
    "remarks": "订单备注",
    "origin": 4,
    "cartons": [
        {
            "sameSpecCartons": 10,
            "details": [
                {
                    "sku": "DDZC-RAM-09-12-CA",
                    "qty": 10
                },
                {
                    "sku": "X003F8DKFR",
                    "qty": 15
                }
            ]
        },
        {
            "sameSpecCartons": 20,
            "details": [
                {
                    "sku": "X003F8DKFR",
                    "qty": 15
                }
            ]
        },
        {
            "sameSpecCartons": 30,
            "details": [
                {
                    "sku": "DDZC-RAM-09-12-CA",
                    "qty": 10
                }
            ]
        }
    ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

请求参数

参数名称 参数说明 请求类型 是否必须 数据类型 schema
token token header true string
form form body true 请求对象 请求对象

schema属性说明

请求对象

参数名称 参数说明 请求类型 是否必须 数据类型 schema
warehouseId 仓库ID body 是 Long
customerRef 客户订单号 body 否 string
trackingNumber 主追踪号 body 否 string
totalCarton 预报箱数 body 否 Integer
inboundType 入库方式 body 否 Integer 1:整柜,2:托盘,3:单箱
containerType 柜型 body 否 string
palletQty 托盘数量 body 否 Integer
inboundDate 预计入库时间 body 否 Date
attachment 附件 body 否 string
remarks 备注 body 否 string
cartons 装箱明细 body 是 array
cartons.sameSpecCartons 相同规格箱数 body 是 integer
cartons.details 具体商品明细 body 是 array
cartons.details.sku 商品SKU body 是 string
cartons.details.qty 商品数量 body 是 integer

响应示例

{
    "success": true,
    "message": "",
    "data": {
        "orderId": "123456"
    }
}
1
2
3
4
5
6
7

响应参数

参数名称 参数说明 类型 schema
success 是否成功 boolean
message 错误信息 string
data 响应数据 返回对象

schema属性说明

返回对象

参数名称 参数说明 类型 schema
orderId 订单ID string
Last Updated: 2/27/2026, 5:53:27 PM