Blocked Drivers

Get current operator company’s blocked drivers

GET blocked drivers

Endpoint

GET /api/v1/blocked_drivers

Parameters

Name Description
by_name Search by driver name
by_company Search by company id
by_job_number Search by job number
from_date Search from date
to_date Search to date

Request

Route

GET /api/v1/blocked_drivers

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzMyIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTczNzU1MTU1MCwiZXhwIjoxNzQwMTQzNTUwLCJqdGkiOiJhNmFmMWJlMy0xZDQ5LTQ3NTItOWVhMy1kOTEzMGFjN2UzM2IifQ.LdlUobCWClcEo_GG4sSf53_oyBhMaxUVRso4rkEyxEk
Host: example.org
Cookie: 

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
per-page: 20
total: 3
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"eff5fe7f4534240bf0c784120c259587"
cache-control: max-age=0, private, must-revalidate
x-request-id: 544bf39d-d7f8-4709-8e0a-91add3ed8f0c
x-runtime: 0.028438
content-length: 671

Body

{
  "blocked_drivers": [
    {
      "id": 12,
      "blocked_at": "2025-01-22T13:12:30.018Z",
      "driver": {
        "id": 36,
        "first_name": "Winston",
        "last_name": "Cassin",
        "profile_id": null,
        "referral_code": "090581"
      },
      "globally_blocked": false,
      "reason": "Quisquam in minus fugit."
    },
    {
      "id": 11,
      "blocked_at": "2025-01-22T13:12:30.008Z",
      "driver": {
        "id": 35,
        "first_name": "Maryjane",
        "last_name": "Johnson",
        "profile_id": null,
        "referral_code": "885657"
      },
      "globally_blocked": false,
      "reason": "Qui distinctio qui maiores."
    },
    {
      "id": 10,
      "blocked_at": "2025-01-22T13:12:29.991Z",
      "driver": {
        "id": 34,
        "first_name": "Nida",
        "last_name": "Durgan",
        "profile_id": null,
        "referral_code": "533033"
      },
      "globally_blocked": false,
      "reason": "Aliquam enim non rem."
    }
  ]
}