Get all Drivers attached to a given Contract

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

id

integer

required

The id of the contract

api-version

integer

required

Target API version

``200 Success

array of objects

object

id

integer

Additional Driver ID

email

string

Email

first_name

string

First name

last_name

string

Last name

license_number

string

The drivers license number

license_subregion

string

The subregion of the drivers license

license_expires_on

string

The expiration date of the drivers license formatted like YYYY-MM-DD

born_on

string

The date of birth formatted like YYYY-MM-DD

country

string

The country of the drivers license

phone_number

string

The phone number unformatted

signature

boolean

Has a signature image by signing their agreement

links

object

links object

``401 Unauthorized

``403 Forbidden

``404 Not found

``406 Not Acceptable


xxxxxxxxxx

curl --request GET \

--url https://api.dealerware.com/admin/contracts/id/drivers \

--header 'accept: application/json'

xxxxxxxxxx

[\
\
  {\
\
    "id": 22,\
\
    "email": "hulk.hogan@gmail.com",\
\
    "first_name": "Hulk",\
\
    "last_name": "Hogan",\
\
    "license_number": 99887766,\
\
    "license_subregion": "TX",\
\
    "license_expires_on": "2020-06-06",\
\
    "born_on": "1989-04-19",\
\
    "country": "US",\
\
    "phone_number": 5124592222,\
\
    "signature": true,\
\
    "links": {\
\
      "contract": {\
\
        "id": 2,\
\
        "href": "https://api.dw-tst.com/admin/some_resources/2"\
\
      }\
\
    }\
\
  }\
\
]