聚水潭对接打通金蝶云星空退货退款查询接口与[聚水潭][销售退货单标准新增]-v1接口

对接系统:聚水潭
聚水潭SaaSERP于2014年4月上线,目前累计超过2.5万商家注册使用,成为淘宝应用服务市场ERP类目商家数和商家月订单增速最快的ERP。2014年及2015年“双十一”当天,聚水潭SaaSERP平稳、安全、顺畅的处理了近千万订单,超过了淘宝对ERP系统吞吐量极限要求的16倍,成为行业里的新标杆。截止目前,聚水潭客户已超2.5万家,其中有南极人、POVOS奔腾,恒源祥,柚子美衣,洁丽雅,FLYCO飞科,波司登,满速,欧丝璐等,并与知名电商圈“老A电商学院”达成深度合作。
目标系统:金蝶云星空
金蝶K/3Cloud在总结百万家客户管理最佳实践的基础上,提供了标准的管理模式;通过标准的业务架构:多会计准则、多币别、多地点、多组织、多税制应用框架等,有效支持企业的运营管理;K/3Cloud提供了标准的业务建模:35种标准ERP领域模型、1046种模型元素、21243种模型元素属性组合,288个业务服务构件,让企业及伙伴可快速构建出行业化及个性化的应用。
接口方案配置
异构系统具有非常丰富的业务流程、复杂的系统架构和服务接口。在很多情况下,这两个系统都是分别独立部署和运行的,各自拥有不同的技术栈和编程模型,甚至两者在系统平台、技术平台和编程语言上是完全异构的。那么对接就需要根据接口配置对应的规则,例如取数就要根据查询接口获取聚水潭的数据,并且根据对应的条件进行取数,目标系统就必须根据目标系统的格式,以及获取的数据进行加工处理后进行写入到金蝶云星空中。轻易云集成平台的可视化配置轻松实现。


聚水潭接口明细
- 调用接口:/open/refund/single/query
- 接口名称:退货退款查询
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
shop_id | 店铺编号 | string | |
is_offline_shop | shop_id为0且is_offline_shop为true查询线下店铺单据 | string | |
modified_begin | 修改起始时间 | string | {{LAST_SYNC_TIME datetime}} |
modified_end | 修改结束时间 | string | {{CURRENT_TIME datetime}} |
so_ids | 线上订单号 | string | |
shop_buyer_ids | 指定买家账号 | string | |
page_index | 第几页,从第一页开始,默认1 | string | 1 |
page_size | 每页多少条,默认30,最大50 | string | 50 |
响应参数
字段 | 字段名称 | 类型 | 配置值 |
as_id | ERP售后单号 | string | |
as_date | 申请时间 | string | |
outer_as_id | 平台退货退款单号 | string | |
o_id | 内部单号 | string | |
so_id | 线上单号 | string | |
type | 售后类型 | string | |
created | 登记时间 | string | |
modified | 修改时间 | string | |
status | 状态 | string | |
shop_status | 订单对应状态 | string | |
remark | 备注 | string | |
question_type | 问题类型 | array | |
warehouse | 仓库 | string | |
refund | 退款金额 | string | |
payment | 补偿金额 | string | |
good_status | 货物状态 | string | |
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.asi_id | 售后子单号 | string | |
items.as_id | ERP售后单号 | string | |
items.sku_id | 商品编码 | string | |
items.qty | 数量 | string | |
items.price | 单价 | string | |
items.amount | 金额 | string | |
items.name | 商品名称 | string | |
items.pic | 图片地址 | string | |
items.type | 类型(退货,换货,补发) | string | |
items.properties_value | 颜色规格 | string | |
items.outer_oi_id | 子订单号 | string | |
items.sku_type | 商品类型 | string | |
items.r_qty | 实收退货数量 | string | |
items.i_id | 款式编码 | string | |
items.batchs | 批次集合 | array | |
items.batchs.batch_no | 批次号 | string | |
items.batchs.sku_id | 商品编码 | string | |
items.batchs.qty | 商品数量 | string | |
items.batchs.product_date | 批次日期 | string | |
items.batchs.supplier_id | 供应商编号 | string | |
items.batchs.supplier_name | 供应商名称 | string | |
金蝶云星空接口明细
- API:batchSave
- NAME:[聚水潭][销售退货单标准新增]-v1
- METHOD:POST
请求参数
接口字段 | 字段名称 | 预设值 | 描述 |
FBillTypeID | 单据类型 | XSTHD01_SYS | 单据类型 |
FBillNo | 单据编号 | {{as_id}} | 单据编号 |
FSaleOrgId | 销售组织 | 103 | 销售组织 |
FDate | 日期 | {{created}} | 日期 |
FStockOrgId | 库存组织 | {{wms_co_id}} | 库存组织 |
FRetcustId | 退货客户 | {{shop_id}} | 退货客户 |
FSettleCurrId | 结算币别 | PRE001 | 结算币别 |
FHeadNote | 备注 | {{as_id}} | 备注 |
FEntity | 明细信息 | | 明细信息 |
FEntity.FMaterialId | 物料编码 | {{items.i_id}} | 物料编码 |
FEntity.FRealQty | 实退数量 | {{items.qty}} | 实退数量 |
FEntity.FPrice | 单价 | {{items.price}} | 单价 |
FEntity.FTaxPrice | 含税单价 | | 含税单价 |
FEntity.FIsFree | 是否赠品 | _function case '{{items_price}}' when '0' then true else false end | 是否赠品 |
FEntity.FEntryTaxRate | 税率% | | 税率% |
FEntity.FReturnType | 退货类型 | THLX01_SYS | 退货类型 |
FEntity.FOwnerTypeId | 货主类型 | BD_OwnerOrg | 货主类型 |
FEntity.FOwnerId | 货主 | {{wms_co_id}} | 货主 |
FEntity.FStockId | 仓库 | {{wms_co_id}}{{wh_id}} | 仓库 |
FEntity.FNote | 备注 | | 备注 |
FEntity.SubHeadEntity | 财务信息 | | 财务信息 |
FEntity.SubHeadEntity.FSettleOrgId | 结算组织 | 103 | 结算组织 |
FEntity.SubHeadEntity.FormId | 业务对象表单Id | SAL_RETURNSTOCK | 必须填写金蝶的表单ID如😛UR_PurchaseOrder |
FEntity.SubHeadEntity.Operation | 执行的操作 | BatchSave | |
FEntity.SubHeadEntity.IsAutoSubmitAndAudit | 提交并审核 | true | |
FEntity.SubHeadEntity.IsVerifyBaseDataField | 验证基础资料 | false | 是否验证所有的基础资料有效性,布尔类,默认false(非必录) |
系统数据对接
数据集成中台设计中心Web界面以“拖拽”式交互设计,使用鼠标即可构建设计多异构系统数据集成流程,低代码平台大大降低流程设计者上手门槛。还有丰富的组件库快速满足复杂业务需求,结合不同模块即可生成不同业务流程,提升流程设计效率。平台支持多种高度灵活部署,高并发、高性能、高可用,可以通过多节点组成集群实现性能的横向扩展。适度集群配置其数据集成处理能力可达GB级/秒,为业务流提供更高数据吞吐量。平台已集成数据回压、优先级队列等能力,保障运行稳定性。完善的企业API运营管理机制帮助您构建“API生产者、API管理者、API消费者”三者结合的统一API数字化生态。支持市面上主流厂家软件如:金蝶、用友、SAP、泛微、蓝凌、旺店通、聚水潭、马帮、小满CRM等等。

