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

优惠券列表


接口功能

优惠券列表

URL

http://ceshi3.dishait.cn/api/coupon/:page

支持格式

JSON

HTTP请求方式

GET

header头
参数必选类型说明
tokentrueStringtoken
请求参数
参数必选类型说明
pagetrueint分页
接口示例

http://ceshi3.dishait.cn/api/coupon/1

json5
{
  "msg": "ok",
  "data": [
    {
      "id": 3,
      "name": "...",
      "type": 0,
      "value": "20",
      "total": 100,
      "used": 1,
      "min_price": "100.00",
      "start_time": 1568478825,
      "end_time": 1578745662,
      "status": 1,
      "create_time": "2019-09-16 20:06:27",
      "update_time": "2020-01-11 20:27:42",
      "order": 50,
      "desc": "备注1",
      "coupon_user": [
        {
          "id": 5,
          "coupon_id": 3,
          "user_id": 3,
          "create_time": "2019-09-16 20:07:42",
          "update_time": "2019-09-16 20:14:12",
          "used": 0
        }
      ]
    }
    // ...
  ]
}