Перейти к основному содержанию
GET
/
v1
/
crm
/
metrics
/
users
/
sublease
/
{user_id}
/
history
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/metrics/users/sublease/{user_id}/history/
{
  "count": 123,
  "results": [
    {
      "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "id": 123,
      "inventory": {
        "id": 123,
        "name": "<string>",
        "group": 123,
        "unique_id": "<string>",
        "category": 123,
        "image": "<string>",
        "extra": "<unknown>",
        "sublease_user": 123,
        "state": 123,
        "disabled": 0,
        "rental_point": 123
      },
      "request_id": 123,
      "request_status": 123,
      "request_rental_point": 123,
      "start_at": "2023-11-07T05:31:56Z",
      "end_at": "2023-11-07T05:31:56Z",
      "amount": "<string>",
      "amount_predicted": "<string>",
      "day": 123
    }
  ],
  "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"