---
metadata:
  - name: generator
    content: Diplodoc Platform v5.57.3
alternate:
  - https://yandex.ru/dev/kit/ru/openapi/Podarki/GetGifts.md
  - href: https://yandex.ru/dev/kit/ru/openapi/Podarki/GetGifts.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.ru/dev/kit/ru/llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/kit/ru/llms.txt

<div class="openapi">

# Получение списка подарков

<!-- markdownlint-disable-file -->

Возвращает список подарков магазина с пагинацией.

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://api.kit.yandex.net/v1/gifts
```

</div>

</div>

</div>

### Query parameters

#|
|| **Name** | **Description** ||
||

_page_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Номер страницы.

_Default:_{.json-schema-reset .json-schema-value} `1`

_Min value:_{.json-schema-reset .json-schema-assertion} `1`
{.table-cell}
||
||

_per_page_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Количество элементов на странице.

_Default:_{.json-schema-reset .json-schema-value} `25`

_Min value:_{.json-schema-reset .json-schema-assertion} `1`

_Max value:_{.json-schema-reset .json-schema-assertion} `100`
{.table-cell}
||
||

_status_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [GiftStatus](#entity-GiftStatus)

Фильтр по статусу подарка.

Статус подарка:
- `ACTIVE` — активный подарок (доступен покупателям).
- `INACTIVE` — неактивный подарок.

_Enum:_{.json-schema-reset .json-schema-value} `ACTIVE`, `INACTIVE`
{.table-cell}
||
|#{.json-schema-properties}

<div class="openapi-entity">

### GiftStatus {#entity-GiftStatus}

Статус подарка:
- `ACTIVE` — активный подарок (доступен покупателям).
- `INACTIVE` — неактивный подарок.

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `ACTIVE`, `INACTIVE`

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

Список подарков.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "gifts": [
    {
      "id": "019b21d9-c5d9-777d-80bd-d67c664bc6d9",
      "title": "Подарок при заказе от 1000 рублей",
      "min_cart_total": "1000.00",
      "status": "ACTIVE",
      "default_sort": "POPULARITY",
      "created_at": "2020-01-01T00:00:00Z",
      "updated_at": "2020-01-01T00:00:00Z"
    }
  ],
  "total_count": 100
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_gifts_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [Gift](#entity-Gift)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "id": "019b21d9-c5d9-777d-80bd-d67c664bc6d9",
    "title": "Подарок при заказе от 1000 рублей",
    "min_cart_total": "1000.00",
    "status": "ACTIVE",
    "default_sort": "POPULARITY",
    "created_at": "2020-01-01T00:00:00Z",
    "updated_at": "2020-01-01T00:00:00Z"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_total_count_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Общее количество подарков.
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### GiftID {#entity-GiftID}

Идентификатор подарка.

**Type**: string&lt;uuid&gt;

_Example:_{.json-schema-reset .json-schema-example} `019b21d9-c5d9-777d-80bd-d67c664bc6d9`

</div>

<div class="openapi-entity">

### GiftDefaultSort {#entity-GiftDefaultSort}

Сортировка товаров подарка по умолчанию:
- `POPULARITY` — по популярности.
- `CHEAPEST` — сначала дешевые.
- `EXPENSIVE` — сначала дорогие.
- `NEWEST` — сначала новые.
- `OLDEST` — сначала старые.

**Type**: string

_Default:_{.json-schema-reset .json-schema-value} `POPULARITY`

_Enum:_{.json-schema-reset .json-schema-value} `POPULARITY`, `CHEAPEST`, `EXPENSIVE`, `NEWEST`, `OLDEST`

</div>

<div class="openapi-entity">

### Gift {#entity-Gift}

Подарок за покупку.

#|
|| **Name** | **Description** ||
||

_created_at_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Дата создания подарка.

_Example:_{.json-schema-reset .json-schema-example} `2020-01-01T00:00:00Z`
{.table-cell}
||
||

_default_sort_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [GiftDefaultSort](#entity-GiftDefaultSort)

Сортировка товаров подарка по умолчанию:
- `POPULARITY` — по популярности.
- `CHEAPEST` — сначала дешевые.
- `EXPENSIVE` — сначала дорогие.
- `NEWEST` — сначала новые.
- `OLDEST` — сначала старые.

_Default:_{.json-schema-reset .json-schema-value} `POPULARITY`

_Enum:_{.json-schema-reset .json-schema-value} `POPULARITY`, `CHEAPEST`, `EXPENSIVE`, `NEWEST`, `OLDEST`
{.table-cell}
||
||

_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [GiftID](#entity-GiftID)

Идентификатор подарка.

_Example:_{.json-schema-reset .json-schema-example} `019b21d9-c5d9-777d-80bd-d67c664bc6d9`
{.table-cell}
||
||

_min_cart_total_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;decimal&gt;

Минимальная сумма корзины для получения подарка.

_Example:_{.json-schema-reset .json-schema-example} `1000.00`
{.table-cell}
||
||

_status_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [GiftStatus](#entity-GiftStatus)

Статус подарка:
- `ACTIVE` — активный подарок (доступен покупателям).
- `INACTIVE` — неактивный подарок.

_Enum:_{.json-schema-reset .json-schema-value} `ACTIVE`, `INACTIVE`
{.table-cell}
||
||

_title_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Название подарка.

_Example:_{.json-schema-reset .json-schema-example} `Подарок при заказе от 1000 рублей`
{.table-cell}
||
||

_updated_at_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Дата последнего обновления подарка.

_Example:_{.json-schema-reset .json-schema-example} `2020-01-01T00:00:00Z`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": "019b21d9-c5d9-777d-80bd-d67c664bc6d9",
  "title": "Подарок при заказе от 1000 рублей",
  "min_cart_total": "1000.00",
  "status": "ACTIVE",
  "default_sort": "POPULARITY",
  "created_at": "2020-01-01T00:00:00Z",
  "updated_at": "2020-01-01T00:00:00Z"
}
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

Некорректный запрос.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input",
  "trace_id": "00000000000000000000000000000000"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `VALIDATION_ERROR`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `Invalid input`
{.table-cell}
||
||

_trace_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор запроса для отладки.

_Example:_{.json-schema-reset .json-schema-example} `00000000000000000000000000000000`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__401">

## 401 Unauthorized

Не авторизован.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input",
  "trace_id": "00000000000000000000000000000000"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `VALIDATION_ERROR`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `Invalid input`
{.table-cell}
||
||

_trace_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор запроса для отладки.

_Example:_{.json-schema-reset .json-schema-example} `00000000000000000000000000000000`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__500">

## 500 Internal Server Error

Внутренняя ошибка сервера.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input",
  "trace_id": "00000000000000000000000000000000"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `VALIDATION_ERROR`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `Invalid input`
{.table-cell}
||
||

_trace_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор запроса для отладки.

_Example:_{.json-schema-reset .json-schema-example} `00000000000000000000000000000000`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.