Перейти к основному содержанию
GET
/
v1
/
crm
/
metrics
/
referral
/
history
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/metrics/referral/history/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "request": 123,
      "status": 0,
      "status_changed_at": "2023-11-07T05:31:56Z",
      "request_status": 123,
      "agent": 123,
      "amount": "<string>"
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

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

agent
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.

request__status
enum<integer>
  • 0 - Запрос
  • 1 - Забронировано
  • 2 - В аренде
  • 3 - Отменено
  • 4 - Завершено
  • 5 - Должник
Доступные опции:
0,
1,
2,
3,
4,
5
request__status__in
integer[]

Несколько значений могут быть разделены запятыми.

A search term.

start_at
string
обязательно
status
enum<integer>
  • 0 - paid
  • 1 - pending
Доступные опции:
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"