Перейти к основному содержанию
GET
/
v1
/
crm
/
metrics
/
deliveries
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/metrics/deliveries/
{
  "count": 123,
  "results": [
    {
      "pending": 123,
      "in_progress": 123,
      "done": 123,
      "cancel": 123,
      "delivery": 123,
      "pick_up": 123,
      "pending_price": "<string>",
      "in_progress_price": "<string>",
      "done_price": "<string>",
      "cancel_price": "<string>",
      "delivery_price": "<string>",
      "pick_up_price": "<string>",
      "worker": 123,
      "count": 123,
      "price": "<string>",
      "last_delivered_at": "2023-11-07T05:31:56Z"
    }
  ],
  "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.

pickup_date__date__gte
string<date>
pickup_date__date__lte
string<date>

A search term.

status
enum<integer>
  • 0 - PENDING
  • 1 - IN_PROGRESS
  • 2 - DONE
  • 3 - CANCEL
Доступные опции:
0,
1,
2,
3
type
enum<integer>
  • 0 - DELIVERY
  • 1 - PICK_UP
Доступные опции:
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"