Lingxing
切换旧版

查询出库单列表

POST/erp/sc/routing/storage/outbound/getOrders

接口信息

API Path请求协议请求方式令牌桶容量
/erp/sc/routing/storage/outbound/getOrdersHTTPSPOST1

请求参数

offsetinteger
分页偏移量,默认0
lengthinteger
分页长度,默认20,上限200
widstring
系统仓库id
search_field_timestring
日期筛选类型:
创建时间 create_time
出库时间 opt_time
更新时间 increment_time
start_datestring
日期查询开始时间,格式:Y-m-d
当筛选更新时间时,支持Y-m-d或Y-m-d H:i:s
end_datestring
日期查询结束时间,格式:Y-m-d
当筛选更新时间时,支持Y-m-d或Y-m-d H:i:s
order_snstring
出库单单号,多个使用英文逗号分隔
idempotent_codestring
客户参考号,多个使用英文逗号分隔
statusinteger
出库单状态:
10 待提交
30 待出库
40 已完成
50 已撤销
121 待审批
122 已驳回
typeinteger
出库类型:
11 其他出库
12 FBA出库
14 退货出库
15 调拨出库
16 WFS出库
17 Temu出库
18 销毁出库

请求示例

{
    "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
}

返回结果

Json Object

codeinteger必填
状态码,0 成功
示例 0
messagestring必填
消息提示
示例 success
error_detailsarray<any>必填
错误消息
request_idstring必填
请求链路id
示例 5A1EBE67-7793-9E94-7790-AA457B81B3F2
response_timestring必填
响应时间
示例 2022-06-27 11:54:31
totalinteger必填
总数
示例 456
dataarray<object>必填
响应数据
隐藏子属性
increment_timestring必填
单据数据更新时间
示例 2021-08-22 10:14:46
custom_fieldsarray<object>必填
自定义字段
隐藏子属性
idstring必填
字段ID
namestring必填
字段名
val_textstring必填
字段值
opt_realnamestring必填
出库人姓名
opt_timestring必填
出库时间
示例 2021-08-22 10:14:46
opt_uidinteger必填
操作人id
示例 475
outbound_timestring必填
自定义出库时间
示例 2021-12-02 10:14:46
commit_realnamestring必填
提交人名称
commit_uidinteger必填
提交人id
示例 475
commit_timestring必填
提交时间
示例 2021-08-22 10:14:46
order_snstring必填
出库单号
示例 IB210822001
statusinteger必填
出库单状态
status_textstring必填
出库单状态名称
create_timestring必填
创建时间
示例 2021-08-22 10:14:46
create_uidinteger必填
创建人id
create_realnamestring必填
创建人名称
purchase_order_snstring必填
采购单号
revoke_realnamestring必填
撤销人名称
revoke_uidinteger必填
撤销人id
revoke_timestring必填
撤销时间
supplier_idstring必填
供应商id
supplier_namestring必填
供应商名称
示例 1
source_snstring必填
关联单据号
order_amountstring必填
单据入库成本
示例 100.00
cg_uidinteger必填
采购员id
return_pricestring必填
运费
示例 0.00
currencystring必填
运费币种
other_feestring必填
其他费用
示例 0.00
fee_part_typestring必填
费用分摊方式
示例 不分配
fee_part_type_textstring必填
费用分摊方式名称
typeinteger必填
出库类型
type_textstring必填
出库类型名称
示例 其他入库
custom_type_idinteger必填
自定义类型ID
示例 0
custom_type_namestring必填
自定义类型名称
示例 ""
cg_realnamestring必填
采购员姓名
widstring必填
仓库id
ware_house_namestring必填
仓库名称
示例 仓库2
to_widstring必填
目的仓库id
to_ware_house_namestring必填
目的仓库名称
remarkstring必填
单据备注
idempotent_codestring必填
客户参考号, 该字段校验唯一不可重复
item_listarray<object>必填
隐藏子属性
product_namestring必填
品名
示例 痛仰
skustring必填
sku
示例 痛仰
fnskustring必填
fnsku
seller_idstring必填
系统店铺id
pricestring必填
采购单价
示例 10.0000
amountstring必填
出库成本
示例 100.00
fee_coststring必填
费用
示例 0.00
product_good_numinteger必填
良品量
示例 10
product_bad_numinteger必填
次品量
product_qc_numinteger必填
待检量
product_totalinteger必填
出库量
示例 10
product_amountsstring必填
货值
示例 100.00
single_feestring必填
单位费用
示例 0.0000
single_stock_coststring必填
单位出库成本
示例 10.0000
product_remarkstring必填
产品备注
示例 产品备注
out_available_binstring必填
可用仓位列表
隐藏子属性
whb_codestring必填
仓位名称
示例 仓位名称
whb_numstring必填
数量
示例 1
out_inferior_binstring必填
次品仓位列表
隐藏子属性
whb_codestring必填
仓位名称
示例 仓位名称
whb_numstring必填
数量
示例 1
custom_fieldsarray<object>必填
自定义字段
隐藏子属性
idstring必填
字段ID
namestring必填
字段名
val_textstring必填
字段值

返回成功示例

{
    "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
}