Перейти к основному содержанию
GET
/
v1
/
crm
/
metrics
/
users
/
sublease
/
{user_id}
/
inventories
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/metrics/users/sublease/{user_id}/inventories/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "name": "<string>",
      "earning": "<string>",
      "pending": "<string>",
      "owner_earning": "<string>",
      "owner_pending": "<string>",
      "company_earning": "<string>",
      "company_pending": "<string>",
      "unique_id": "<string>",
      "category": 123,
      "group": 123,
      "sublease_percent": "<string>",
      "buy_price": "<string>",
      "buy_date": "2023-12-25"
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Параметры пути

user_id
integer
обязательно

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

end_at
string
обязательно
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.

A search term.

start_at
string
обязательно

Ответ

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"