---
title: "GET /v1/crm/metrics/discounts/history/"
method: GET
path: "/v1/crm/metrics/discounts/history/"
tags: ["v1"]
---

# GET /v1/crm/metrics/discounts/history/

`GET /v1/crm/metrics/discounts/history/`

## Query parameters

- `created_at__date__gte` string, date
- `created_at__date__lte` string, date
- `discount` integer
- `discount__discount_type` 0 | 1
- `discount__in` integer[]
- `discount__type` 0 | 1 | 2
- `ordering` string
- `page` integer
- `pageSize` integer
- `request__client` integer
- `request__client__in` integer[]
- `request__payment_status` 0 | 1 | 2
- `request__payment_status__in` integer[]
- `request__rent_end__date__gte` string, date
- `request__rent_end__date__lte` string, date
- `request__rent_start__date__gte` string, date
- `request__rent_start__date__lte` string, date
- `request__status` 0 | 1 | 2 | 3 | 4 | 5
- `request__status__in` integer[]
- `search` string
- `type` 0 | 1

## Response `200`

- PaginatedMetricsOrderDiscountHistoryList
  - `count` integer, required
  - `next` string, uri, nullable
  - `previous` string, uri, nullable
  - `results` MetricsOrderDiscountHistory[], required
    - `id` integer, required
    - `request` BaseOrderRequest, required
      - `id` integer, required
      - `status` 0 | 1 | 2 | 3 | 4 | 5 — * `0` - Запрос * `1` - Забронировано * `2` - В аренде * `3` - Отменено * `4` - Завершено * `5` - Должник
      - `rent_start` string, date-time, required
      - `rent_fact_start` string, date-time, nullable
      - `rent_end` string, date-time, required
      - `rent_fact_end` string, date-time, nullable
      - `price` string, decimal
      - `discount_amount` string, decimal
      - `price_discount` string, decimal
      - `price_inventory` string, decimal
      - `price_service` string, decimal
      - `discount_inventory_amount` string, decimal
      - `discount_service_amount` string, decimal
      - `payment_status` 0 | 1 | 2 — * `0` - Ожидается оплата * `1` - Оплата произведена * `2` - Частичная оплата
      - `paid_amount` string, decimal
      - `time_exceed` boolean
      - `penalty_amount` string, decimal
      - `status_color` string, required
      - `rental_point` integer, nullable
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
      - `deleted` boolean
      - `plus_id` integer, nullable
      - `extra` unknown
    - `client` BaseClient, required
      - `id` integer, required
      - `name` string, required
      - `type` 0 | 1 — * `0` - Физ. лицо * `1` - Юр. лицо
      - `avatar` string, uri, nullable
      - `agreement_id` string, nullable, required
      - `signed` boolean
      - `sign_date` string, date, nullable
      - `sign_expires` string, date, nullable
      - `phone` string, required
      - `email` string, email, nullable
      - `legal_type` union
        - 0 | 1 | 2 | 3 — * `0` - ИП * `1` - ТОО * `2` - АО * `3` - ПК
        - unknown
      - `extra` unknown
    - `inventory` BaseInventory, required
      - `id` integer, required
      - `group` integer, nullable
      - `name` string, required
      - `unique_id` string, nullable
      - `category` integer, nullable
      - `image` string, uri, nullable
      - `extra` unknown
      - `sublease_user` integer, nullable
      - `state` integer, nullable
      - `disabled` union
        - 0 | 1 | 2 — * `0` - delete * `1` - archive * `2` - withdraw
        - unknown
      - `rental_point` integer, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `type` 0 | 1 — * `0` - DISCOUNT * `1` - MANUAL
    - `discount_amount` string, decimal
    - `start_at` string, date, nullable
    - `end_at` string, date, nullable
    - `scheduled` boolean
    - `scheduled_amount` string, decimal
    - `destination` 0 | 1 | 2 | 3 — * `0` - REQUEST * `1` - INVENTORY * `2` - SERVICE * `3` - DELIVERY
    - `reason` string, nullable
    - `tenant` integer
    - `request_inventory` integer, nullable
    - `request_service` integer, nullable
    - `discount` integer, nullable
    - `created_by` integer, nullable

---

[API](https://skmtc.net/yume-cloud/apis/yume-api.md) · [All operations](https://skmtc.net/yume-cloud/apis/yume-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yume-cloud/yume-api/revisions/90700f5abfcc/schema)
