[TOC]
## 请求绑定客易达
~~~[api]
post:/abacus/bind
*string:name=小算盘#小算盘系统名称
*string:alias=v9988#小算盘系统标识
*string:link=https://abacus.52jiewang.com/v9988/#小算盘系统地址
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]绑定客易达反馈
~~~[api]
post:/Keeda/bind
*string:alias=v9988#客易达系统标识
*string:appid=wx288393432222#客易达绑定的微信公众号ID
*int:apply=1#是否同意绑定 0-拒绝,1-同意
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## 同步门店数据
~~~[api]
post:/abacus/shop
*string:list=[]#门店列表,json格式 [{"id":"门店Id", "shop_name":"门店名称", "phone":"联系电话", "address":"门店地址"} ]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## 同步员工数据
~~~[api]
post:/abacus/user
*string:list=[]#员工列表,json格式 [{"id":"员工Id", "name":"员工名称", "phone":"联系电话", "entry_date":"入职日期", "shop_id":"归属店", "is_admin":"是否管理员"} ]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## 同步商品分类数据
~~~[api]
post:/abacus/goodstype
*string:list=[]#分类列表,json格式 [{"id":"分类Id", "title":"分类名称"}]<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## 同步商品品牌数据
~~~[api]
post:/abacus/goodsbrand
*string:list=[]#品牌列表,json格式 [{"id":"品牌Id", "title":"品牌名称"} ]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## 同步商品数据
~~~[api]
post:/abacus/goods
*string:list=[]#商品列表,json格式 [{"id":"商品Id", "title":"商品名称", "brand_id":"品牌", "type_id":"分类", "price":"零售价", "sn":"商品码"}]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## 合并商品
~~~[api]
post:/abacus/mergegoods
*int:goods_id=1001#保留的商品ID
*int:del_id=1000#被合并删除的商品ID
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]新增订单
~~~[api]
post:/Keeda/addOrder
*string:alias=v9988#客易达系统标识
*int:order_id=10001#订单ID
*int:user_id=1000#创建人ID
*int:seller_id=1000#销售员ID
*int:owner_id=1000#会员归属员工ID
*int:shop_id=1000#销售门店ID
*string:create_date=2019-04-22#销售日期
*int:member_id=1000#会员ID
*string:member_name=张三#会员姓名
*string:member_phone=13388996677#会员电话
*string:remark=备注#订单备注
*string:pay_info=[]#付款信息,json格式 [{"kind_id":"分类ID"},{"payment_id":"支付方式ID", "money": "金额"}]
*string:goods=[]#商品列表,json格式 [{"goods_id":"商品Id", "state":"类型 -3-退运营商业务赠品,-2-退赠品,-1-退货,1-售出,2-赠送",3-运营商业务赠送, "count":"数量", "price":"零售价(实际售价)", "gid":"商品唯一ID","owner_id":"赠品归属唯一ID"} ]
*string:mobiles=[]#运营商业务列表,json格式 [{"mid":"业务唯一编码","mobile_id":"业务Id","eid_id":"工号Id", "phone":"业务手机号", "sn":"业务身份证号", "money":"酬金", "state":"类型 -1-退货,1-售出", "price":"零售价(实际售价)"} ]
<<<
success
{
"code": 0,
"info": "成功",
"data": [
"review": 0,
"mobile": {
"业务唯一编码":"小算盘业务编码"
}
]
}
~~~
## [小算盘]编辑订单
~~~[api]
post:/Keeda/editOrder
*string:alias=v9988#客易达系统标识
*int:order_id=10001#订单ID
*int:user_id=1000#创建人ID
*int:seller_id=1000#销售员ID
*int:owner_id=1000#会员归属员工ID
*int:shop_id=1000#销售门店ID
*string:create_date=2019-04-22#销售日期
*int:member_id=1000#会员ID
*string:member_name=张三#会员姓名
*string:member_phone=13388996677#会员电话
*string:remark=备注#订单备注
*string:pay_info=[]#付款信息,json格式 [{"kind_id":"分类ID"},{"payment_id":"支付方式ID", "money": "金额"}]
*string:goods=[]#商品列表,json格式 [{"goods_id":"商品Id", "state":"类型 -3-退运营商业务赠品,-2-退赠品,-1-退货,1-售出,2-赠送",3-运营商业务赠送, "count":"数量", "price":"零售价(实际售价)", "gid":"商品唯一ID","owner_id":"赠品归属唯一ID"} ]
*string:mobiles=[]#运营商业务列表,json格式 [{"mid":"业务唯一编码","mobile_id":"业务Id","eid_id":"工号Id", "phone":"业务手机号", "sn":"业务身份证号", "money":"酬金", "state":"类型 -1-退货,1-售出", "price":"零售价(实际售价)"} ]
<<<
success
{
"code": 0,
"info": "成功",
"data": [
"review": 0,
"mobile": {
"业务唯一编码":"小算盘业务编码"
}
]
}
~~~
## [小算盘]撤销订单
~~~[api]
post:/Keeda/delOrder
*string:alias=v9988#客易达系统标识
*int:order_id=10001#订单ID
*int:user_id=1000#操作人ID
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]销售订单跳转小算盘
~~~[api]
get:/Keeda/keedaOrder
*int:id=10000#订单ID
<<<
success
无
~~~
## 小算盘微信自动登录
小算盘绑定客易达后,通过客易达的微信授权实现微信中自动登录
### 第一步:跳转平台授权
重定向方式请求
~~~[api]
get:https://weopen.52jiewang.com/api/v1/wechat/authorize
*string:redirect_uri=...#客易达回调地址[客易达地址/api/v1/wechat/abacus]
*string:appid=wx20989049421#客易达绑定的微信公众号ID
<<<
success
无
~~~
### 第二步:回跳小算盘
~~~[api]
get:/Keeda/auth
*string:alias=v9988#客易达系统标识
*string:hash=ab67acss2321321321#(sha1(user_id+keeda)的前16位)+(sha1(keeda+user_id)的后16位)
*int:user_id=1000#用户ID,0表示无
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## 发送模板消息
~~~[api]
post:/abacus/template
*string:list=[]#消息列表,json格式 [{"user_id":"接收消息的用户Id", "type":"模板类型 report-日报,system-系统消息", "url":"消息链接", "data":"消息数据"} ]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]查询商品信息
~~~[api]
post:/Keeda/fetchGoods
*string:alias=v9988#客易达系统标识
*string:sn=8689097168273223#串码
*int:type=1#销售类型 1-售出,2-退货
*int:search=1#查询方式 1-扫码,2-模糊查找
*int:shop_id=1000#销售门店ID
<<<
success
{
"code": 0,
"info": "成功",
"data": [{
"goods_id":"商品ID",
"goods_name":"商品名称",
"goods_sn":"商品码",
"price":"零售价",
"type_id":"分类ID",
"type_name":"分类名称",
"brand_id":"品牌ID",
"brand_name":"品牌名称",
"sn":"小算盘首选串码",
"gid":"小算盘商品ID",
"owner_id":"退赠品时归属id"
}]
}
~~~
## [小算盘]新增会员卡订单/同步会员卡订单
~~~[api]
post:/Keeda/addCardOrder
*string:alias=v9988#客易达系统标识
*int:order_id=10001#订单ID
*int:user_id=1000#创建人ID
*int:seller_id=1000#销售员ID
*int:owner_id=1000#会员归属员工ID
*int:shop_id=1000#销售门店ID
*string:create_date=2019-04-22#销售日期
*int:member_id=1000#会员ID
*string:member_name=张三#会员姓名
*string:member_phone=13388996677#会员电话
*string:remark=备注#订单备注
*string:pay_info=[]#付款信息,json格式 [{"kind_id":"分类ID"},{"payment_id":"支付方式ID", "money": "金额"}]
*string:cards=[]#会员卡信息,json格式 [{"card_id":"会员卡Id", "card_name":"会员卡名称", "state":"类型 -1-退货,1-售出", "price":"零售价(实际售价)"} ]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]撤销会员卡订单
~~~[api]
post:/Keeda/delCardOrder
*string:alias=v9988#客易达系统标识
*int:order_id=10001#订单ID
*int:user_id=1000#操作人ID
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]会员卡订单跳转小算盘
~~~[api]
get:/Keeda/keedaCardOrder
*int:id=10000#订单ID
<<<
success
无
~~~
## [小算盘]获取支付方式
~~~[api]
post:/Keeda/fetchPayment
*string:alias=v9988#客易达系统标识
*int:shop_id=100#门店ID
*int:user_id=1000#操作人ID
*int:scene=1#场景 1-销售下单,2-会员卡业务
<<<
success
{
"code": 0,
"info": "成功",
"data": [{
"kind_id":"分类ID",
"kind_name":"分类名称",
"payments":[{
"payment_id":"支付方式ID",
"payment_name":"支付方式名称"
}]
}]
}
~~~
> 特殊约定的支付方式
>
> * 积分抵扣 1
> * 余额支付 2
> * 现金券抵扣 3
> * 欠账 4
## [小算盘]获取欠账人信息
~~~[api]
post:/Keeda/fetchDebt
*string:alias=v9988#客易达系统标识
*int:shop_id=100#门店ID
*int:user_id=1000#操作人ID
*int:scene=1#场景 1-销售下单,2-会员卡业务
<<<
success
{
"code": 0,
"info": "成功",
"data": [{
"payment_id":"欠账人ID",
"payment_name":"欠账人名称"
}]
}
~~~
## [客e达]获取会员等级接口
~~~[api]
post:/abacus/memberlevel
<<<
success
{
"code": 0,
"info": "成功",
"data": [{
"id": 1,
"name": "普通会员",
"sort": 1,
"discount": 90,
"price": "0.00"
}, {
"id": 22,
"name": "白银会员",
"sort": 11,
"discount": 98,
"price": "66.0"
}],
}
<<<
error
~~~
## [客e达]分润提交到客e达
~~~[api]
post:/abacus/profit
*string:list=[]#支付列表,json格式 [{"id":"记录Id", "user_id":"员工id", "remark":"描述", "type":"-1删除记录,1主动收益,2被动收益", "money":"金额","is_pay":"1立即支付,0不支付"}]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]分润支付状态回报
~~~[api]
post:/Keeda/profitPay
*string:list=[]#支付列表,json格式 [{"id":"记录Id", "pay_about":"微信支付返回状态或支付失败原因", "pay_date":"支付时间", "pay_status":"0未支付,1支付成功,2支付失败", "pay_type":"0为客e达支付系统,1.为客户自己的支付系统","keeda_profit_id":"客e达记录id","money":"实际支付金额"}]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]获取当前分润信息
~~~[api]
post:/Keeda/fetchUserProfit
*string:alias=v9988#客易达系统标识
*int:user_id=1000#要查询的用户ID
<<<
success
{
"code": 0,
"info": "成功",
"data": {
"user_id":"用户ID",
"day_profit":"今日分润",
"month_profit":"本月分润"
}
}
~~~
## [小算盘]获取分润记录
~~~[api]
post:/Keeda/fetchUserProfitRecord
*string:alias=v9988#客易达系统标识
*int:user_id=1000#要查询的用户ID
*string:begin_date=2019-08-01#起始日期
*string:end_date=2019-08-08#结束日期
*int:limit=10#每页数量
*int:page=1#第几页
<<<
success
{
"code": 0,
"info": "成功",
"data": {
"user_id":"用户ID",
"count":"总数量",
"info":{
"all":10,
"allmoney":100,
"zhu":7,
"zhumoney":70,
"bei":3,
"beimoney":30
},
"list":[{
"user_id":1000,
"money":10,
"create_date":"2019-08-01",
"type":1,
"remark":"描述"
}]
}
}
~~~
## [客e达]会员信息查询
~~~[api]
post:/abacus/fetchMember
*int:type=0手机号或卡号或id,1会员id,2会员卡号,3手机号#类型
*array:list=[]#列表
<<<
success
{
"code": 0,
"info": "成功",
"data": [{
"id": 98,
"phone": "",
"member_name": "艺商阿良",
"member_card": 80000122,
"score": 0,
"total_score": 0,
"join_date": "2018-04-26",
"user_id": 1010,
"shop_id": 1,
"sex": 1,
"birthday": null,
"sn": "",
"flag": 1,
"flag_time": 1547603587,
"wechat_user_id": 98,
"wechat_card": 0,
"state": 0,
"level": 1,
"balance": 0,
"set_phone": "",
"set_name": "",
"set_birthday": null,
"set_sex": 0,
"set_sn": "",
"come": 3,
"level_end_time": 0,
"one_openid": "orXc50mCrGHQNBRQK7PvBvDxgsBs",
"is_new": 1,
"abacus_user_id": 1000
}],
"ver": "1.3.5"
}
~~~
## [小算盘]获取运营商业务列表
~~~[api]
post:/Keeda/fetchMobileList
*string:alias=v9988#客易达系统标识
<<<
success
{
"code": 0,
"info": "成功",
"data": {
"mobiles":[{
"name":"飞享38(中国移动/新入网)",
"mobile_id":100,
"money_type":1// 1-固定酬金,2-自填酬金
}],
"eids":[{
"eid_id":1000,
"name":"EE409872(中国移动/一店移动)"
}]
}
}
~~~
## [小算盘]获取退货运营商业务
~~~[api]
post:/Keeda/fetchBackMobile
*string:alias=v9988#客易达系统标识
*string:shop_id=100#门店ID
*string:mid=1290#业务ID,0表示获取最近一周业务
<<<
success
{
"code": 0,
"info": "成功",
"data": [{
"mid":1290,
"mobile_name":"飞享38(中国移动/新入网)",
"mobile_id":100,
"eid_name":"EE409872(中国移动/一店移动)",
"eid_id":100,
"phone":"13468821993",
"sn":"610521198002091290",
"out_price":100
}]
}
~~~
## [客e达]同步订单审核状态
~~~[api]
post:/api/v1/abacus/orderVerify
*string:orders=[]#订单列表,json格式 [{"id":"订单Id", "abacus_verify":"1-已审核,0-未审核"} ]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]收/退会员预付款
~~~[api]
post:/Keeda/addBalanceOrder
*string:alias=v9988#客易达系统标识
*int:order_id=10001#订单ID
*int:user_id=1000#创建人ID
*int:shop_id=1000#销售门店ID
*string:create_date=2019-04-22#销售日期
*int:type=1#类型,1-收,2-退
*int:money=1000#预付款金额
*int:member_id=1000#会员ID
*string:member_name=张三#会员姓名
*string:member_phone=13388996677#会员电话
*string:remark=备注#订单备注
*string:pay_info=[]#付款信息,json格式 [{"kind_id":"分类ID"},{"payment_id":"支付方式ID", "money": "金额"}]
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]撤销预付款订单
~~~[api]
post:/Keeda/delBalanceOrder
*string:alias=v9988#客易达系统标识
*int:order_id=10001#订单ID
*int:user_id=1000#操作人ID
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [客e达]同步预付款
~~~[api]
post:/api/v1/abacus/synBalance
*string:list=[]#订单列表,json格式 [{"phone":"会员手机号", "balance":"预付款金额"} ]
<<<
success
{
"code": 0,
"info": "成功",
"data": [{"phone":"会员手机号", "balance":"预付款金额"} ]
}
~~~
## [小算盘]新增兑换券核销订单
~~~[api]
post:/Keeda/addCouponOrder
*string:alias=v9988#客易达系统标识
*int:order_id=10001#订单ID
*int:user_id=1000#创建人ID
*int:seller_id=1000#销售员ID
*int:shop_id=1000#销售门店ID
*string:create_date=2019-04-22#销售日期
*int:member_id=1000#会员ID
*string:member_name=张三#会员姓名
*string:member_phone=13388996677#会员电话
*string:remark=备注#订单备注
*int:goods_id=1000#商品ID
*string:coupon_info=[]#券信息,json格式{"id":"券ID", "name": "券名称"}
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
## [小算盘]撤销兑换券核销订单
~~~[api]
post:/Keeda/delCouponOrder
*string:alias=v9988#客易达系统标识
*int:order_id=10001#订单ID
*int:user_id=1000#操作人ID
<<<
success
{
"code": 0,
"info": "成功",
"data": []
}
~~~
- 全局说明
- 微信相关接口
- 首页
- 系统消息
- 消息中心
- 基础设置
- 门店管理
- 员工管理
- 职务管理
- 会员
- 标签管理
- 会员管理
- 会员等级
- 会员等级权益
- 会员权益核销
- 聊天记录
- 会员等级电子券
- 商品
- 商品分类
- 商品品牌
- 商品管理
- 订单
- 设置
- 生日提醒
- 积分规则
- 客服消息设置
- 群发消息
- 会员/售后待办
- 关键字回复
- 自定义菜单
- 会员卡号规则设置
- 会员卡ID设置
- 客服经理
- 小算盘设置
- 个人中心
- 员工我的待办列表
- 跟进
- 会员动态
- 会员积分/余额
- 订单记录列表
- 个人中心详情页面
- 会员待办列表
- 会员电子券
- 客户平台
- 会员聊天
- 我的顾问
- 客户订单
- 客户中心
- 客户电子券
- 我的动态
- 会员积分/余额
- 统计
- 会员统计
- 会员发展统计
- 销售统计
- 待办统计
- 电子券统计
- 会员等级变更统计
- 积分统计
- 余额统计
- 电子券核销统计
- 权限管理
- 员工权限
- 电子券
- 订单满额
- 订单电子券
- 商品组电子券
- 群发电子券
- 一对一投放
- 商品组
- 商品组商品
- 会员分配
- PC版相关
- 导出相关
- 开通流程页面
- 合作商家
- 商家相关
- 引流券相关
- 合作商家
- 领取功能
- 打印设置
- 小算盘
- e学堂
- 获取Openid