# 促銷接口
#### 一、團購管理
#### 1.新增、編輯團購
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_GroupBuy&met=addGroupBuy&typ=json
int:group_id#團購ID
*string:groupbuy_name#團購名稱
string:groupbuy_remark#團購副標題
*string:groupbuy_starttime#團購開始時間
*string:groupbuy_endtime#團購結束時間
*float:groupbuy_price#團購價格
*int:goods_id#商品ID
*int:common_id#商品公共表ID
*string:groupbuy_image#團購圖片
*string:groupbuy_image_rec#團購推薦位圖片
int:groupbuy_cat_id#團購類別編號
int:groupbuy_scat_id#團購類別編號
int:groupbuy_virtual_quantity#虛擬購買數量
int:groupbuy_upper_limit#購買上限
<<<
success
{"cmd_id":-140,"status":200,"msg":"添加成功!","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"failure","data":{}}
```
```
#### 2.新增、編輯虛擬團購
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_GroupBuy&met=addVrGroupBuy&typ=json
int:group_id#團購ID
*string:groupbuy_name#團購名稱
string:groupbuy_remark#團購副標題
*string:groupbuy_starttime#團購開始時間
*string:groupbuy_endtime#團購結束時間
*float:groupbuy_price#團購價格
*int:goods_id#商品ID
*int:common_id#商品公共表ID
*string:groupbuy_image#團購圖片
*string:groupbuy_image_rec#團購推薦位圖片
int:groupbuy_virtual_quantity#虛擬購買數量
int:groupbuy_upper_limit#購買上限
int:groupbuy_cat_id#團購類別編號
int:groupbuy_scat_id#團購類別編號
int:groupbuy_city_id#團購城市
int:groupbuy_area_id#團購地區
<<<
success
{"cmd_id":-140,"status":200,"msg":"添加成功!","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"失敗原因","data":{}}
```
```
#### 3.購買套餐
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_GroupBuy&met=addCombo&typ=json
*int:month#購買數量
<<<
success
{"cmd_id":-140,"status":200,"msg":"操作成功!","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"失敗原因","data":{}}
```
```
#### 4.平臺審核團購
```
<pre class="calibre14">```
post:/index.php?ctl=Promotion_GroupBuy&typ=json&met=editGroupBuy
*int:groupbuy_id#團購ID
int:groupbuy_state#團購狀態
int:groupbuy_recommend#是否推薦
<<<
success
{"cmd_id":-140,"data":{},"msg":"success","status":200}
<<<
error
{"cmd_id":-140,"status":250,"msg":"failure","data":{}}
```
```
#### 二、加價購
#### 1.添加活動
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_Increase&met=addIncrease&typ=json
*string:increase_name#活動名稱
*string:increase_start_time#開始時間
*string:increase_end_time#結束時間
<<<
success
{"cmd_id":-140,"status":200,"msg":"添加成功!","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"添加失敗!","data":{}}
```
```
#### 2.編輯活動
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_Increase&met=editIncrease&typ=json
*string:increase_name#活動名稱
row:join_act_goods_id#商品SKU
row:join_act_common_id#商品Common
row:rule_levle#活動規則
<<<
success
{"cmd_id":-140,"status":200,"msg":"success","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"failure","data":{}}
```
```
#### 3.刪除活動
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_Increase&met=removeIncreaseAct&typ=json
*int:increase_id#活動ID
<<<
success
{cmd_id: -140, status: 200, msg: "刪除成功!", data: {}}
<<<
error
{cmd_id: -140, status: 250, msg: "刪除失敗!", data: {}}
```
```
#### 4.購買套餐
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_Increase&met=addCombo&typ=json
*int:month#購買數量
<<<
success
{"cmd_id":-140,"status":200,"msg":"操作成功!","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"操作失敗","data":{}}
```
```
#### 3.限時折扣
#### 1.新增活動
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_Discount&met=addDiscount&typ=json
*string:discount_name#活動名稱
string:discount_title#活動標題
string:discount_explain#活動描述
*string:discount_start_time#活動開始時間
*string:discount_end_time#活動結束時間
*int:discount_end_time#購買下線
<<<
success
{"cmd_id":-140,"status":200,"msg":"添加成功!","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"添加失敗!","data":{}}
```
```
#### 2.編輯活動
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_Discount&met=editDiscount&typ=json
*string:discount_name#活動名稱
string:discount_title#活動標題
string:discount_explain#活動描述
*int:discount_end_time#購買下線
<<<
success
{"cmd_id":-140,"status":200,"msg":"編輯成功!","data":{}}
<<<
error
{"cmd_id":-140,"status":250,"msg":"編輯失敗!","data":{}}
```
```
#### 3.刪除活動
```
<pre class="calibre14">```
post:/index.php?ctl=Seller_Promotion_Discount&met=removeDiscountAct&typ=json
*int:increase_id#活動ID
<<<
success
{cmd_id: -140, status: 200, msg: "刪除成功!", data: {discount_id: discount_id}}
<<<
error
{cmd_id: -140, status: 250, msg: "刪除失敗!", data: {}}
```
```
#### 4.添加活動商品
```
<pre class="calibre15">```
get:/url
*string:id=默認值#說明文字
name#說明文字
<<<
success
<<<
error
```
```
- 序言
- 系統要求
- 版本更新日志
- 遠豐商城技術對接說明
- 開發指導
- 框架內容
- 基礎
- 開發規范
- 目錄結構
- 架構
- 架構總覽
- 數據庫
- 數據庫連接
- 基本使用
- 緩存
- 配置
- 路由
- 數據字典
- ucenter
- shop
- paycenter
- ucenter_admin
- shop_admin
- paycenter_admin
- 通訊內容
- 商家中心
- 頂部導航欄
- 店鋪信息欄
- 店鋪及商品提示欄
- 交易提示欄
- 銷售情況統計欄
- 單品銷量排行欄
- 店鋪運營推廣欄
- 平臺聯系方式欄
- 訂單物流
- 商品
- 商品列表
- 商品詳情
- 商品發布與編輯
- 分銷商品
- 關聯版式
- 商品規格
- 圖片空間
- 淘寶導入
- 訂單流程
- 交易訂單
- 訂單退款/退貨
- 促銷
- 團購管理
- 加價購
- 限時折扣
- 滿即送
- 代金券管理
- 分銷
- 店鋪
- 店鋪設置
- 自銷產品供應商
- 實體店鋪
- 品牌申請
- 店鋪信息
- 消費者保障服務
- 門店賬號
- 分銷商--產品供應商
- 分銷明細
- 批發市場
- 售后服務
- 咨詢管理
- 投訴管理
- 退款管理
- 退貨管理
- 云方案架構
- 負載集群
- 云存儲
- 接口
- Api接口說明
- 品牌
- 商品規格
- 商品類型
- 商品分類
- 商品
- 訂單
- 商品/店鋪收藏
- 足跡
- 退款及退貨
- 商家店鋪
- 會員
- 入駐協議
- 訂單接口
- 商品接口
- 訂單物流接口
- 商家中心接口
- 促銷接口
- 快遞鳥物流接口
- 代金券接口
- 首頁版塊
- 團購
- 平臺紅包
- 限時折扣接口
- 拼團接口
- wap首頁模板
- 雜項
- 遠程上傳圖片
- JS
- 銀聯支付
- 多語言
- 商品評分
- 圖片加載
- 買家申請退款退貨
- 商家退款退貨
- 平臺退款退貨
- 添加發票
- 提交訂單
- 確認訂單
- 運費銷售區域
- 獲取會員地址
- 充值
- 導出XLS
- 商城系統集成
- 多語言實現
- 三級分銷推廣鏈接發展推廣員
- app.ini.php
- 去分銷
- 版本更新
- 物流支持
- 運營人員建議
- 業務邏輯
- 統計結算
- 客服消息
- 賬號
- 三級分銷
- IM
- 配置
- 平臺帳號
- 活動數據表說明