管易云·奇门和金蝶云星空接口打通对接实战

来源系统:管易云·奇门
管易云是上海管易云计算软件有限公司旗下的专注提供电商企业管理软件服务的品牌,总部位于中国上海张江高科技产业园区。管易云旗下拥有管易云C-ERP、EC-OMS、EC-WMS、B2C/B2B/BBC/微商城开发、PDA无纸化仓储解决方案、新零售一体化解决方案等产品
接入系统:金蝶云星空
金蝶K/3Cloud结合当今先进管理理论和数十万家国内客户最佳应用实践,面向事业部制、多地点、多工厂等运营协同与管控型企业及集团公司,提供一个通用的ERP服务平台。K/3Cloud支持的协同应用包括但不限于:集中/分散销售、集中/分散采购、B2B电商管理、B2C电商中心、供应商协同、多工厂计划、跨工厂领料、跨工厂加工、工厂间调拨、内部交易及结算、集团财务管理、阿米巴经营等。
数据接口配置方案
使用轻易云系统数据集成平台对应的模块:数据集成方案。然后选择开始创建数据集成方案。在方案配置表单中选择对应的源业务系统:管易云·奇门,然后选择对应的连接器。选择对应的退货单查询作为数据对接来源。然后再通过写入目标平台配置目标系统为金蝶云星空,并且选择对应连接器(关于金蝶云星空的接口如何配置可以在轻易云数据集成社区论坛中找到相关信息,选择好对应的销售退货新增接口作为数据写入动作,既可以完成第一步的数据对接配置。


管易云·奇门接口明细
- API:gy.erp.trade.return.get
- NAME:退货单查询
- METHOD:POST
请求参数
接口字段 | 字段名称 | 预设值 | 描述 |
code | 单据编号 | | |
start_create | 创建时间开始段 | | |
end_create | 创建时间结束段 | | |
in_begin_time | 入库时间开始段 | {{LAST_SYNC_TIME datetime}} | |
in_end_time | 入库时间结束段 | {{CURRENT_TIME datetime}} | |
shop_code | 店铺代码 | | |
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 | 系统退款单号 | | |
金蝶云星空接口明细
- API:batchSave
- NAME:销售退货新增
- METHOD:POST
请求参数
接口字段 | 字段名称 | 预设值 | 描述 |
FBillTypeID | 单据类型 | XSTHD01_SYS | 单据类型 |
FBillNo | 单据编号 | {{code}} | 单据编号 |
FSaleOrgId | 销售组织 | 100 | 组织 |
FDate | 日期 | {{modify_date}} | 日期 |
FStockOrgId | 库存组织 | 100 | 组织 |
FRetcustId | 退货客户 | {{shop_code}} | 基础资料 |
FSaledeptid | 销售部门 | {{shop_code}} | 基础资料 |
FSettleCurrId | 结算币别 | PRE001 | 基础资料 |
F_ora_platform_code | 网上订单号 | {{details.platform_code}} | 单选辅助资料列表 |
FCorrespondOrgId | 对应组织 | 100 | 组织 |
F_ora_Base | 项目 | {{shop_code}} | 基础资料 |
FHeadNote | 备注 | | 多行文本 |
FEntity | 明细信息 | details | |
FEntity.FMaterialId | 物料编码 | {{details.item_code}} | 基础资料 |
FEntity.FRealQty | 实退数量 | {{details.real_in}} | 数量 |
FEntity.FPrice | 单价 | | 单价 |
FEntity.FTaxPrice | 含税单价 | | 单价 |
FEntity.FIsFree | 是否赠品 | _function case '{{details.amount_after}}' when '0' then true else false end | 复选框 |
FEntity.FEntryTaxRate | 税率% | | 小数 |
FEntity.FReturnType | 退货类型 | | 单选辅助资料列表 |
FEntity.FOwnerTypeId | 货主类型 | BD_OwnerOrg | 多类别基础资料列表 |
FEntity.FOwnerId | 货主 | 100 | 多类别基础资料 |
FEntity.FStockId | 仓库 | {{warehousein_code}} | 基础资料 |
FEntity.FLot | 批号 | 1 | 批次 |
FEntity.FALLAMOUNT | 价税合计 | {{details.amount_after}} | 文本 |
FEntity.SubHeadEntity | 财务信息 | | |
FEntity.SubHeadEntity.FSettleOrgId | 结算组织 | 100 | 组织 |
FEntity.SubHeadEntity.FormId | 业务对象表单Id | SAL_RETURNSTOCK | 必须填写金蝶的表单ID如😛UR_PurchaseOrder |
FEntity.SubHeadEntity.Operation | 执行的操作 | Save | |
FEntity.SubHeadEntity.IsAutoSubmitAndAudit | 提交并审核 | true | |
FEntity.SubHeadEntity.IsVerifyBaseDataField | 验证基础资料 | false | 是否验证所有的基础资料有效性,布尔类,默认false(非必录) |
FEntity.SubHeadEntity.SubSystemId | 系统模块 | 21 | 默认仓库模块 |
数据对接价值
将传统的统计分析转变为预测分析,从被动分析到主动分析,从非实时分析转变为实时分析,从结构化的数据变成多元化的数据。精准查询数据流同步状况,实时监管队列任务以及数据资产的有序管理。为业务赋能,降本增效,让企业能够更加合理的布局团队;结合业务需求实现与OA,CRM,WMS等系统之间的数据交流与同步,为企业定制自定义的数据管理方案,用技术拓展商业边界,为新业务、新部门提供成长空间。

