- Tigshop标准版
- 后台adminapi
- authority --- 权限组
- merchant ----商户
- common --- 公共方法组
- content --- 文章组
- decorate --- 装修组
- promotion --- 营销组
- 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
/api/order/check/update_coupon
请求参数
Body 参数application/json
object {0}
示例
{
"address_id": 96,
"shipping_type": [
{
"type_id": 15,
"shop_id": 161,
"type_name": "普通快递"
}
],
"pay_type_id": 1,
"use_point": 0,
"use_balance": 0,
"use_coupon_ids": [],
"select_user_coupon_ids": [],
"buyer_note": "",
"invoice_data": {},
"flow_type": 1,
"use_default_coupon_ids": 1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/order/check/update_coupon' \
--header 'Content-Type: application/json' \
--data-raw '{
"address_id": 96,
"shipping_type": [
{
"type_id": 15,
"shop_id": 161,
"type_name": "普通快递"
}
],
"pay_type_id": 1,
"use_point": 0,
"use_balance": 0,
"use_coupon_ids": [],
"select_user_coupon_ids": [],
"buyer_note": "",
"invoice_data": {},
"flow_type": 1,
"use_default_coupon_ids": 1
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 0,
"msg": "ok",
"data": {
"coupon_list": {
"enable_coupons": [
{
"id": 67,
"coupon_name": "独一无二店铺专享券",
"coupon_type": 1,
"min_order_amount": "150.00",
"coupon_desc": "独一无二的店铺专享券",
"coupon_money": "15.00",
"is_global": 0,
"coupon_discount": "10.0",
"shop_id": 161,
"end_date": "2025-11-22 09:18:44",
"coupon_id": 67,
"user_coupon_id": 336
}
],
"disable_coupons": []
},
"use_coupon_ids": [
67
],
"select_user_coupon_ids": [],
"cart_list": [
{
"shop_id": 161,
"shop_title": "15507511400-独一无二的store",
"carts": [
{
"cart_id": 1520,
"user_id": 1,
"product_id": 930,
"product_sn": "SN00009301",
"pic_thumb": "img/upload/202411/1730873568ZcARK85q0c7pxB866f.jpg?x-oss-process=image/resize,m_pad,h_200,h_200",
"market_price": "999.00",
"original_price": "169.00",
"quantity": 1,
"sku_id": 0,
"sku_data": [],
"product_type": 1,
"is_checked": true,
"shop_id": 161,
"type": 1,
"update_time": 1733122096,
"salesman_id": 0,
"product_weight": "0.000",
"shipping_tpl_id": 120,
"free_shipping": 0,
"product_status": 1,
"product_name": "法式宫廷风蚊帐1",
"product_price": "699.00",
"category_id": 456,
"brand_id": 0,
"product_stock": 101,
"shop": {
"status_text": "",
"shop_id": 161,
"shop_title": "15507511400-独一无二的store",
"shop_logo": "https://oss.tigshop.com/img/pc/202411/1730859057Ecxq4UAeFTcCp5L03P.png"
},
"sku": null,
"price": 154,
"stock": 101,
"has_sku": false,
"subtotal": "154.00",
"origin_price": 169,
"is_disabled": false,
"activity_info": [
{
"promotion_id": 177,
"promotion_name": "独一无二店铺商品秒杀活动",
"start_time": 1730957400,
"end_time": 1733587199,
"type": 1,
"shop_id": 161,
"relation_id": 76,
"range": 3,
"range_data": [
930
],
"sku_ids": [],
"is_available": 1,
"is_delete": 0,
"data": {
"seckill_id": 76,
"seckill_name": "独一无二店铺商品秒杀活动",
"seckill_start_time": "2024-11-07 13:30:00",
"seckill_end_time": "2024-12-07 23:59:59",
"seckill_limit_num": 0,
"product_id": 930,
"shop_id": 161
}
}
],
"is_seckill": 1
}
],
"used_promotions": {
"176": {
"promotion_desc": "满150元减15",
"coupon_id": 67,
"coupon_name": "独一无二店铺专享券",
"coupon_money": "15.00",
"coupon_discount": "10.0",
"coupon_desc": "独一无二的店铺专享券",
"coupon_type": 1,
"send_range": 0,
"send_range_data": [],
"min_order_amount": "150.00",
"send_start_date": "",
"send_end_date": "",
"send_type": 0,
"use_day": 365,
"use_start_date": "",
"use_end_date": "",
"is_show": 1,
"is_global": 0,
"is_new_user": 0,
"enabled_click_get": 0,
"limit_user_rank": [],
"shop_id": 161,
"is_delete": 0,
"limit_num": 0,
"delay_day": 0,
"send_num": 1000,
"max_order_amount": "0.00",
"coupon_unit": 1,
"reduce_type": 1,
"add_time": "",
"is_receive": 1,
"amount": "15.00",
"promotion_id": 176,
"type": 2
},
"177": {
"seckill_id": 76,
"seckill_name": "独一无二店铺商品秒杀活动",
"seckill_start_time": "2024-11-07 13:30:00",
"seckill_end_time": "2024-12-07 23:59:59",
"seckill_limit_num": 0,
"product_id": 930,
"shop_id": 161,
"amount": 0,
"promotion_id": 177,
"type": 1
}
},
"enableUsePromotion": {
"176": {
"promotion_desc": "满150元减15",
"coupon_id": 67,
"coupon_name": "独一无二店铺专享券",
"coupon_money": "15.00",
"coupon_discount": "10.0",
"coupon_desc": "独一无二的店铺专享券",
"coupon_type": 1,
"send_range": 0,
"send_range_data": [],
"min_order_amount": "150.00",
"send_start_date": "",
"send_end_date": "",
"send_type": 0,
"use_day": 365,
"use_start_date": "",
"use_end_date": "",
"is_show": 1,
"is_global": 0,
"is_new_user": 0,
"enabled_click_get": 0,
"limit_user_rank": [],
"shop_id": 161,
"is_delete": 0,
"limit_num": 0,
"delay_day": 0,
"send_num": 1000,
"max_order_amount": "0.00",
"coupon_unit": 1,
"reduce_type": 1,
"add_time": "",
"is_receive": 1,
"amount": "15.00"
}
},
"gift": [],
"total": {
"discount_coupon_amount": 15,
"discount_seckill_amount": 0,
"discount_time_discount_amount": 0,
"discount_product_promotion_amount": 0,
"discount_discount_amount": 0,
"discounts": 0,
"coupon_ids": [
67
]
}
}
],
"total": {
"product_amount": 169,
"checked_count": 1,
"discounts": 15,
"discount_after": 154,
"total_count": 1,
"discount_coupon_amount": 15,
"discount_discount_amount": 0,
"discount_seckill_amount": 0,
"discount_product_promotion_amount": 0,
"discount_time_discount_amount": 0,
"paid_amount": 0,
"coupon_amount": 15,
"service_fee": 0,
"discount_amount": 0,
"exchange_points": 0,
"points_amount": 0,
"shipping_fee": 10,
"store_shipping_fee": {
"161": 10
},
"total_amount": 164,
"balance": 0,
"unpaid_amount": "164.00"
},
"errcode": 0,
"message": ""
}
}
🟠404失败