旺店通·企业奇门与金蝶云星辰wdt(qm)_kd_旺店通(奇门)_金蝶_销售出库单
源数据平台 | 旺店通·企业奇门数据对接 |
调用请求API | 查询销售出库单 |
请求定时 | */30 * * * * |
目标平台 | 金蝶云星辰V1写入数据接口 |
调用执行API | 新增或修改一张销售出库单 |
执行定时 | */30 * * * * |
接口数据对接字段明细
序号 | 旺店通·企业奇门字段 | 旺店通·企业奇门字段名 | 金蝶云星辰V1字段 | 金蝶云星辰V1字段名 | 描述 |
---|---|---|---|---|---|
1 | APP | 固定值 | billsource | 单据来源,固定传入APP | 单据来源,固定传入APP |
2 | consign_time|date | 固定值 | billdate | 出库日期,格式:2019-01-01 | 出库日期,格式:2019-01-01 |
3 | order_no | 出库单号 | billno | 单据编号 | 单据编号 |
4 | _findCollection find id from a179791c-2fdf-30be-bf55-201f3b85bd6e where name=shop_name | 关联查询函数 | customerid_id | 客户信息 | 客户信息 |
5 | 0 | 固定值 | empid_id | 业务员信息 | 业务员信息 |
6 | cs_remark | 客服备注 | remark | 单据备注 | 单据备注 |
7 | 固定值 | contact_phone | 联系信息-联系方式 | 联系信息-联系方式 | |
8 | 0 | 固定值 | contact_country_id | 联系信息-国家ID | 联系信息-国家ID |
9 | 0 | 固定值 | contact_province_id | 联系信息-省ID | 联系信息-省ID |
10 | 0 | 固定值 | contact_city_id | 联系信息-市ID | 联系信息-市ID |
11 | 0 | 固定值 | contact_district_id | 联系信息-区ID | 联系信息-区ID |
12 | details_list | 货品列表节点 | material_entity | 商品分录 | |
13 | _findCollection find id from 3d4d739d-5826-3090-a582-d17a10a43790 where number=details_list.spec_no | 关联查询函数 | material_entity.materialid_id | 商品 | 商品 |
14 | _findCollection find id from 35c82f7f-bdef-3bc1-86e6-4654e14ff702 where name=warehouse_name | 关联查询函数 | material_entity.stockid_id | 仓库 | 仓库 |
15 | 固定值 | material_entity.spid_id | 仓位 | 仓位,启用了仓位管理则必填 | |
16 | details_list.goods_count | 固定值 | material_entity.qty | 数量 | 数量 |
17 | 2 | 固定值 | material_entity.unit_id | 单位 | 单位(只能填商品关联的单位,来源于商品单位查询接口或商品详情中的baseunitid_id、fixunit1_id等) |
18 | _function (details_list.total_amount+details_list.share_post)/details_list.goods_count | 计算函数 | material_entity.price | 单价 | 单价(如果在“系统参数”的“基础资料参数”中勾选了“商品价格为含税单价”,则price指示含税单价) |
19 | details_list.tax_rate | 固定值 | material_entity.cess | 税率 | 税率(例:13%的税率填13) |
20 | 固定值 | material_entity.disamount | 折扣额 | 折扣额 | |
21 | 固定值 | material_entity.disrate | 折扣率(%) | 折扣率(%) | |
22 | 固定值 | material_entity.discount | 折扣(折) | 折扣(折) | |
23 | _function CASE WHEN details_list.sell_price>0 THEN 'false' ELSE 'true' END | 计算函数 | material_entity.is_free | 是否赠品 | 是否赠品;true-是,false-否(默认) |
24 | 固定值 | material_entity.comment | 商品行备注 | 商品行备注 | |
25 | 固定值 | material_entity.auxpropid_id | 辅助属性 | 辅助属性;辅助属性商品必填(从商品详情中auxentity的id字段取值) | |
26 | batch_no | 固定值 | material_entity.batchno | 批次 | 批次;批次商品必填 |
27 | 固定值 | material_entity.snlistid | 序列号流转id | 序列号流转id;单据新增后会在单据详情中带回这个字段信息,*序列号商品修改时必填 | |
28 | 固定值 | material_entity.sn_list | 序列号 | 序列号格式如:001:备注1;002:备注2(序列号:序列号备注多个序列号以英文分号字符;分隔),*序列号商品必填 | |
29 | 固定值 | material_entity.kfdate | 生产日期 | 生产日期;格式:20190101,保质期商品必填 | |
30 | 固定值 | material_entity.validdate | 到期日 | 到期日;格式:20190101,保质期商品必填 | |
31 | 固定值 | material_entity.kfperiod | 保质期 | 保质期;保质期商品必填 | |
32 | 固定值 | material_entity.kftype | 保质期单位 | 保质期单位;保质期商品必填:1-天,2-月,3-年 | |
33 | 固定值 | material_entity.srcbillno | 源单编号 | ||
34 | trade_no | 订单编号 | custom_field__1__28l7dyhux0m0pxie | 销售订单号 | |
35 | trade_type | 订单类型 | custom_field__1__2b977if3xvje | 订单类型 | |
36 | _function case 'delivery_term' when '1' then '款到发货' when '2' then '货到付款(包含部分货到付款)' when '3' then '分期付款' when '4' then '挂账单' end | 计算函数 | custom_field__1__2b98xfm4mz2o | 发货条件 | |
37 | _findCollection find id from 05b3a603-808e-37a6-a7da-fb949aaca1e2 where name=shop_name | 关联查询函数 | deptid_id | 销售部门 | |
38 | src_trade_no | 原始单号 | custom_field__1__2gbdyhnz5o37s4 | 原始单号 |