金蝶云星空和聚水潭单据接口对接

源系统:聚水潭
聚水潭是SaaS协同平台、电商ERP软件。聚水潭成立于2014年,创始人兼CEO骆海东拥有近三十年传统及电商ERP的研发和实施部署经验。聚水潭创建之初,以电商SaaSERP切入市场,凭借出色的产品和服务,快速获得市场的肯定。
接入系统:金蝶云星空
金蝶K/3Cloud在总结百万家客户管理最佳实践的基础上,提供了标准的管理模式;通过标准的业务架构:多会计准则、多币别、多地点、多组织、多税制应用框架等,有效支持企业的运营管理;K/3Cloud提供了标准的业务建模:35种标准ERP领域模型、1046种模型元素、21243种模型元素属性组合,288个业务服务构件,让企业及伙伴可快速构建出行业化及个性化的应用。
数据接口配置方案
数据集成平台对应的配置聚水潭与金蝶云星空的对接只要三步就能完成两个系统之间的数据对接。第一步根据聚水潭的接口参数要求记录在轻易云集成平台。第二步配置聚水潭与金蝶云星空之间的字段对应关系(更多方案可借鉴轻易云数据集成社区论坛中找到相关方案信息)第三步完成方案的检查参数设置:传递时间、重试次数、是否启动、前置条件等上线运行。

聚水潭接口明细
- 接口:refund.single.query
- 接口名称:退货退款查询
- 接口方法:POST
请求参数
字段 | 名称 | 类型 | 描述 |
shop_id | 店铺编号 | string | 店铺编号 |
is_offline_shop | shop_id为0且is_offline_shop为true查询线下店铺单据 | string | shop_id为0且is_offline_shop为true查询线下店铺单据 |
modified_begin | 修改起始时间 | string | 修改起始时间,和结束时间必须同时存在,时间间隔不能超过七天,与线上单号不能同时为空 |
modified_end | 修改结束时间 | string | 修改结束时间,和起始时间必须同时存在,时间间隔不能超过七天,与线上单号不能同时为空 |
so_ids | 线上订单号 | string | 指定线上订单号,和时间段不能同时为空 |
shop_buyer_ids | 指定买家账号 | string | 指定买家账号,最多50 |
page_index | 第几页,从第一页开始,默认1 | string | 第几页,从第一页开始,默认1 |
page_size | 每页多少条,默认30,最大50 | string | 每页多少条,默认30,最大50 |
响应参数
字段 | 名称 | 类型 | 描述 |
as_date | 申请时间 | string | 申请时间 |
outer_as_id | 平台退货退款单号 | string | 平台退货退款单号 |
o_id | 内部单号 | string | 内部单号 |
so_id | 线上单号 | string | 线上单号 |
created | 登记时间 | string | 登记时间 |
modified | 修改时间 | string | 修改时间 |
status | 状态 | string | 状态(WaitConfirm:待确认,Confirmed:已确认,Cancelled:作废,Merged:被合并) |
shop_status | 订单对应状态 | string | WAIT_SELLER_AGREE:买家已经申请退款,等待卖家同意,WAIT_BUYER_RETURN_GOODS:卖家已经同意退款,等待买家退货,WAIT_SELLER_CONFIRM_GOODS:买家已经退货,等待卖家确认收货,SELLER_REFUSE_BUYER:卖家拒绝退款,CLOSED:退款关闭,SUCCESS:退款成功 |
remark | 备注 | string | 备注 |
question_type | 问题类型 | array | 问题类型 |
warehouse | 仓库 | string | 仓库 |
refund | 退款金额 | string | 退款金额 |
payment | 补偿金额 | string | 补偿金额 |
good_status | 货物状态 | string | 货物状态(BUYER_NOT_RECEIVED:买家未收到货,BUYER_RECEIVED:买家已收到货,BUYER_RETURNED_GOODS:买家已退货,SELLER_RECEIVED:卖家已收到退货) |
node | 售后线下备注 | string | 售后线下备注 |
order_status | 原订单状态 | string | 原订单状态 |
shop_id | 店铺编号 | string | 店铺编号 |
logistics_company | 物流公司 | string | 物流公司 |
l_id | 物流单号 | string | 物流单号 |
wh_id | 仓库编号 | string | 仓库编号 |
wms_co_id | 分仓编号 | string | 分仓编号 |
confirm_date | 最后确认日期 | string | 最后确认日期 |
freight | 卖家应退运费 | string | 卖家应退运费 |
drp_co_id_from | 分销商编号 | string | 分销商编号 |
receiver_mobile | 收件人电话 | string | 收件人电话 |
receiver_name | 收件人名称 | string | 收件人名称 |
shop_buyer_id | 买家账号 | string | 买家账号 |
items | 商品列表 | array | 商品列表 |
items.as_id | ERP售后单号 | string | ERP售后单号 |
items.type | 类型(退货,换货,补发) | string | 类型(退货,换货,补发) |
items.asi_id | 售后子单号 | string | 售后子单号 |
items.price | 单价 | string | 单价 |
items.amount | 金额 | string | 金额 |
items.name | 商品名称 | string | 商品名称 |
items.pic | 图片地址 | string | 图片地址 |
items.properties_value | 颜色规格 | string | 颜色规格 |
items.outer_oi_id | 子订单号 | string | 子订单号 |
items.sku_type | 商品类型 | string | 商品类型 |
items.r_qty | 实收退货数量 | string | 实收退货数量 |
items.batchs | 批次集合 | array | |
items.batchs.sku_id | 商品编码 | string | |
items.batchs.qty | 商品数量 | string | |
items.batchs.batch_no | 批次号 | string | |
items.batchs.product_date | 批次日期 | string | |
items.batchs.supplier_id | 供应商编号 | string | |
items.batchs.supplier_name | 供应商名称 | string | |
金蝶云星空接口明细
- 调用接口:batchSave
- 接口名称:销售退货新增
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
FBillTypeID | 单据类型 | string | XSTHD01_SYS |
FBillNo | 单据编号 | string | {{o_id}} |
FSaleOrgId | 销售组织 | string | {{shop_id}} |
FDate | 日期 | string | {{as_date}} |
FStockOrgId | 库存组织 | string | 101 |
FRetcustId | 退货客户 | string | {{shop_id}} |
FSaledeptid | 销售部门 | string | {{shop_id}} |
FSettleCurrId | 结算币别 | string | PRE001 |
FHeadNote | 备注 | string | |
FEntity | 明细信息 | array | items |
FEntity.FMaterialId | 物料编码 | string | {{items.sku_id}} |
FEntity.FBarcode | 零售条形码 | string | |
FEntity.FRealQty | 实退数量 | string | {{items.qty}} |
FEntity.FPrice | 单价 | string | |
FEntity.FTaxPrice | 含税单价 | string | {{items.price}} |
FEntity.FIsFree | 是否赠品 | string | _function case '{{items.sale_price}}' when '0' then true else false end |
FEntity.FEntryTaxRate | 税率% | string | |
FEntity.FReturnType | 退货类型 | string | |
FEntity.FOwnerTypeId | 货主类型 | string | |
FEntity.FOwnerId | 货主 | string | |
FEntity.FStockId | 仓库 | string | 002 |
FEntity.FStocklocId | 仓位 | string | |
FEntity.FLot | 批号 | string | |
FEntity.FDeliveryDate | 退货日期 | string | |
FEntity.FNote | 备注 | string | |
FEntity.SubHeadEntity | 财务信息 | object | |
FEntity.SubHeadEntity.FSettleOrgId | 结算组织 | string | {{shop_id}} |
FEntity.SubHeadEntity.FormId | 业务对象表单Id | string | SAL_RETURNSTOCK |
FEntity.SubHeadEntity.Operation | 执行的操作 | string | Save |
FEntity.SubHeadEntity.IsAutoSubmitAndAudit | 提交并审核 | bool | false |
FEntity.SubHeadEntity.IsVerifyBaseDataField | 验证基础资料 | bool | false |
FEntity.SubHeadEntity.SubSystemId | 系统模块 | string | 21 |
系统数据集成价值
全新的API数据集成模式,赋能企业业务创新 传统企业集成主要采用点对点或ESB集成方式,基于全新API战略中台的API新型集成方式通过解耦系统资源,降低系统间对接难度,实现快速业务需求响应,提升对接效率,助力企业满足快速业务交付需求,实现业务创新。通过构建API生态,助力能力开放与共享 基于API战略中台梳理并整合内部API资源与IT资产,可实现内部资源共享,满足内部开发人员资源使用需求,例如:金蝶云星空与聚水潭之间数据集成;并将API资源对外可控开放,打造面向开发者的生态服务,为您打通自身和上下游合作伙伴,创造共赢价值链。开展API战略中台,重塑IT 帮助您基于内部资源构建不同业务能力中心,打造企业统一API战略中台,赋能企业发展,实现对业务频繁变化的快速响应。同时您在能力中心基础上构建新业务时,无需从“零”组建各业务模块,提升开发效率,重塑IT组织及交付能力。
