[TOC]
## 信息
~~~[api]
post:/elecoupons/info
*int:id=默認值1#ID
<<<
success
{
"code": 0,
"info": "成功",
"data":{
"id": 2,
"type": 1,
"title": "測試電子券測試電子券測試",
"num": 20,
"inventory": 0,
"code": 0,
"deduction": "10.00",
"money": "100.00",
"validity_type": 1,
"validity": 30,
"start_date": "2018-11-01",
"end_date": "2019-01-01",
"use_week": "1,2,3",
"is_giving": 1,
"get_limit_type": 1,
"get_limit": 2,
"use_limit": 1,
"rules": "我是使用規則",
"user_id": 1000
}
}
<<<
error
~~~
## 列表
~~~[api]
post:/elecoupons/getlist
*int:page=1#頁碼
*int:limit=10#每頁顯示個數
<<<
success
{
"code": 0,
"info": "成功",
"data":[
{"id": 4, "type": 1, "title": "測試電子券測試電子券測試", "num": 20, "inventory": 0,…},
{"id": 3, "type": 1, "title": "測試電子券測試電子券測試", "num": 20, "inventory": 0,…},
{"id": 2, "type": 1, "title": "測試電子券測試電子券測試", "num": 20, "inventory": 0,…},
{"id": 1, "type": 1, "title": "測試電子券測試電子券測試", "num": 20, "inventory": 0,…}
]
}
<<<
error
~~~
## 添加add
~~~[api]
post:/elecoupons/add
*int:type=1#電子券類型 1現金券,2兌換券
*string:title=test#電子券名稱
*int:deduction=10# type=1 必傳 --- 可抵扣金額
*int:validity_type=1|2|3#有效期1-指定時間,2-領取計算,3會員有效期
*string:start_num=2018-11-01# validity_type=1,選擇時間段-開始時間,validity_type=2;電子券領取后多少天開始計算
*string:end_num=2018-12-01# validity_type=1,選擇時間段-結束時間,validity_type=2,有效天數
*string:use_week=1,2,3 # 周一到周天
*int:is_giving=1#是否可贈送,0否,1是
*int:get_limit_type=1#領取限制:1-不限制,2-數量限制,3-有效期內僅一張
*int:get_limit=2 #數量限制輸入數量
*string:level_ids=1# get_limit_type=4 適用等級ID串
int:use_limit=1# type=1 必傳 --- 使用限制,0不可疊加,1可疊加
*string:rules=test#使用規則
*string:shop_ids=1,2,3#適用門店ID串
int:num=30#數量
int:money=100# type=1 傳 --- 滿多少金額可用
*int:inventory=10# 庫存數量
*int:is_self=10# 是否支持自助核銷 0-不支持,1-支持
*array:put=array#可投放員工id數組
*array:auditor=array#可核銷員工id數組
<<<
success
<<<
error
~~~
## 編輯標題、規則
~~~[api]
post:/elecoupons/edittitle
*int:id=1000#Id
*string:title=test#電子券名稱
string:rules=test#使用規則
<<<
success
<<<
error
~~~
## 刪除
~~~[api]
post:/elecoupons/del
*int:id=1000#Id
<<<
success
~~~
## 制券記錄
~~~[api]
post:/elecoupons/logslist
*int:page=1#頁碼
*int:limit=10#每頁顯示個數
<<<
success
<<<
error
~~~
## 庫存變更
~~~[api]
post:/elecoupons/addinventory
*int:plusOrMinus=1#1-增加,0減少
*int:inventory_num=10#庫存數
*int:coupon_id=1#電子券ID
<<<
error
~~~
## 庫存變更列表
~~~[api]
post:/elecoupons/getinventorylist
*int:page=1#頁碼
*int:limit=10#每頁顯示個數
*int:coupon_id=1#電子券ID
<<<
success
<<<
error
~~~
## 設置電子券 投放人、核銷人
~~~[api]
post:/elecoupons/setadd
*int:coupon_id=1#電子券ID
*int:type=1# 1-投放人,2-核銷人
*array:user_ids=array#員工id數組
<<<
success
<<<
error
~~~
## 獲取電子券 投放人、核銷人
~~~[api]
post:/elecoupons/getuser
*int:coupon_id=1#電子券ID
*int:type=1# 1-投放人,2-核銷人
<<<
success
<<<
error
~~~
- 全局說明
- 微信相關接口
- 首頁
- 系統消息
- 消息中心
- 基礎設置
- 門店管理
- 員工管理
- 職務管理
- 會員
- 標簽管理
- 會員管理
- 會員等級
- 會員等級權益
- 會員權益核銷
- 聊天記錄
- 會員等級電子券
- 商品
- 商品分類
- 商品品牌
- 商品管理
- 訂單
- 設置
- 生日提醒
- 積分規則
- 客服消息設置
- 群發消息
- 會員/售后待辦
- 關鍵字回復
- 自定義菜單
- 會員卡號規則設置
- 會員卡ID設置
- 客服經理
- 小算盤設置
- 個人中心
- 員工我的待辦列表
- 跟進
- 會員動態
- 會員積分/余額
- 訂單記錄列表
- 個人中心詳情頁面
- 會員待辦列表
- 會員電子券
- 客戶平臺
- 會員聊天
- 我的顧問
- 客戶訂單
- 客戶中心
- 客戶電子券
- 我的動態
- 會員積分/余額
- 統計
- 會員統計
- 會員發展統計
- 銷售統計
- 待辦統計
- 電子券統計
- 會員等級變更統計
- 積分統計
- 余額統計
- 電子券核銷統計
- 權限管理
- 員工權限
- 電子券
- 訂單滿額
- 訂單電子券
- 商品組電子券
- 群發電子券
- 一對一投放
- 商品組
- 商品組商品
- 會員分配
- PC版相關
- 導出相關
- 開通流程頁面
- 合作商家
- 商家相關
- 引流券相關
- 合作商家
- 領取功能
- 打印設置
- 小算盤
- e學堂
- 獲取Openid