轻易云
注册体验

旺店通·企业版查询销售出库单_v1接口

类型
WebAPI
作用
QUERY
接口版本
0.1
适配器
\Adapter\Wdt\WdtQueryAdapter
授权方式
OTHER
更新日期
2021-01-11

查询销售出库单_v1

POSTstockout_order_query_trade
加工厂
{
  "operation": {
    "method": "none"
  }
}

接口请求参数

序号字段名称类型默认值必填描述
1start_timestart_timedatetime1必填增量获取数据,start_time作为开始时间,格式:yyyy-MM-dd HH:mm:ss
2end_timeend_timedatetime1必填增量获取数据,end_time作为结束时间,格式:yyyy-MM-dd HH:mm:ss
3statusstatusstring1可选5已取消,55已审核,95已发货,105 部分打款,110已完成,113:异常发货
4src_order_nosrc_order_nostring1可选111
5src_tidsrc_tidstring1可选111
6stockout_nostockout_nostring1可选111
7shop_noshop_nostring1可选代表店铺所有属性的唯一编码,用于店铺区分,ERP内支持自定义(ERP店铺界面设置),用于获取指定店铺单据数据信息
8warehouse_nowarehouse_nostring1可选代表仓库所有属性的唯一编码,用于仓库区分,ERP内支持自定义(ERP仓库界面设置),用于获取指定仓库单据数据信息(不支持一次推送多个仓库编号)

接口响应参数

序号字段名称类型默认值必填描述
1stockout_idstockout_idstring1必填出库单主键id
2order_noorder_nostring1必填出库单号,唯一单号
3src_order_nosrc_order_nostring1必填源单号,旺店通系统单号(多默认为JY开头)
4warehouse_nowarehouse_nostring1必填仓库编号
5consign_timeconsign_timestring1必填销售出库单发货时间  时间格式:yyyy-MM-dd HH:mm:ss
6order_typeorder_typestring1必填出库单类型
7trade_statustrade_statusstring1必填订单状态 5已取消 10待付款 12待尾款 13待选仓 15等未付16延时审核 19预订单前处理 20前处理(赠品,合并,拆分)21委外前处理22抢单前处理 25预订单 27待抢单 30待客审 35待财审 40待递交仓库 45递交仓库中 50已递交仓库 53未确认 55已确认 95已发货 105部分打款 110已完成 113异常发货
8order_type_nameorder_type_namestring1必填固定名称“销售出库”
9trade_typetrade_typestring1必填1网店销售 2线下零售 3售后换货 4批发业务 5保修换新 6保修完成 7订单补发 .. 101自定义类型1 102自定义类型2 103自定义类型3 104自定义类型4 105自定义类型5 106自定义类型6
10subtypesubtypestring1必填出库子类型
11goods_countgoods_countstring1必填货品数量
12goods_total_amountgoods_total_amountstring1必填货品总售价
13goods_total_costgoods_total_coststring1必填货品总成本
14post_feepost_feestring1必填邮资成本
15logistics_nologistics_nostring1必填物流单号
16package_feepackage_feestring1必填包装费
17receiver_namereceiver_namestring1必填收件人
18receiver_countryreceiver_countrystring1必填国家
19receiver_provincereceiver_provincestring1必填省份
20receiver_cityreceiver_citystring1必填城市
21receiver_districtreceiver_districtstring1必填地区
22receiver_addressreceiver_addressstring1必填详细地址
23receiver_mobilereceiver_mobilestring1必填收件人移动电话
24receiver_telnoreceiver_telnostring1必填收件人固定电话
25receiver_zipreceiver_zipstring1必填邮编
26receiver_dtbreceiver_dtbstring1必填大头笔
27weightweightstring1必填ERP系统称重功能记录的重量,如果没有使用称重功能默认使用货品档案维护的预估重量
28logistics_typelogistics_typestring1必填响应值为ERP定义的ID数值,数值对应的物流公司类型名称单击这里
29logistics_codelogistics_codestring1必填代表物流所有属性的唯一编码,用于物流区分,ERP内支持自定义(ERP物流界面设置)
30logistics_namelogistics_namestring1必填物流公司名称
31print_remarkprint_remarkstring1必填打印备注
32paidpaidstring1必填已付金额
33refund_statusrefund_statusstring1必填退款状态: 0无退款,1取消退款,2已申请退款,3等待退货,4等待收货,5退款成功
34salesman_nosalesman_nostring1必填业务员编号
35salesman_namesalesman_namestring1必填业务员名称
36fullnamefullnamestring1必填业务员名称
37warehouse_namewarehouse_namestring1必填仓库
38createdcreatedstring1必填创建时间  时间格式:yyyy-MM-dd HH:mm:ss
39remarkremarkstring1必填备注
40stockout_reasonstockout_reasonstring1必填出库原因
41outer_noouter_nostring1必填外部单号
42trade_notrade_nostring1必填系统订单编号,默认单号为JY开头,ERP内支持自定义(设置路径:设置——编码设置)
43src_trade_nosrc_trade_nostring1必填商城或电商平台的订单编号,合并订单的多个订单编号有逗号隔开
44nick_namenick_namestring1必填网名
45customer_namecustomer_namestring1必填客户名称(客户真实姓名,取自receiver_name)
46customer_nocustomer_nostring1必填客户编号
47trade_timetrade_timestring1必填交易时间   时间格式:yyyy-MM-dd HH:mm:ss
48pay_timepay_timestring1必填付款时间   时间格式:yyyy-MM-dd HH:mm:ss
49statusstatusstring1必填出库单状态 5 已取消 48未确认 50待审核 52待推送 53同步失败  55已审核 95 已发货 105部分打款 110已完成  113 异常发货 115回传失败 120回传成功
50shop_nameshop_namestring1必填店铺名称
51shop_noshop_nostring1必填代表店铺所有属性的唯一编码,用于店铺区分,ERP内支持自定义(ERP店铺界面设置)
52buyer_messagebuyer_messagestring1必填买家留言
53cs_remarkcs_remarkstring1必填客服备注
54flag_nameflag_namestring1必填订单标记
55post_amountpost_amountstring1必填从平台获取的销售订单的邮费
56block_reasonblock_reasonstring1必填截停原因:1申请退款2已退款4地址被修改8发票被修改16物流被修改32仓库变化64备注修改128更换货品256添加货品512放弃抢单1024其他 2048 拦截赠品 4096 拦截天猫换货 8192 买家留言变更 16384 该换货订单存在退货/退款
57invoice_typeinvoice_typestring1必填发票类别0 不需要,1普通发票,2普通增值税发票,3专用增值税发票
58invoice_titleinvoice_titlestring1必填发票抬头
59invoice_contentinvoice_contentstring1必填发票内容
60invoice_idinvoice_idstring1必填发票ID,目前只设0-1,1表示已开发票
61delivery_termdelivery_termstring1必填发货条件 1款到发货 2货到付款(包含部分货到付款) 3分期付款 4挂账单
62fenxiao_typefenxiao_typestring1必填0 非分销订单 1 转供销 2 代销 3经销
63fenxiao_nickfenxiao_nickstring1必填分销订单的分销商id,或转供销时供应商id
64cod_amountcod_amountstring1必填货到付款金额
65id_card_typeid_card_typestring1必填1 身份证
66receiver_areareceiver_areastring1必填省市区空格分隔
67shop_remarkshop_remarkstring1必填店铺备注
68modifiedmodifiedstring1必填最后修改时间   时间格式:yyyy-MM-dd HH:mm:ss
69platform_idplatform_idstring1必填平台id
70trade_idtrade_idstring1必填订单表主键
71checker_namechecker_namestring1必填审单员编号
72employee_noemployee_nostring1必填审单员编号
73operator_nameoperator_namestring1必填审核员
74packager_nopackager_nostring1必填打包员编号
75packager_namepackager_namestring1必填打包员
76picker_nopicker_nostring1必填拣货员编号
77picker_namepicker_namestring1必填拣货员
78printer_noprinter_nostring1必填打单员编号
79printer_nameprinter_namestring1必填打单员
80examiner_noexaminer_nostring1必填验货员编号
81examiner_nameexaminer_namestring1必填验货员
82stockout_nostockout_nostring1必填出库单号
83src_order_typesrc_order_typestring1必填源单据类别,1 销售订单
84wms_statuswms_statusstring1必填处理状态 0 待处理 1 推送失败 2 推送成功 3 接口取消成功系统驳回失败 4 服务器正在处理 5 WMS返回发货信息 6 异步标记,推送申请成功'
85error_infoerror_infostring1必填接口处理错误信息
86warehouse_typewarehouse_typestring1必填仓库类别  0不限 1普通仓库 2自动流转外部 3京东仓储 4科捷 5百世物流 6 SKU360 7通天晓 8中联网仓 9顺丰仓储 10网仓2号 11奇门仓储 12旺店通仓储 13心怡仓储 14力威仓储 15京东沧海 16云集仓储 127其他
87warehouse_idwarehouse_idstring1必填出库的仓库id
88customer_idcustomer_idstring1必填客户id
89freeze_reasonfreeze_reasonstring1必填冻结原因
90is_allocatedis_allocatedstring1必填是否分配stockout_order_detail_position
91consign_statusconsign_statusstring1必填出库状态 1验货 2称重 4出库 8物流同步 16分拣 32档口, 64拣货 1073741824原始单已完成
92ebill_statusebill_statusstring1必填电子面单,获取状态(0 还未获取单号或获取单号和打印信息完毕;1 手动获取物流单号中;100-105 获取打印数据中)
93operator_idoperator_idstring1必填制单人
94goods_type_countgoods_type_countstring1必填货品种类数量
95md5_strmd5_strstring1必填MD5字符串值,用于单据排序
96custom_typecustom_typestring1必填其他出库自定义子类别0,1,2,3,4
97receiver_ringreceiver_ringstring1必填京东三环内
98to_deliver_timeto_deliver_timestring1必填配送时间,如周末
99pre_charge_timepre_charge_timestring1必填配送中心
100logistics_idlogistics_idstring1必填物流公司ID
101unknown_goods_amountunknown_goods_amountstring1必填未知成本销售总额
102calc_post_costcalc_post_coststring1必填预估邮费成本
103post_costpost_coststring1必填邮费成本
104calc_weightcalc_weightstring1必填预估重量
105post_weightpost_weightstring1必填快递给的重量
106package_idpackage_idstring1必填包装id
107package_costpackage_coststring1必填包装成本
108has_invoicehas_invoicestring1必填是否包含发票
109printer_idprinter_idstring1必填打单员
110pick_error_countpick_error_countstring1必填拣货出错次数
111picker_idpicker_idstring1必填拣货操作员ID
112sorter_idsorter_idstring1必填包裹分拣员id
113examiner_idexaminer_idstring1必填验货操作员id
114consigner_idconsigner_idstring1必填发货人id
115packager_idpackager_idstring1必填打包id
116pack_scorepack_scorestring1必填打包积分
117pick_scorepick_scorestring1必填拣货积分
118checkouter_idcheckouter_idstring1必填签出员工id
119watcher_idwatcher_idstring1必填监视员
120picklist_nopicklist_nostring1必填分拣单编号
121picklist_seqpicklist_seqstring1必填订单在分拣单中序号
122invoice_print_statusinvoice_print_statusstring1必填发票打印状态
123flag_idflag_idstring1必填颜色
124logistics_template_idlogistics_template_idstring1必填物流单模板id
125sendbill_template_idsendbill_template_idstring1必填发货单模板id
126pos_allocate_modepos_allocate_modestring1必填货位分配方式:0系统自动分配, 1手动指定货位分配 2手动指定有效期批次货位 3其它出库优化使用出库货位 4按批次出库
127note_countnote_countstring1必填便签条数
128reason_idreason_idstring1必填其他出库原因
129lock_idlock_idstring1必填锁定策略id
130reservereservestring1必填保留
131batch_nobatch_nostring1必填打印批次
132discountdiscountstring1必填优惠金额
133src_tidssrc_tidsstring1必填原始单号,平台订单号
134taxtaxstring1必填税额
135tax_ratetax_ratestring1必填税率
136currencycurrencystring1必填币种
137id_cardid_cardstring1必填证件号码
138stock_check_timestock_check_timestring1必填出库单审核时间    时间格式:yyyy-MM-dd HH:mm:ss
139bad_reasonbad_reasonstring1必填需要通过异或的方式判断,异常订单(bit位),1无库存记录 2地址发生变化 4发票变化 8仓库变化16备注变化32平台更换货品64退款…512抢单异常
140print_batch_noprint_batch_nostring1必填ERP中的单据的打印批次信息,如需该字段,请升级至2.4.0.8版本及以上
141sendbill_print_statussendbill_print_statusstring1必填0未打印 1打印中 2已打印 3无需打印
142logistics_print_statuslogistics_print_statusstring1必填0未打印 1打印中 2已打印 3无需打印
143picklist_print_statuspicklist_print_statusstring1必填0未打印 1打印中 2已打印 3无需打印
144details_listdetails_listarray1必填货品列表节点
145rec_idrec_idstring1必填出库明细主键
146stockout_idstockout_idstring1必填出库单主键id
147spec_nospec_nostring1必填代表单品(sku)所有属性的编码,SKU概念介绍,单击这里
148goods_countgoods_countstring1必填货品数量
149sell_pricesell_pricestring1必填销售价,最终交易价格,扣除优惠
150brand_nobrand_nostring1必填品牌编号
151brand_namebrand_namestring1必填品牌名称
152goods_typegoods_typestring1必填货品类型: 1销售商品 2原材料 3包装 4周转材料5虚拟商品6固定资产 0其它
153gift_typegift_typestring1必填是否是赠品 0非赠品 1自动赠送 2手工赠送
154goods_namegoods_namestring1必填货品名称
155goods_nogoods_nostring1必填代表货品(spu)所有属性的编号,SPU概念介绍,单击这里
156spec_namespec_namestring1必填规格名称
157spec_codespec_codestring1必填规格码
158suite_nosuite_nostring1必填来源组合装编码
159cost_pricecost_pricestring1必填成本价
160total_amounttotal_amountstring1必填总货款,sell_price * goods_count=total_amount
161goods_idgoods_idstring1必填货品id
162spec_idspec_idstring1必填商品主键
163weightweightstring1必填估重
164remarkremarkstring1必填备注
165paidpaidstring1必填已支付金额
166refund_statusrefund_statusstring1必填退款状态
167market_pricemarket_pricestring1必填零售价
168discountdiscountstring1必填总折扣金额
169share_amountshare_amountstring1必填分摊后合计应收
170tax_ratetax_ratestring1必填税率
171barcodebarcodestring1必填条码
172unit_nameunit_namestring1必填基本单位
173sale_order_idsale_order_idstring1必填订单详情表主键
174share_postshare_poststring1必填邮费分摊
175src_oidsrc_oidstring1必填原始子订单号
176src_tidsrc_tidstring1必填原始订单号
177from_maskfrom_maskstring1必填1手机订单 2聚划算 4服务子订单 8家装 16二次付款 32开具电子发票 1024库存不足 2048当日达 4096次日达 8192预约时效
178src_order_typesrc_order_typestring1必填源单据类别 以主单为准
179src_order_detail_idsrc_order_detail_idstring1必填sales_trade_order表的主键
180base_unit_idbase_unit_idstring1必填基本单位
181unit_idunit_idstring1必填辅助单位
182unit_ratiounit_ratiostring1必填单位换算
183numnumstring1必填货品数量
184num2num2string1必填辅助数量
185pricepricestring1必填最终价格,share_price删掉,取代share_price
186batch_idbatch_idstring1必填指定出库批次
187is_examinedis_examinedstring1必填是否验货,用于挂起,已标记为验货的不需要再验货
188is_packageis_packagestring1必填是否包装
189is_zero_costis_zero_coststring1必填是否允许0成本
190scan_typescan_typestring1必填0未验货,1扫描验货,2手工验货,3快速验货,4无需验货
191good_prop1good_prop1string1必填货品档案自定义属性1
192good_prop2good_prop2string1必填货品档案自定义属性2
193good_prop3good_prop3string1必填货品档案自定义属性3
194good_prop4good_prop4string1必填货品档案自定义属性4
195good_prop5good_prop5string1必填货品档案自定义属性5
196good_prop6good_prop6string1必填货品档案自定义属性6
197prop1prop1string1必填单品列表自定义属性1
198prop2prop2string1必填单品列表自定义属性2
199prop3prop3string1必填单品列表自定义属性3
200prop4prop4string1必填单品列表自定义属性4
201prop5prop5string1必填单品列表自定义属性5
202prop6prop6string1必填单品列表自定义属性6
203batch_nobatch_nostring1必填批次号
204batch_remarkbatch_remarkstring1必填批次备注
205expire_dateexpire_datestring1必填有效期,时间格式:yyyy-MM-dd HH:mm:ss
206position_listposition_listarray1必填货位节点列表
207position_idposition_idstring1必填货位ID
208position_noposition_nostring1必填货位编号
209stockout_order_detail_idstockout_order_detail_idstring1必填出库单明细id
210rec_idrec_idstring1必填货位主键id
211stockin_detail_idstockin_detail_idstring1必填入库单明细id
212numnumstring1必填货品数量
213stock_spec_detail_idstock_spec_detail_idstring1必填入库单号明细id
214batch_idbatch_idstring1必填批次id
215batch_nobatch_nostring1必填批次号
216modifiedmodifiedstring1必填最后更新时间
217cost_pricecost_pricestring1必填成本价
218position_goods_countposition_goods_countstring1必填货位出库数量

旺店通·企业版的接口:查询销售出库单_v1(stockout_order_query_trade),由轻易云数据集成平台 API 资产管理模块整理收纳,并随旺店通·企业版版本更新同步更新。

需要对接这个接口?

轻易云已预置该接口的适配能力,联系我们即可开始配置数据集成。