- Tigshop标准版
- 后台adminapi
- authority --- 权限组
- merchant ----商户
- common --- 公共方法组
- content --- 文章组
- decorate --- 装修组
- promotion --- 营销组
- coupon --- 优惠券管理
- points_exchange --- 积分商品管理
- product_promotion --- 优惠活动管理
- recharge_setting --- 余额充值
- seckill --- 限时秒杀
- bargain --- 砍一砍
- sign_in_setting --- 积分签到
- promotion --- 活动管理
- time_discount --- 限时折扣
- product_gift--- 活动赠品
- wechat_live --- 小程序直播
- groupon --- 拼团
- setting --- 配置组
- salesman --- 分销
- user --- 会员模块
- finance --- 财务组
- product --- 商品
- product_attributes --- 商品属性管理(待定)
- product_attributes_tpl --- 商品属性模板管理
- product_inventory_log --- 商品库存日志管理
- product_batch --- 商品批量处理管理
- product_services --- 商品服务
- e_card_group --- 电子卡券组
- e_card --- 电子卡券
- product_group ---商品分组
- shop_product_category ---店铺商品分类 (待定)
- price_inquiry --- 询价管理
- brand --- 品牌管理
- category --- 商品分类管理
- comment --- 商品评论管理
- product --- 商品管理
- panel --- 统计面板组
- lang --- 多语言
- login --- 登录组
- order---订单组
- msg --- 消息管理组
- 前台api
- search --- 搜索
- merchant --- 商户
- article --- 文章
- salesman --- 分销
- product --- 商品
- order --- 订单
- category --- 商品分类
- home --- 首页
- cart --- 购物车
- user --- 会员中心
- common --- 公共方法
- shop --- 店铺
- IM
- 安装
优惠券编辑
开发中
POST
/adminapi/promotion/coupon/update
请求参数
Body 参数application/json
object {0}
示例
{
"coupon_id": 63,
"send_range": 0,
"send_range_data": [],
"is_global": 0,
"is_show": 1,
"coupon_type": 1,
"is_new_user": 0,
"limit_user_rank": [],
"coupon_name": "惊吓大礼包",
"coupon_money": "10.00",
"coupon_discount": "10.0",
"coupon_desc": "懂的都懂",
"min_order_amount": "10.00",
"send_start_date": "2024-06-20 00:00:00",
"send_end_date": "2024-07-20 23:59:59",
"send_type": 0,
"use_day": 30,
"use_start_date": "2024-06-20 00:00:00",
"use_end_date": "2024-07-20 23:59:59",
"enabled_click_get": 0,
"is_delete": 0,
"limit_num": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/promotion/coupon/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"coupon_id": 63,
"send_range": 0,
"send_range_data": [],
"is_global": 0,
"is_show": 1,
"coupon_type": 1,
"is_new_user": 0,
"limit_user_rank": [],
"coupon_name": "惊吓大礼包",
"coupon_money": "10.00",
"coupon_discount": "10.0",
"coupon_desc": "懂的都懂",
"min_order_amount": "10.00",
"send_start_date": "2024-06-20 00:00:00",
"send_end_date": "2024-07-20 23:59:59",
"send_type": 0,
"use_day": 30,
"use_start_date": "2024-06-20 00:00:00",
"use_end_date": "2024-07-20 23:59:59",
"enabled_click_get": 0,
"is_delete": 0,
"limit_num": 0
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 0,
"msg": "ok",
"data": {
"errcode": 0,
"message": "优惠券更新成功"
}
}
🟠404失败