Перейти к основному содержанию
GET
/
v1
/
cars
/
penalties
cURL
curl --request GET \
  --url https://api.example.com/v1/cars/penalties/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "outer_id": 123,
      "protocol_number": "<string>",
      "violated_at": "2023-11-07T05:31:56Z",
      "car": {
        "id": 123,
        "outer_id": 0,
        "number": "<string>",
        "tech_passport": "<string>",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "published_at": "2023-11-07T05:31:56Z"
      },
      "driver": {
        "id": 123,
        "outer_id": 0,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "iin_number": "<string>",
        "doc_number": "<string>",
        "doc_issue_date": "2023-12-25",
        "first_name": "<string>",
        "last_name": "<string>",
        "middle_name": "<string>"
      },
      "company": {
        "id": 123,
        "outer_id": 0,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "bin_number": "<string>",
        "name": "<string>"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "inventory": "<string>",
      "request": "<string>",
      "client": "<string>",
      "description": "<string>",
      "department_name": "<string>",
      "punishment_main": "<string>",
      "amount": "<string>",
      "violation_address": "<string>",
      "violation_date": "2023-12-25",
      "violation_time": "<string>",
      "paid": true,
      "payment_date": "2023-11-07T05:31:56Z",
      "discount_expires_at": "2023-11-07T05:31:56Z",
      "payment_kno": "<string>",
      "payment_kbk": "<string>",
      "payment_knp": "<string>",
      "beneficiary_tax_office_name": "<string>",
      "beneficiary_tax_iban": "<string>",
      "beneficiary_tax_bin_number": "<string>",
      "pdf": "<string>",
      "photo_urls": [
        "<string>"
      ],
      "state": 123,
      "noted": true
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

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

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.

Ответ

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"