旺店通·企业奇门对接打通用友BIP查询采购退货单接口与采购入库来源生单保存接口

对接系统:旺店通·企业奇门
慧策(原旺店通)是一家技术驱动型智能零售服务商,基于云计算PaaS、SaaS模式,以一体化智能零售解决方案,帮助零售企业数字化智能化升级,实现企业规模化发展。
接通系统:用友BIP
YonBIP用友商业创新平台,是用友在数字经济时代面向成长型、大型企业及巨型企业,融合了先进且高可用技术平台和公共与关键商业应用与服务,支撑和运行客户的商业创新(业务创新、管理变革),并且具有数字化、智能化、高弹性、安全可信、社会化、全球化、平台化、生态化等特征的综合型服务平台。
数据对接方案
使用轻易云系统数据集成平台对应的模块:数据集成方案。然后选择开始创建数据集成方案。在方案配置表单中选择对应的源业务系统:旺店通·企业奇门,然后选择对应的连接器。选择对应的查询采购退货单作为数据对接来源。然后再通过写入目标平台配置目标系统为用友BIP,并且选择对应连接器(关于用友BIP的接口如何配置可以在轻易云数据集成社区论坛中找到相关信息,选择好对应的采购入库来源生单保存接口作为数据写入动作,既可以完成第一步的数据对接配置。

旺店通·企业奇门接口明细
- 调用接口:wdt.stockout.order.query.return
- 接口名称:查询采购退货单
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
start_time | 开始时间 | string | {{LAST_SYNC_TIME datetime}} |
end_time | 结束时间 | string | {{CURRENT_TIME datetime}} |
warehouse_no | 仓库编号 | string | |
status | 出库单状态 | string | 110 |
page_no | 页号 | string | {{PAGINATION_START_PAGE}} |
page_size | 分页大小 | string | {{PAGINATION_PAGE_SIZE}} |
src_order_no | 上层单据编号 | string | |
响应参数
字段 | 字段名称 | 类型 | 配置值 |
stockout_id | 出库单主键id | string | |
order_no | 出库单号 | string | |
src_order_no | 源单号 | string | |
warehouse_no | 仓库编号 | string | |
status | 状态 | string | |
consign_time | 出库时间 | string | |
order_type | 源单据类别 | string | |
order_type_name | 源单据类型名称 | string | |
subtype | 出库子类型 | string | |
goods_total_amount | 货品总售价 | string | |
goods_total_cost | 货品总成本 | string | |
post_fee | 邮费 | string | |
logistics_no | 物流编号 | string | |
package_fee | 包装费 | string | |
receiver_name | 收件人 | string | |
receiver_country | 国家 | string | |
receiver_province | 省份 | string | |
receiver_city | 城市 | string | |
receiver_district | 地区 | string | |
receiver_address | 详细地址 | string | |
receiver_mobile | 收件人移动电话 | string | |
receiver_telno | 收件人固定电话 | string | |
receiver_zip | 邮编 | string | |
stockout_reason | 出库原因 | string | |
outer_no | 外部单号 | string | |
operator_name | 操作人 | string | |
receiver_area | 省市区 | string | |
return_no | 采购退货单号 | string | |
provider_no | 供应商编号 | string | |
provider_name | 供应商名称 | string | |
pr_api_outer_no | 采购退货单外部单号 | string | |
last_load_purchase_no | 最后引用采购单号 | string | |
picklist_print_status | 分拣单打印状态 | string | |
logistics_print_status | 物流单打印状态 | string | |
sendbill_print_status | 发货单打印状态 | string | |
stockout_no | 出库单号 | string | |
src_order_id | 源单据id | string | |
wms_status | 处理状态 | string | |
error_info | 错误信息 | string | |
warehouse_type | 仓库类别 | string | |
warehouse_id | 出库的仓库id | string | |
customer_id | 客户id | string | |
freeze_reason | 冻结原因 | string | |
is_allocated | 是否分配 | string | |
consign_status | 出库状态 | string | |
ebill_status | 面单状态 | string | |
operator_id | 制单人 | string | |
goods_type_count | 货品种类数量 | string | |
md5_str | MD5字符串值 | string | |
raw_goods_count | 预留字段 | string | |
custom_type | 出库类别 | string | |
receiver_ring | 接收环 | string | |
to_deliver_time | 配送时间 | string | |
pre_charge_time | 配送中心 | string | |
logistics_id | 物流公司id | string | |
unknown_goods_amount | 未知成本销售总额 | string | |
calc_post_cost | 预估邮费成本 | string | |
post_cost | 邮费成本 | string | |
calc_weight | 预估重量 | string | |
post_weight | 快递给的重量 | string | |
package_id | 包装 | string | |
package_cost | 包装成本 | string | |
has_invoice | 是否包含发票 | string | |
printer_id | 打单员 | string | |
pick_error_count | 拣货出错次数 | string | |
picker_id | 拣货操作员id | string | |
sorter_id | 包裹分拣员id | string | |
examiner_id | 验货操作员id | string | |
consigner_id | 发货人id | string | |
packager_id | 打包员 | string | |
pack_score | 打包积分 | string | |
pick_score | 拣货积分 | string | |
checkouter_id | 签出员工id | string | |
watcher_id | 监视员 | string | |
picklist_no | 分拣单编号 | string | |
picklist_seq | 分拣单中序号 | string | |
invoice_print_status | 发票打印状态 | string | |
flag_id | 颜色标记 | string | |
logistics_template_id | 物流单模板id | string | |
sendbill_template_id | 发货单模板id | string | |
pos_allocate_mode | 货位分配方式 | string | |
note_count | 便签条数 | string | |
reason_id | 出库原因 | string | |
lock_id | 锁定策略id | string | |
reserve | 保留 | string | |
block_reason | 截停原因 | string | |
stock_check_time | 出库单审核时间 | string | |
details_list | 货品列表节点 | array | |
details_list.stockout_id | 出库单主键id | string | |
details_list.goods_count | 货品数量 | string | |
details_list.weight | 重量 | string | |
details_list.remark | 备注 | string | |
details_list.modified | 最后修改时间 | string | |
details_list.src_order_type | 源单据类别 | string | |
details_list.batch_no | 批次号 | string | |
details_list.rec_id | 出库明细主键id | string | |
details_list.spec_no | 商家编码 | string | |
details_list.sell_price | 销售价 | string | |
details_list.brand_no | 品牌编号 | string | |
details_list.brand_name | 品牌名称 | string | |
details_list.goods_name | 货品名称 | string | |
details_list.goods_no | 货品编号 | string | |
details_list.spec_name | 规格名称 | string | |
details_list.spec_code | 规格编号 | string | |
details_list.cost_price | 成本价 | string | |
details_list.total_amount | 总货款 | string | |
details_list.goods_type | 货品类别 | string | |
details_list.goods_unit | 单位名称 | string | |
details_list.batch_remark | 批次备注 | string | |
details_list.expire_date | 有效期 | string | |
details_list.goods_id | 货品id | string | |
details_list.spec_id | 规格id | string | |
details_list.src_order_detail_id | 源单据细节id | string | |
details_list.base_unit_id | 基本单位 | string | |
details_list.unit_id | 辅助单位 | string | |
details_list.unit_ratio | 单位换算 | string | |
details_list.num2 | 辅助数量 | string | |
details_list.num | 货品数量 | string | |
details_list.price | 价格 | string | |
details_list.batch_id | 出库批次 | string | |
details_list.is_examined | 是否验货 | string | |
details_list.is_package | 是否包装 | string | |
details_list.is_zero_cost | 是否允许0成本 | string | |
details_list.scan_type | 类型 | string | |
details_list.created | 创建时间 | string | |
details_list.position_list | 货位列表节点 | array | |
details_list.position_list.position_id | 货位ID | string | |
details_list.position_list.position_no | 货位编号 | string | |
details_list.position_list.position_goods_count | 货位出库数量 | string | |
用友BIP接口明细
- 调用接口:/yonbip/scm/purinrecord/mergeSourceData/save
- 接口名称:采购入库来源生单保存
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
resubmitCheckKey | 保证请求的幂等性 | string | {{order_no}}1 |
mergeSourceData | 合并上游数据 | string | true |
needCalcLines | 表体行计算标识 | string | true |
calcLinesKey | 表体行计算依据 | string | oriTaxUnitPrice |
code | 单据编号 | string | {{order_no}} |
vouchdate | 单据日期 | string | {{consign_time date}} |
bustype | 交易类型id | string | A20003 |
warehouse | 仓库id | string | {{warehouse_no}} |
memo | 备注 | string | {{remark}} |
_status | 操作标识 | string | Insert |
purInRecords | 采购入库单子表 | array | details_list |
purInRecords.makeRuleCode | 生单规则编码 | string | st_purchaseorder_return |
purInRecords.sourceid | 上游单据主表id | string | findCollection find new_id from 5c14ed3c-520d-3e66-9ce1-05b241f8d07b where code={{pr_api_outer_no}} product_cCode={{details_list.goods_no}} |
purInRecords.sourceautoid | 上游单据子表id | string | _findCollection find new_purchaseOrders_id from 5c14ed3c-520d-3e66-9ce1-05b241f8d07b where code={{pr_api_outer_no}} product_cCode={{details_list.goods_no}} |
purInRecords.qty | 数量 | string | function {{details_list.goods_count}}*(-1) |
purInRecords.oriUnitPrice | 无税单价 | string | {{details_list.sell_price}} |
purInRecords.oriTaxUnitPrice | 含税单价 | string | _findCollection find oriTaxUnitPrice from 5c14ed3c-520d-3e66-9ce1-05b241f8d07b where code={{pr_api_outer_no}} product_cCode={{details_list.goods_no}} |
purInRecords.memo | 备注 | string | {{details_list.remark}} |
purInRecords._status | 操作标识 | string | Insert |
系统对接总览
基于轻易云的连接器和数据服务能力,轻松实现供应链异构系统的“相互沟通”,通过数据应用自动化业务流程管理,全面管控供应链的每一环节。从要货、销售出库、退货入库、到盘点、调拨,无需人工参与,实时更新,自动化流转。通过快速连接旺店通·企业奇门接口抽取数据后再自动分发到用友BIP, 解放生产力,自动生成数据、并分发推送到业务应用,数据传递时效性提升10倍以上。
