管易云·奇门与金蝶云星空对接集成退货单查询打通销售退货新增

数据源平台:管易云·奇门
管易云是金蝶旗下专注提供电商企业管理软件服务的子品牌,先后开发了C-ERP、EC-OMS、EC-WMS、E店管家、BBC、B2B、B2C商城网站建设等产品和服务,涵盖电商业务全流程。
接通系统:金蝶云星空
金蝶K/3Cloud结合当今先进管理理论和数十万家国内客户最佳应用实践,面向事业部制、多地点、多工厂等运营协同与管控型企业及集团公司,提供一个通用的ERP服务平台。K/3Cloud支持的协同应用包括但不限于:集中/分散销售、集中/分散采购、B2B电商管理、B2C电商中心、供应商协同、多工厂计划、跨工厂领料、跨工厂加工、工厂间调拨、内部交易及结算、集团财务管理、阿米巴经营等。
数据接口配置方案
集成方案是整个轻易云集成平台的核心,每一个集成方案代表一种业务的对接策略(对接方案借鉴可以在轻易云系统数据集成交流社区bbs.qeasy.cloud 中找到相关信息),用户可以根据业务的不同新建多个不同规则的集成方案。比如:采购订单同步,线上销售出库同步,线下销售出库同步。一个集成方案必须要配置源系统:管易云·奇门,源系统 API:退货单查询,目标系统:金蝶云星空,目标系统 API销售退货新增。在新增集成方案之前需要确定两个系统的连接器都已经配置完成。

管易云·奇门接口明细
- API:gy.erp.trade.return.get
- NAME:退货单查询
- METHOD:POST
请求参数
接口字段 | 字段名称 | 预设值 | 描述 |
code | 单据编号 | | |
start_create | 创建时间开始段 | | |
end_create | 创建时间结束段 | | |
in_begin_time | 入库时间开始段 | 2022-05-10 00:00:00 | |
in_end_time | 入库时间结束段 | 2022-05-10 23:59:59 | |
shop_code | 店铺代码 | 004 | |
drp_tenant_name | 分销商名称 | | |
platform_code | 平台单号 | | |
return_type | 退货类型代码 | | |
express_no | 快递单号 | | |
vip_name | 会员名称 | | |
agree | 同意状态 | | |
receive | 入库状态 | | |
cancel | 作废状态 | | |
no_parcel | 是否三无包裹 | | |
receiver_name | 退货人姓名 | | |
receiver_phone | 退货人手机 | | |
warehousein_code | 退入仓库代码 | | |
warehouseout_code | 退出仓库代码 | | |
modify_start_date | 修改时间开始段 | | |
modify_end_date | 修改时间结束段 | | |
page_no | 页码 | {{PAGINATION_START_PAGE}} | 默认为1 |
page_size | 每页大小 | {{PAGINATION_PAGE_SIZE}} | 默认为10 |
响应参数
接口字段 | 字段名称 | 预设值 | 描述 |
id | id | | |
code | 单据编号 | | |
reason | 平台退货原因 | | |
create_date | 创建时间 | | |
approve_date | 审核时间 | | |
approve | 审核状态 | | |
receive_date | 入库时间 | | |
cancel | 取消状态 | | |
shop_name | 店铺名称 | | |
shop_code | 店铺代码 | | |
platform_code | 平台单号 | | |
platform_refund_id | 平台退款单号 | | |
sanwu_package | 是否三无包裹 | | |
vip_code | 会员代码 | | |
warehousein_code | 退入仓库代码 | | |
warehouseout_code | 退出仓库代码 | | |
location_code | 库位代码 | | |
express_code | 退入快递公司代码 | | |
express_name | 退入快递名称 | | |
express_num | 退入快递单号 | | |
receiver_phone | 退货人手机 | | |
details | 退入商品列表 | | |
details.qty | 待入库数 | | |
details.price | 实际单价 | | |
details.amount | 实际金额 | | |
details.note | 备注 | | |
details.oid | 子订单号 | | |
details.sku_code | 规格代码 | | |
details.item_sku_id | 规格ID | | |
details.sku_note | 规格备注 | | |
details.item_name | 商品名称 | | |
details.amount_after | 让利后金额 | | |
details.post_fee | 物流费用 | | |
details.item_code | 商品代码 | | |
details.item_id | 商品ID | | |
details.real_in | 实际入库数 | | |
details.discount_fee | 让利金额 | | |
details.detail_unique | 唯一码列表 | | |
details.detail_batch | 批次列表 | | |
details.is_gift | 是否赠品 | | |
details.combine_item_code | 组合商品代码 | | |
details.other_service_fee | 其他服务费 | | |
details.total_cost_price | 退款成本 | | |
details.payments | 退款明细 | | |
details.payments.payment | 退款金额 | | |
details.payments.account | 退款账户 | | |
details.payments.pay_type_code | 退款方式代码 | | |
details.payments.pay_time | 退款时间 | | |
details.payments.refund_phase | 售后阶段 | | |
details.payments.refund_type | 售后类型 | | |
details.payments.return_type | 退货原因代码 | | |
details.payments.receive | 入库状态 | | |
details.payments.agree_refuse | 同意退货状态 | | |
details.payments.order_code | 销售订单号 | | |
details.payments.modify_date | 修改时间 | | |
details.payments.business_man | 业务员 | | |
details.payments.receiver_name | 收货人 | | |
details.payments.receiver_mobile | 收货人手机 | | |
details.payments.receiver_zip | 收货人邮编 | | |
details.payments.receiver_address | 收货人地址 | | |
details.payments.area_name | 收货人省市区 | | |
details.payments.drp_tenant_name | 分销商名称 | | |
details.payments.drp_tenant_mobile | 分销商手机号 | | |
details.payments.cancel_date | 作废日期 | | |
details.payments.warehousein_name | 退入仓库名称 | | |
details.payments.vip_name | 会员名称 | | |
details.payments.platform_status | 平台状态 | | |
details.payments.refund_codes | 系统退款单号 | | |
金蝶云星空接口明细
- 调用接口:batchSave
- 接口名称:销售退货新增
- 方法:POST
请求参数
字段 | 字段名称 | 类型 | 配置值 |
FBillTypeID | 单据类型 | string | XSTHD01_SYS |
FBillNo | 单据编号 | string | {{code}} |
FSaleOrgId | 销售组织 | string | function case '{{shop_code}}' when '004' then '104' else '103' end |
FDate | 日期 | string | {{receive_date}} |
FStockOrgId | 库存组织 | string | _function case '{{shop_code}}' when '004' then '104' else '103' end |
FRetcustId | 退货客户 | string | {{shop_code}} |
FXSLX | 销售类型 | string | |
FAPI | API | string | true |
FEntity | 明细信息 | array | details |
FEntity.FMaterialId | 物料编码 | string | {{details.details_item_code}} |
FEntity.FUnitID | 库存单位 | string | findCollection find FPurchaseUnitId_FNumber from 66da8241-98f4-39f9-8fee-cac02e30e532 where FNumber={{details.details_item_code}} |
FEntity.FRealQty | 实退数量 | string | {{details.details_detail_batch_qty}} |
FEntity.FPriceUnitId | 计价单位 | string | _findCollection find FPurchaseUnitId_FNumber from 66da8241-98f4-39f9-8fee-cac02e30e532 where FNumber={{details.details_item_code}} |
FEntity.FSalUnitID | 销售单位 | string | findCollection find FPurchaseUnitId_FNumber from 66da8241-98f4-39f9-8fee-cac02e30e532 where FNumber={{details.details_item_code}} |
FEntity.FTaxPrice | 含税单价 | string | {{details.details_amount_after_price}} |
FEntity.FEntryTaxRate | 税率% | string | 13 |
FEntity.FStockId | 仓库 | string | {{warehousein_code}} |
FEntity.FLot | 批次号 | string | {{details.details_detail_batch_batchNumber}} |
FEntity.FProduceDate | 生产日期 | string | _function case _findCollection find FIsKFPeriod from 66da8241-98f4-39f9-8fee-cac02e30e532 where FNumber={{details.details_item_code}} endFind when true then '{{details.details_detail_batch_productionTime}}' else '' end |
FEntity.FExpiryDate | 有效期至 | string | _function case _findCollection find FIsKFPeriod from 66da8241-98f4-39f9-8fee-cac02e30e532 where FNumber={{details.details_item_code}} endFind when true then '{{details.details_detail_batch_validTime}}' else '' end |
FEntity.FNote | 备注 | string | |
FEntity.FOrderNo | 订单单号 | string | {{platform_code}} |
FEntity.SubHeadEntity | 财务信息 | object | |
FEntity.SubHeadEntity.FSettleOrgId | 结算组织 | string | _function case '{{shop_code}}' when '004' then '104' else '103' end |
FEntity.SubHeadEntity.FThirdBillNo | 第三方单据编号 | string | {{code}} |
FEntity.SubHeadEntity.FThirdBillId | 第三方单据平台单号 | string | {{platform_code}} |
FEntity.SubHeadEntity.FormId | 业务对象表单Id | string | SAL_RETURNSTOCK |
FEntity.SubHeadEntity.Operation | 执行的操作 | string | Save |
FEntity.SubHeadEntity.IsAutoSubmitAndAudit | 提交并审核 | bool | true |
FEntity.SubHeadEntity.IsVerifyBaseDataField | 验证基础资料 | bool | true |
FEntity.SubHeadEntity.SubSystemId | 系统模块 | string | 21 |
数据对接效果
可视化配置,即便是普通业务人员也可以快速轻松对接多个平台,解决企业面临的数据孤岛,数据混乱等问题,实现数据可见、可用、可运营。进行统一化,模块化,标准化的服务能力和输出,实现对业务端数据需求的精准满足和高效响应,也可以在业务数据需求的不断增加下,让企业有整套的可复用的api资产以更换,支持业务的正常运转,节省开发成本。在不同的着重点和应用上解决数据共享,实现平台之间的独立管理。
