益华云结算接入步骤

本文档展示了如何从零开始,使用益华云开放平台快速接入云结算,完成与微信、支付宝、益华钱包的对接。

注意:文档中的代码示例和Demo是用来阐述API基本使用方法的,仅针对大众场景。仅供参考,特殊情况还请自行扩展,确保符合自身业务需求。

第一步:获取YHDT编号、AppKey和AppSecret

要在您的应用中使用益华云结算的接口能力,您需要先向益华申请YHDT(益华鼎泰号),通过后会为您生成客户唯一标识YHDT编号、AppKey和AppSecret,并且可以申请开通开放产品使用权限,通过YHDT校验后,获得平台级Token,您的应用才能具备调用益华云产品的接口能力。

第二步:接入方本地配置

接入方需要在本地保存YHDT号、AppKey和AppSecret,便于在调用相关接口时使用。(应注意,此三个参数只能在服务端或ERP线下内网使用,以防泄漏)

以下为常用接口组地址:

沙箱环境

云用户&云结算

基础接口组 https://api.sandbox.yhsms.com.cn/UserAccount/Base/BaseService.svc
账户接口组 https://api.sandbox.yhsms.com.cn/UserAccount/Account/AccountService.svc
用户接口组 https://api.sandbox.yhsms.com.cn/UserAccount/User/UserService.svc
分销接口组 https://api.sandbox.yhsms.com.cn/UserAccount/Distribution/DistributionService.svc
积分接口组 https://api.sandbox.yhsms.com.cn/UserAccount/Bonus/BonusService.svc
卡券接口组 https://api.sandbox.yhsms.com.cn/UserAccount/Card/CardService.svc
ERP接口组 https://api.sandbox.yhsms.com.cn/UserAccount/Erp/ErpService.svc
云梯接口组 https://api.sandbox.yhsms.com.cn/UserAccount/Ladder/LadderService.svc
代理商接口组 https://api.sandbox.yhsms.com.cn/UserAccount/Agency/AgencyService.svc
总控接口组 https://api.sandbox.yhsms.com.cn/UserAccount/AzureControl/AzureControlService.svc

云商城

基础接口组 https://api.sandbox.yhsms.com.cn/UserAccount/Base/BaseService.svc
店铺接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Shop/ShopService.svc
用户接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/User/UserService.svc
类目接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Category/CategoryService.svc
商品接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Goods/GoodsService.svc
交易接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Trade/TradeService.svc
租借接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Borrow/BorrowService.svc
物流接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Logistics/LogisticsService.svc
评价接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Traderate/TraderateService.svc
设备接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Device/DeviceService.svc
分销接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Distribution/DistributionService.svc
ERP接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Erp/ErpService.svc

CMS接口组

CMS接口组 https://api.cms.sandbox.yhsms.com.cn/CMS/CmsService.svc
广告接口组 https://api.cms.sandbox.yhsms.com.cn/CMS/AdvertService.svc

云报表

账户接口组 http://api.report.sandbox.yhsms.com.cn/Report/Account/AccountService.svc
中金专用接口组 http://api.report.sandbox.yhsms.com.cn/Report/CentrinEcloud/CentrinEcloudService.svc
渠道接口组 http://api.report.sandbox.yhsms.com.cn/Report/Channel/ChannelService.svc
商品接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Goods/GoodsService.svc
单据接口组 https://api.mall.sandbox.yhsms.com.cn/Mall/Receipt/ReceiptService.svc
报表接口组 http://api.report.sandbox.yhsms.com.cn/Report/Report/ReportService.svc
订单接口组 http://api.report.sandbox.yhsms.com.cn/Report/Report/ReportService.svc
用户接口组 http://api.report.sandbox.yhsms.com.cn/Report/User/UserService.svc

云产品

基础接口组 https://api.product.sandbox.yhsms.com.cn/Base/BaseService.svc
产口接口组 https://api.product.sandbox.yhsms.com.cn/Product/ProductService.svc

云营销

基础接口组 http://api.marketing.sandbox.yhsms.com.cn/Base/BaseService.svc
消息推送接口组 http://api.marketing.sandbox.yhsms.com.cn/Marketing/MarketingService.svc

清算系统

钱包清算接口组 http://api.liquidation.sandbox.yhsms.com.cn/Liquidation/LiquidationService.svc

云发票
发票接口组 https://api.invoice.sandbox.yhsms.com.cn/Invoice/InvoiceService.svc

云存储

文件接口组(HTTP模式) https://file.yhsms.com.cn/Interface/HttpFileStoreSvc.svc
文件接口组(TCP模式) https://file.sandbox.yhsms.com.cn/Interface/FileStoreService.svc

RCM权限
权限接口组 http://api.rc.sandbox.yhsms.com.cn/ResourceControl/PermissionService.svc

生产环境
沙箱环境地址域名去掉sandbox

文档更新时间: 2021-08-13 09:12   作者:张国伟