Перейти к основному содержанию
GET
/
v1
/
crm
/
metrics
/
general
/
detail
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/metrics/general/detail/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "date": "2023-12-25",
      "prediction": "<string>",
      "profit": "<string>",
      "inventory": {
        "id": 123,
        "name": "<string>",
        "car": {
          "id": 123,
          "type": "CAR",
          "brand": "<string>",
          "model": "<string>",
          "number": "<string>",
          "tech_passport": "<string>",
          "serial": "<string>",
          "vin": "<string>",
          "extra": "<unknown>"
        },
        "group": 123,
        "unique_id": "<string>",
        "category": 123,
        "image": "<string>",
        "extra": "<unknown>",
        "sublease_user": 123,
        "state": 123,
        "disabled": 0,
        "rental_point": 123
      },
      "inventory_group": {
        "id": 123,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "name": "<string>",
        "deleted": true,
        "category": 123,
        "unit_price": "<string>",
        "unit_count": "<string>",
        "unit_type": "litre",
        "unit_sum": "<string>",
        "image": "<string>",
        "unique_id": "<string>",
        "barcode": "<string>",
        "extra": "<unknown>",
        "filters": [
          "<string>"
        ],
        "points": [
          -1
        ],
        "published": true,
        "type": 0,
        "price": "<string>",
        "lifetime": -1
      },
      "service": {
        "id": 123,
        "tarifs": [
          {
            "id": 123,
            "created_at": "2023-11-07T05:31:56Z",
            "updated_at": "2023-11-07T05:31:56Z",
            "service": 123,
            "name": "<string>",
            "price": "<string>",
            "one_time_payment": true,
            "published": true,
            "tenant": 123,
            "duriation": 123
          }
        ],
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "disabled": 0,
        "name": "<string>",
        "type": 0,
        "unique_id": "<string>",
        "bonus": "<string>",
        "extra": "<unknown>",
        "slug": "<string>",
        "published": true,
        "price": "<string>",
        "image": "<string>",
        "deleted": true,
        "deleted_at": "2023-11-07T05:31:56Z",
        "tenant": 123,
        "category": 123,
        "discount": 123
      },
      "request_status": 123,
      "client_id": 123,
      "client_name": "<string>",
      "client_phone": "<string>",
      "client_avatar": "<string>",
      "category": 123,
      "request": 123,
      "request_delivery": 123,
      "workshop": 123,
      "sale": 123
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Параметры запроса

date
string<date>
date__gte
string<date>
date__lte
string<date>
ordering
string

Which field to use when ordering the results.

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

rental_point
number
type
enum<string>
  • request - Request
  • inventory - Inventory
  • service - Service
  • delivery - Delivery
  • penalty - Penalty
  • workshop - Workshop
  • sale - Sale
Доступные опции:
delivery,
inventory,
penalty,
request,
sale,
service,
workshop

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"