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

上架or下架优惠券


接口URL

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

请求方式

POST

Content-Type

application/x-www-form-urlencoded

请求Header参数

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

请求Body参数

参数名示例值参数类型是否必填参数描述
id2Integer优惠券id
status1Integer状态:0禁用1启用

成功响应示例

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