文档
测试

新用户下单,返优惠券

POST
http://ct.daoben.ltd/api/coupon/newUser

请求参数

参数名
类型
描述
必填
token
string
示例:a84d80c8-b811-4857-a7f6-2e91fd3172eb
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:success
必填
time
string
示例:1652595074
必填
data
array
数据列表
必填
id
int
示例:1
必填
coupon_id
int
示例:5
必填
send_type
int
示例:1
必填
stock
int
示例:1000
必填
grab
int
示例:0
必填
surplus
int
示例:0
必填
start_time
int
示例:1652522804
必填
end_time
int
示例:1656238004
必填
score
int
示例:0
必填
weigh
int
示例:1
必填
createtime
int
示例:1652522820
必填
updatetime
int
示例:1652594455
必填
coupon
object
数据字典
必填
id
int
示例:5
必填
name
string
示例:满减券测试
必填
type
int
示例:2
必填
enough
string
示例:10.00
必填
amount
string
示例:50.00
必填
expire_type
int
示例:1
必填
expire_day
int
示例:100
必填
begin_time
int
示例:1652511546
必填
end_time
int
示例:1652511546
必填
description
string
示例:<p>1</p>
必填
weigh
int
示例:5
必填
status
string
示例:normal
必填
createtime
int
示例:1652511563
必填
updatetime
int
示例:1652511563
必填