轻易云
注册体验

旺店通·企业版查询采购单_v1接口

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

查询采购单_v1

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

接口请求参数

序号字段名称类型默认值必填描述
1start_timestart_timestring{{DAYS_AGO_1|datetime}}必填111
2outer_noouter_nostring1可选外部创建采购单推送的单号,传该字段可以不传开始时间和结束时间
3warehouse_nowarehouse_nostring1可选111
4statusstatusstring1可选10 已取消,20 编辑中,30 待审核,35 待财审,40 已审核,43 待推送,45 推送失败,48 待收货,50 部分到货,60已到货,70 待结算,80 部分结算,90 已完成(不传默认查询全部状态采购单)
5end_timeend_timestring{{CURRENT_TIME|datetime}}必填111

接口响应参数

序号字段名称类型默认值必填描述
1purchase_idpurchase_idstring1可选采购单id,采购单表主键
2purchase_nopurchase_nostring1可选ERP系统采购单编号
3purchase_nopurchase_nostring1可选ERP系统采购单编号
4purchase_outer_nopurchase_outer_nostring1可选ERP推送采购单外部返回单号(对应外部仓储单号)。
5outer_noouter_nostring1可选通过接口创建采购单时传的api单号
6warehouse_namewarehouse_namestring1可选仓库名称
7warehouse_nowarehouse_nostring1可选代表仓库所有属性的唯一编码,用于仓库区分,ERP内支持自定义(ERP仓库界面设置)
8statusstatusstring1可选采购单状态:10已取消,20编辑中,30待审核,35待财审,40已审核,43待推送,45推送失败,48待收货,50部分到货,60已到货,70待结算,80部分结算,90已完成
9provider_noprovider_nostring1可选供应商编号
10provider_nameprovider_namestring1可选供应商名称
11contactcontactstring1可选联系人
12telnotelnostring1可选电话
13purchaser_namepurchaser_namestring1可选采购员
14receive_addressreceive_addressstring1可选收货地址
15logistics_typelogistics_typestring1可选货运方式
16check_timecheck_timestring1可选审核时间,格式:yyyy-MM-dd HH:mm:ss
17goods_amountgoods_amountstring1可选货款
18post_feepost_feestring1可选邮资
19other_feeother_feestring1可选其他费用
20tax_goods_amounttax_goods_amountstring1可选税后货品总金额
21remarkremarkstring1可选采购单备注
22modifiedmodifiedstring1可选单据的最后修改时间,格式:yyyy-MM-dd HH:mm:ss
23expect_arrive_timeexpect_arrive_timestring1可选采购预计到货时间,格式:yyyy-MM-dd HH:mm:ss
24prop1prop1string1可选自定义属性1
25prop2prop2string1可选自定义属性2
26createdcreatedstring1可选单据创建时间,格式:yyyy-MM-dd HH:mm:ss
27creator_idcreator_idstring1可选默认为'0',创建人id
28creator_namecreator_namestring1可选默认为'0',创建人姓名
29warehouse_idwarehouse_idstring1可选仓库id
30api_outer_noapi_outer_nostring1可选默认为'',接口创建的单据的外部单号,同outer_no
31wms_outer_nowms_outer_nostring1可选默认为'',对应外部仓库的单号,同purchase_outer_no字段
32wms_statuswms_statusstring1可选默认为'0',外部状态,与wms对接使用0初始化1失败2成功
33error_infoerror_infostring1可选默认为'',返回错误信息
34purchaser_idpurchaser_idstring1可选默认为'0',采购员id
35order_typeorder_typestring1可选默认为'0',0普通采购单,1档口采购单,2APP档口采购单
36flag_idflag_idstring1可选默认为'0',颜色标记
37provider_idprovider_idstring1可选默认为'0',供应商
38check_operator_idcheck_operator_idstring1可选默认为'0',审核人
39facheck_operator_idfacheck_operator_idstring1可选默认为'0',财审人
40facheck_timefacheck_timestring1可选默认为'0000-00-00',财审时间
41goods_feegoods_feestring1可选默认为'0.0000',货品总价
42goods_countgoods_countstring1可选默认为'0.0000',货品数量
43tax_feetax_feestring1可选默认为'0',税后总价
44goods_type_countgoods_type_countstring1可选默认为'0',货品种类
45goods_arrive_countgoods_arrive_countstring1可选默认为'0.0000',到货总量
46revert_reasonrevert_reasonstring1可选默认为'0',驳回原因
47version_idversion_idstring1可选默认为'0',版本号
48note_countnote_countstring1可选默认为'0',便签条数
49prop_time1prop_time1string1可选默认为'0000-00-0000:00:00',自定义属性时间1
50details_listdetails_listarray1可选响应参数的2级数据节点,,节点下数据字段详见下述“details_list”
51rec_idrec_idstring1可选采购明细表主键id
52purchase_idpurchase_idstring1可选采购单id
53spec_nospec_nostring1可选代表单品(sku)所有属性的编码,SKU概念介绍,单击这里
54brand_namebrand_namestring1可选品牌名称,推送此字段前需将版本升级至V2.3.9.1及以上的稳定版本
55numnumstring1可选数量
56pricepricestring1可选税前单价
57discountdiscountstring1可选折扣
58taxtaxstring1可选税率
59tax_pricetax_pricestring1可选税后单价
60tax_amounttax_amountstring1可选税后金额
61amountamountstring1可选税前金额
62stockin_amountstockin_amountstring1可选采购到货入库总金额
63stockin_numstockin_numstring1可选采购到货入库数量
64prop1prop1string1可选自定义属性1
65prop2prop2string1可选自定义属性2
66remarkremarkstring1可选明细备注
67modifiedmodifiedstring1可选修改时间,格式:yyyy-MM-dd HH:mm:ss
68provider_goods_noprovider_goods_nostring1可选供应商货品编号
69goods_nogoods_nostring1可选货品编号
70goods_namegoods_namestring1可选货品名称
71short_nameshort_namestring1可选货品简称
72spec_namespec_namestring1可选规格名称
73spec_codespec_codestring1可选规格码
74base_unitbase_unitstring1可选基本单位
75purchase_unitpurchase_unitstring1可选采购单位
76arrive_numarrive_numstring1可选采购到货未入库数量
77stopwait_numstopwait_numstring1可选停止等待数量
78purchase_pricepurchase_pricestring1可选采购价
79last_pricelast_pricestring1可选最后采购价
80last_second_pricelast_second_pricestring1可选上一次采购价
81lowest_pricelowest_pricestring1可选最低采购价
82weightweightstring1可选重量
83arrive_more_numarrive_more_numstring1可选多到货量
84lack_numlack_numstring1可选未到货量
85spec_idspec_idstring1可选规格id
86warehouse_idwarehouse_idstring1可选默认为'0',仓库id
87tagtagstring1可选默认为'0', tag=0表示默认采购
88num2num2string1可选默认为'0.0000',辅助单位数量
89unit_ratiounit_ratiostring1可选默认为'1.0000',基本单位和辅助单位的换算系数
90unit_idunit_idstring1可选辅助单位/采购单位
91base_unit_idbase_unit_idstring1可选基本单位
92createdcreatedstring1可选单据创建时间,格式:yyyy-MM-dd HH:mm:ss

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

需要对接这个接口?

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