ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 促销接口 #### 一、团购管理 #### 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 ``` ```