Перейти к основному содержанию
GET
/
v1
/
crm
/
metrics
/
deposits
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/metrics/deposits/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "rental_point": 123,
      "client": {
        "id": 123,
        "name": "<string>",
        "agreement_id": "<string>",
        "phone": "<string>",
        "type": 0,
        "avatar": "<string>",
        "signed": true,
        "sign_date": "2023-12-25",
        "sign_expires": "2023-12-25",
        "email": "jsmith@example.com",
        "legal_type": 0,
        "extra": "<unknown>"
      },
      "transaction_amount": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "deposit": "<string>",
      "request": 123,
      "created_by": 123,
      "type": 0,
      "status": 0,
      "amount": "<string>",
      "returned_at": "2023-11-07T05:31:56Z",
      "tenant": 123,
      "payment_type": 123
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

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

created_at__date__gte
string<date>
created_at__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.

request__rental_point
integer
returned_at__date__gte
string<date>
returned_at__date__lte
string<date>

A search term.

status
enum<integer>
  • 0 - DEFAULT
  • 1 - RECEIVED
  • 2 - RETURNED
Доступные опции:
0,
1,
2
type
enum<integer>
  • 0 - STRING
  • 1 - AMOUNT
Доступные опции:
0,
1

Ответ

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"