汤臣倍健营销云与时空智友对接集成查询采购入库订单接口打通新增入库信息(ifPurIn)

接入系统:汤臣倍健营销云
汤臣倍健营销云是覆盖公域私域、线上线下的全场景的数字化营销平台。基于全触点数据构建全域标签体系,助力企业在自营平台、微信生态等全渠道上精准触达用户,自动化营销互动,实时反馈效果,真正实现营销数字化。
接通系统:时空智友
时空智友是医药行业信息化全面解决方案提供商,业务涵盖药店ERP、CRM、WMS、移动互联及医药新零售、智慧药店、智能智造,利用信息技术助力医药行业产业变革,与客户一起,共建大健康产业
系统对接接口配置
通过系统数据集成平台:数据集成方案。选择开始创建数据集成方案菜单。在方案配置表单中选择对应的源业务系统:汤臣倍健营销云,然后选择对应的连接器。选择对应的/erp/api/order/query/purInWarehsOrder作为数据对接来源。然后再写入目标平台配置目标系统为时空智友,并且选择对应连接器。选择好对应的/formservice?service=OMSService.storageIn接口作为数据写入动作完成第一步的接口配置。


汤臣倍健营销云接口明细
- 调用接口:/erp/api/order/query/purInWarehsOrder
- 接口名称:查询采购入库订单接口
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
tenantId | 经销商id | string | bba6a1320deb4eb5b870bd222a4f7b12 |
yxyNumber | 营销云销售订单号 | string | |
number | 系统订单号 | string | |
status | 订单状态 | string | 1 |
beginTime | 开始时间 | string | {{LAST_SYNC_TIME datetime}} |
endTime | 结束时间 | string | 2024-09-01 10:00:00 |
pageNo | 页码 | string | 1 |
pageSize | 每页条数 | string | 30 |
timeType | 时间段标志 | string | 1 |
响应参数
字段 | 字段名称 | 类型 | 配置值 |
number | 采购入库单号 | string | |
yxyNumber | 营销云单号 | string | |
saleOrderNo | 汤臣销售单号 | string | |
easSaleissueOrderNo | 汤臣托运单号 | string | |
othernumber | 外部单号唯一标识 | string | |
opertime | 业务日期 | string | |
approverId | 审批人id | string | |
linknumber | 关联订单号 | string | |
defaultnumber | 默认单号 | string | |
organName | 供应商名称 | string | |
organid | 供应商id | string | |
sourceBillType | 来源订单类型 | string | |
status | 订单状态 | string | |
subtype | 单据类型 | string | |
tenantName | 公司名称 | string | |
type | 出入库类型 | string | |
version | 版本号 | string | |
itemList | 商品列表 | array | |
itemList.id | 明细行id | string | |
itemList.tenantId | 公司id | string | |
itemList.createtime | 创建时间 | string | |
itemList.updateTime | 更新时间 | string | |
itemList.remark | 备注 | string | |
itemList.headerid | 订单id | string | |
itemList.depotName | 仓库名 | string | |
itemList.depotNo | 仓库编号 | string | |
itemList.depotid | 仓库id | string | |
itemList.materialName | 产品名称 | string | |
itemList.materialNumber | 产品编码 | string | |
itemList.materialid | 产品id | string | |
itemList.lot | 批次 | string | |
itemList.mfg | 生产日期 | string | |
itemList.exp | 到期日期 | string | |
itemList.opernumber | 下单数量 | string | |
itemList.basicnumber | 基础数量 | string | |
itemList.taxrate | 税率 | string | |
itemList.taxunitprice | 含税单价 | string | |
itemList.taxlastmoney | 价税合计 | string | |
itemList.extMaterialNo | 外围系统产品编码 | string | |
itemList.helpCode | 产品助记码 | string | |
时空智友接口明细
- 调用接口:/formservice?service=OMSService.storageIn
- 接口名称:新增入库信息(ifPurIn)
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
orgId | 组织机构编码 | string | O2RVPDK0T0L |
whid | 物流中心 | string | |
createTime | 创建时间 | string | {{opertime}} |
ownerId | 货主编码 | string | |
billcode | 订单号 | string | {{linknumber}} |
Remark1 | 明细备注 | string | {{tenantName}}(from营销云) |
billsn | 定单行号 | string | {{itemList_id}} |
carrier | 承运单位 | string | |
transMode | 运输方式 | string | |
taskType | 数据类型 | string | 120 |
businessId | 单位ID | string | {{organid}} |
songhts | 送货天数 | string | |
ShipFrom | 起运时间 | string | |
businessCode | 单位编号 | string | {{organid}} |
sendaddress | 发货地点 | string | |
goodsId | 商品编号 | string | {{itemList_extMaterialNo}} |
billFlag | 是否扫描发票 | string | |
batchCode | 批号 | string | {{itemList_lot}} |
Isdone | 已完成 | string | |
valDate | 效期 | string | |
produceDate | 生产日期 | string | |
rebillcode | 对应采购单号 | string | |
SterilCode | 灭菌批号 | string | |
rebillsn | 销售订单行号 | string | 1 |
taxPrice | 采购价 | string | {{itemList_taxunitprice}} |
Clientcode | 客户编号 | string | {{organid}} |
Khx_spid | 安泰嘉美商品id | string | |
num | 数量 | string | {{itemList_opernumber}} |
piece | 件数 | string | |
taxAmount | 含税金额 | string | |
confirmMan | 审核人 | string | |
confirmDate | 审核时间 | string | |
caozyname | 制单人 | string | |
dates | 制单日期 | string | |
ontime | 制单时间 | string | |
GCategory | 品种类型 | string | |
remark | 备注 | string | |
orderFlag | 订单类型 | string | 101 |
数据对接价值
全新的API数据集成模式,赋能企业业务创新 传统企业集成主要采用点对点或ESB集成方式,基于全新API战略中台的API新型集成方式通过解耦系统资源,降低系统间对接难度,实现快速业务需求响应,提升对接效率,助力企业满足快速业务交付需求,实现业务创新。通过构建API生态,助力能力开放与共享 基于API战略中台梳理并整合内部API资源与IT资产,可实现内部资源共享,满足内部开发人员资源使用需求,例如:时空智友与汤臣倍健营销云之间数据集成;并将API资源对外可控开放,打造面向开发者的生态服务,为您打通自身和上下游合作伙伴,创造共赢价值链。开展API战略中台,重塑IT 帮助您基于内部资源构建不同业务能力中心,打造企业统一API战略中台,赋能企业发展,实现对业务频繁变化的快速响应。同时您在能力中心基础上构建新业务时,无需从“零”组建各业务模块,提升开发效率,重塑IT组织及交付能力。
