**Version: 202201**

# Discount Flashsale List

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

## Request

**Query Parameters**

- `limit` int32

  Limit per page
- `page` int32

  Page number
- `need_detail_url` boolean

  details url return in responses

## Responses

**200 | 400**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `page` integer

  **Default value:** `0`

  **Example:** `1`
- `limit` integer

  **Default value:** `0`

  **Example:** `20`
- `total` integer

  **Default value:** `0`

  **Example:** `1`
- `data` object[]

  *   Array [

  - `id` string

    **Example:** `14f759fe-cb07-4778-8448-e1ba4b686439`
  - `title` string

    **Example:** `tzt-限时促销-刺激客户下单`
  - `discount_type` string

    **Example:** `percentage`
  - `once_per_customer` integer

    **Default value:** `0`

    **Example:** `0`
  - `starts_at` integer

    **Default value:** `0`

    **Example:** `1682651959`
  - `ends_at` integer

    **Default value:** `0`

    **Example:** `-1`
  - `status` integer

    **Default value:** `0`

    **Example:** `1`
  - `sort` string

    **Example:** `{"by":"title","direction":"asc"}`
  - `allocation_method` string

    **Example:** `none`
  - `allow_oversold` string

    **Example:** `uncheck`
  - `progress` string

    **Example:** `ongoing`
  - `product_num` integer

    **Default value:** `0`

    **Example:** `410`
  - `detail_url` string

    **Example:** `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**

No schema
