**版本：202201**

# 折扣 Flashsale 列表

**GET** `/openapi/2022-01/discount_flashsales`

## 请求

**Query参数**

- `limit` int32

  Limit per page
- `page` int32

  Page number
- `need_detail_url` boolean

  details url return in responses

## 响应

**200 | 400**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `page` integer

  **默认值：** `0`

  **示例：** `1`
- `limit` integer

  **默认值：** `0`

  **示例：** `20`
- `total` integer

  **默认值：** `0`

  **示例：** `1`
- `data` object[]

  *   Array [

  - `id` string

    **示例：** `14f759fe-cb07-4778-8448-e1ba4b686439`
  - `title` string

    **示例：** `tzt-限时促销-刺激客户下单`
  - `discount_type` string

    **示例：** `percentage`
  - `once_per_customer` integer

    **默认值：** `0`

    **示例：** `0`
  - `starts_at` integer

    **默认值：** `0`

    **示例：** `1682651959`
  - `ends_at` integer

    **默认值：** `0`

    **示例：** `-1`
  - `status` integer

    **默认值：** `0`

    **示例：** `1`
  - `sort` string

    **示例：** `{"by":"title","direction":"asc"}`
  - `allocation_method` string

    **示例：** `none`
  - `allow_oversold` string

    **示例：** `uncheck`
  - `progress` string

    **示例：** `ongoing`
  - `product_num` integer

    **默认值：** `0`

    **示例：** `410`
  - `detail_url` string

    **示例：** `tzt.myshoplaza.com/promotions/flashsale/14f759fe-cb07-4778-8448-e1ba4b686439`
  *   ]

```json
{
  "page": 1,
  "limit": 20,
  "total": 1,
  "data": [
    {
      "id": "14f759fe-cb07-4778-8448-e1ba4b686439",
      "title": "tzt-限时促销-刺激客户下单",
      "discount_type": "percentage",
      "once_per_customer": 0,
      "starts_at": 1682651959,
      "ends_at": -1,
      "status": 1,
      "sort": "{\"by\":\"title\",\"direction\":\"asc\"}",
      "allocation_method": "none",
      "allow_oversold": "uncheck",
      "progress": "ongoing",
      "product_num": 410,
      "detail_url": "tzt.myshoplaza.com/promotions/flashsale/14f759fe-cb07-4778-8448-e1ba4b686439"
    }
  ]
}
```

```json
{
  "page": 1,
  "limit": 20,
  "total": 1,
  "data": [
    {
      "id": "14f759fe-cb07-4778-8448-e1ba4b686439",
      "title": "tzt-限时促销-刺激客户下单",
      "discount_type": "percentage",
      "once_per_customer": 0,
      "starts_at": 1682651959,
      "ends_at": -1,
      "status": 1,
      "sort": "{\"by\":\"title\",\"direction\":\"asc\"}",
      "allocation_method": "none",
      "allow_oversold": "uncheck",
      "progress": "ongoing",
      "product_num": 410,
      "detail_url": "tzt.myshoplaza.com/promotions/flashsale/14f759fe-cb07-4778-8448-e1ba4b686439"
    }
  ]
}
```

400

**application/json**

无 Schema
