优惠券详情
GET
/adminapi/marketing.coupon/detail
请求参数
Query 参数
id
integer
优惠券ID
Header 参数
token
string
必需
默认值:
{{'38a327e6732714e2a48e0b5d3038b2cc'}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/adminapi/marketing.coupon/detail?id=' \
--header 'token;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
id
integer
优惠券ID
sn
string
优惠券编号
name
string
优惠券名称
money
string
优惠券面额
condition_type
integer
必需
condition_money
string
必需
send_total_type
integer
必需
send_total
integer
必需
use_time_type
integer
必需
use_time_start
string
必需
use_time_end
string
必需
use_time
integer
必需
get_type
integer
必需
get_num_type
integer
必需
get_num
integer
必需
use_goods_type
integer
必需
use_goods_ids
string
使用商品ID
status
integer
必需
goods
array [object {5}]
商品信息
示例
{
"code": 1,
"show": 0,
"msg": "获取成功",
"data": {
"id": 3,
"sn": "DGBT27984653",
"name": "全场优惠10元券",
"money": "10.00",
"condition_type": 1,
"condition_money": "0.00",
"send_total_type": 1,
"send_total": 0,
"use_time_type": 2,
"use_time_start": "",
"use_time_end": "",
"use_time": 7,
"get_type": 1,
"get_num_type": 1,
"get_num": 0,
"use_goods_type": 2,
"use_goods_ids": "32",
"status": 1,
"goods": [
{
"id": 32,
"code": "11313",
"name": "保障商品",
"image": "http://www.sqtg.localhost/uploads/images/20230217/202302171516410610d3766.jpg",
"sell_price": "21.00"
}
]
}
}
修改于 2023-02-20 07:42:38