Skip to content
关注公众号,获取新课通知

新增优惠券


接口URL

http://demonuxtapi.dishait.cn/admin/s/coupon/save

请求方式

POST

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
tokeneyj...NjString用户token
schoolid11Integer网校id

请求Body参数

参数名示例值参数类型是否必填参数描述
typecourseString类型:course课程,column专栏
goods_id4Integer课程/专栏id
condition100Integer优惠券条件(满多少元)
price20.00Float优惠券价格
c_num100Integer限制数量
status1Integer状态:0禁用1启用
start_time2021-04-03 01:00:00DateTime优惠券开始时间
end_time2021-04-04 01:00:00DateTime优惠券结束时间

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"received_num": 0,
		"used_num": 0,
		"id": 2,
		"type": "course",
		"goods_id": 4,
		"condition": 100,
		"price": 20,
		"c_num": 100,
		"status": 1,
		"start_time": "2021-04-02T17:00:00.000Z",
		"end_time": "2021-04-03T17:00:00.000Z",
		"school_id": 11,
		"updated_time": "2021-03-25T16:06:53.649Z",
		"created_time": "2021-03-25T16:06:53.649Z"
	},
	"code": 20000
}