Перейти к основному содержанию
GET
/
v1
/
crm
/
metrics
/
general
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/metrics/general/
{
  "count": 123,
  "results": [
    {
      "date": "2023-12-25",
      "request_count": 123,
      "service_count": 123,
      "delivery_count": 123,
      "penalty_count": 123,
      "workshop_count": 123,
      "sale_count": 123,
      "request_amount": "<string>",
      "service_amount": "<string>",
      "delivery_amount": "<string>",
      "penalty_amount": "<string>",
      "workshop_amount": "<string>",
      "sale_amount": "<string>",
      "prediction": "<string>",
      "profit": "<string>"
    }
  ],
  "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"