/erp/sc/routing/storage/outbound/getOrders{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/storage/outbound/getOrders"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"offset": 0,
"length": 20,
"wid": 53,
"search_field_time": "create_time",
"start_date": "2024-07-30",
"end_date": "2024-07-30",
"order_sn": "OB240730003",
"idempotent_code": "OB240730003",
"status": 40,
"type": 15
},
"responseExample": {
"code": 0,
"message": "success",
"error_details": [],
"request_id": "92F6872A-B022-8FA6-8152-EAB2F401659F",
"response_time": "2024-07-31 16:23:44",
"data": [
{
"opt_realname": "朱蒙蒙",
"opt_time": "2024-07-30 11:05:29",
"outbound_time": "2024-07-30 11:05:29",
"opt_uid": 33,
"commit_realname": "朱蒙蒙",
"commit_uid": 33,
"commit_time": "2024-07-30 11:05:29",
"order_sn": "OB240730003",
"status": 40,
"status_text": "已完成",
"create_time": "2024-07-30 11:05:29",
"create_uid": 33,
"create_realname": "朱蒙蒙",
"purchase_order_sn": "",
"revoke_realname": "",
"revoke_uid": 0,
"revoke_time": "",
"supplier_id": 0,
"supplier_name": "",
"source_sn": "OWS240730001",
"order_amount": "0.000000",
"cg_uid": 0,
"return_price": "0.000000",
"currency": "¥",
"other_fee": "0.000000",
"fee_part_type": 0,
"fee_part_type_text": "不分配",
"type": 15,
"type_text": "调拨出库",
"custom_type_id": 0,
"custom_type_name": "",
"cg_realname": "",
"wid": 53,
"ware_house_name": "义乌",
"to_wid": 9,
"to_ware_house_name": "小徐仓",
"remark": "备货单号:OWS240730001",
"increment_time": "2024-07-30 11:05:29",
"custom_fields": [],
"item_list": [
{
"product_name": "abc003-BWY-xin",
"sku": "abc003-BWY",
"fnsku": "",
"seller_id": "0",
"product_total": 10,
"product_good_num": 10,
"product_bad_num": 0,
"product_qc_num": 0,
"amount": "0.00",
"fee_cost": "0.00",
"head_way_fee": "0.00",
"product_amounts": "0.00",
"single_fee": "0.0000",
"unit_head_fee": "0.0000",
"single_stock_cost": "0.0000",
"price": "0.0000",
"product_remark": "",
"custom_fields": []
}
]
}
],
"total": 1
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | offset | 分页偏移量 | integer | — | 可选 | 分页偏移量,默认0 |
| 2 | length | 分页长度 | integer | — | 可选 | 分页长度,默认20,上限200 |
| 3 | wid | 系统仓库id | string | — | 可选 | 系统仓库id |
| 4 | search_field_time | 日期筛选类型 | string | — | 可选 | 日期筛选类型: 创建时间 create_time 出库时间 opt_time 更新时间 increment_time |
| 5 | start_date | 日期查询开始时间 | string | — | 可选 | 日期查询开始时间,格式:Y-m-d 当筛选更新时间时,支持Y-m-d或Y-m-d H:i:s |
| 6 | end_date | 日期查询结束时间 | string | — | 可选 | 日期查询结束时间,格式:Y-m-d 当筛选更新时间时,支持Y-m-d或Y-m-d H:i:s |
| 7 | order_sn | 出库单单号 | string | — | 可选 | 出库单单号,多个使用英文逗号分隔 |
| 8 | idempotent_code | 客户参考号 | string | — | 可选 | 客户参考号,多个使用英文逗号分隔 |
| 9 | status | 出库单状态 | integer | — | 可选 | 出库单状态: 10 待提交 30 待出库 40 已完成 50 已撤销 121 待审批 122 已驳回 |
| 10 | type | 出库类型 | integer | — | 可选 | 出库类型: 11 其他出库 12 FBA出库 14 退货出库 15 调拨出库 16 WFS出库 17 Temu出库 18 销毁出库 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | 必填 | 消息提示 |
| 3 | error_details | 错误消息 | array<any> | — | 必填 | 错误消息 |
| 4 | request_id | 请求链路id | string | 5A1EBE67-7793-9E94-7790-AA457B81B3F2 | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2022-06-27 11:54:31 | 必填 | 响应时间 |
| 6 | total | 总数 | integer | 456 | 必填 | 总数 |
| 7 | data | 响应数据 | array<object> | — | 必填 | 响应数据 |
| 7.1 | increment_time | 单据数据更新时间 | string | 2021-08-22 10:14:46 | 必填 | 单据数据更新时间 |
| 7.2 | custom_fields | 自定义字段 | array<object> | — | 必填 | 自定义字段 |
| 7.2.1 | id | 字段ID | string | — | 必填 | 字段ID |
| 7.2.2 | name | 字段名 | string | — | 必填 | 字段名 |
| 7.2.3 | val_text | 字段值 | string | — | 必填 | 字段值 |
| 7.3 | opt_realname | 出库人姓名 | string | — | 必填 | 出库人姓名 |
| 7.4 | opt_time | 出库时间 | string | 2021-08-22 10:14:46 | 必填 | 出库时间 |
| 7.5 | opt_uid | 操作人id | integer | 475 | 必填 | 操作人id |
| 7.6 | outbound_time | 自定义出库时间 | string | 2021-12-02 10:14:46 | 必填 | 自定义出库时间 |
| 7.7 | commit_realname | 提交人名称 | string | — | 必填 | 提交人名称 |
| 7.8 | commit_uid | 提交人id | integer | 475 | 必填 | 提交人id |
| 7.9 | commit_time | 提交时间 | string | 2021-08-22 10:14:46 | 必填 | 提交时间 |
| 7.10 | order_sn | 出库单号 | string | IB210822001 | 必填 | 出库单号 |
| 7.11 | status | 出库单状态 | integer | — | 必填 | 出库单状态 |
| 7.12 | status_text | 出库单状态名称 | string | — | 必填 | 出库单状态名称 |
| 7.13 | create_time | 创建时间 | string | 2021-08-22 10:14:46 | 必填 | 创建时间 |
| 7.14 | create_uid | 创建人id | integer | — | 必填 | 创建人id |
| 7.15 | create_realname | 创建人名称 | string | — | 必填 | 创建人名称 |
| 7.16 | purchase_order_sn | 采购单号 | string | — | 必填 | 采购单号 |
| 7.17 | revoke_realname | 撤销人名称 | string | — | 必填 | 撤销人名称 |
| 7.18 | revoke_uid | 撤销人id | integer | — | 必填 | 撤销人id |
| 7.19 | revoke_time | 撤销时间 | string | — | 必填 | 撤销时间 |
| 7.20 | supplier_id | 供应商id | string | — | 必填 | 供应商id |
| 7.21 | supplier_name | 供应商名称 | string | 1 | 必填 | 供应商名称 |
| 7.22 | source_sn | 关联单据号 | string | — | 必填 | 关联单据号 |
| 7.23 | order_amount | 单据入库成本 | string | 100.00 | 必填 | 单据入库成本 |
| 7.24 | cg_uid | 采购员id | integer | — | 必填 | 采购员id |
| 7.25 | return_price | 运费 | string | 0.00 | 必填 | 运费 |
| 7.26 | currency | 运费币种 | string | — | 必填 | 运费币种 |
| 7.27 | other_fee | 其他费用 | string | 0.00 | 必填 | 其他费用 |
| 7.28 | fee_part_type | 费用分摊方式 | string | 不分配 | 必填 | 费用分摊方式 |
| 7.29 | fee_part_type_text | 费用分摊方式名称 | string | — | 必填 | 费用分摊方式名称 |
| 7.30 | type | 出库类型 | integer | — | 必填 | 出库类型 |
| 7.31 | type_text | 出库类型名称 | string | 其他入库 | 必填 | 出库类型名称 |
| 7.32 | custom_type_id | 自定义类型ID | integer | 0 | 必填 | 自定义类型ID |
| 7.33 | custom_type_name | 自定义类型名称 | string | "" | 必填 | 自定义类型名称 |
| 7.34 | cg_realname | 采购员姓名 | string | — | 必填 | 采购员姓名 |
| 7.35 | wid | 仓库id | string | — | 必填 | 仓库id |
| 7.36 | ware_house_name | 仓库名称 | string | 仓库2 | 必填 | 仓库名称 |
| 7.37 | to_wid | 目的仓库id | string | — | 必填 | 目的仓库id |
| 7.38 | to_ware_house_name | 目的仓库名称 | string | — | 必填 | 目的仓库名称 |
| 7.39 | remark | 单据备注 | string | — | 必填 | 单据备注 |
| 7.40 | idempotent_code | 客户参考号 | string | — | 必填 | 客户参考号, 该字段校验唯一不可重复 |
| 7.41 | item_list | item_list | array<object> | — | 必填 | |
| 7.41.1 | product_name | 品名 | string | 痛仰 | 必填 | 品名 |
| 7.41.2 | sku | sku | string | 痛仰 | 必填 | sku |
| 7.41.3 | fnsku | fnsku | string | — | 必填 | fnsku |
| 7.41.4 | seller_id | 系统店铺id | string | — | 必填 | 系统店铺id |
| 7.41.5 | price | 采购单价 | string | 10.0000 | 必填 | 采购单价 |
| 7.41.6 | amount | 出库成本 | string | 100.00 | 必填 | 出库成本 |
| 7.41.7 | fee_cost | 费用 | string | 0.00 | 必填 | 费用 |
| 7.41.8 | product_good_num | 良品量 | integer | 10 | 必填 | 良品量 |
| 7.41.9 | product_bad_num | 次品量 | integer | — | 必填 | 次品量 |
| 7.41.10 | product_qc_num | 待检量 | integer | — | 必填 | 待检量 |
| 7.41.11 | product_total | 出库量 | integer | 10 | 必填 | 出库量 |
| 7.41.12 | product_amounts | 货值 | string | 100.00 | 必填 | 货值 |
| 7.41.13 | single_fee | 单位费用 | string | 0.0000 | 必填 | 单位费用 |
| 7.41.14 | single_stock_cost | 单位出库成本 | string | 10.0000 | 必填 | 单位出库成本 |
| 7.41.15 | product_remark | 产品备注 | string | 产品备注 | 必填 | 产品备注 |
| 7.41.16 | out_available_bin | 可用仓位列表 | string | — | 必填 | 可用仓位列表 |
| 7.41.16.1 | whb_code | 仓位名称 | string | 仓位名称 | 必填 | 仓位名称 |
| 7.41.16.2 | whb_num | 数量 | string | 1 | 必填 | 数量 |
| 7.41.17 | out_inferior_bin | 次品仓位列表 | string | — | 必填 | 次品仓位列表 |
| 7.41.17.1 | whb_code | 仓位名称 | string | 仓位名称 | 必填 | 仓位名称 |
| 7.41.17.2 | whb_num | 数量 | string | 1 | 必填 | 数量 |
| 7.41.18 | custom_fields | 自定义字段 | array<object> | — | 必填 | 自定义字段 |
| 7.41.18.1 | id | 字段ID | string | — | 必填 | 字段ID |
| 7.41.18.2 | name | 字段名 | string | — | 必填 | 字段名 |
| 7.41.18.3 | val_text | 字段值 | string | — | 必填 | 字段值 |
领星ERP的接口:查询出库单列表(/erp/sc/routing/storage/outbound/getOrders),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。