Driver API v2

The main purpose of the Driver API v2 is to output information about the driver. This API has two types of requests – one for a specific driver and one for all drivers.

Request for a specific driver

GET /drivers/{driverId}?version=2&api_key=<...>
HOST: api.fm-track.com
Content-Type: application/json;charset=UTF-8

The following parameters are mandatory for this request:

ParameterTypeDescription
driverIdStringDriver identifier
versionStringVersion of the API
api_keyStringUser identification key

A response example is shown below:

{ 
    "id": "ABC123",
    "first_name": "Driver",
    "last_name": null,
    "address": "Lithuania, Vilnius",
    "phone": "+3700000000",
    "identifiers": [
        {
            "identifier": "343234323432342",
            "type": "DLT"
        },
        {
            "identifier": "123456789",
            "type": "TACHOGRAPH"
        },
        {
            "identifier": "3AC64785D2FF",
            "type": "WIRELESS"
        },
        {
            "identifier": "123456789",
            "type": "IBUTTON"
        }
    ]
}

Note
Parameters without values return a “null” value.

Response parameters are described in the following table:

ParameterTypeArrayDescriptionUnits
idStringDriver identifierText
first_nameStringThe driver’s first nameText
last_nameStringThe driver’s last nameText
addressStringThe driver's addressText
phoneStringThe driver's telephone numberText
identifiersArrayContainer for identification codes
identifierStringidentifiersIdentification codeText
typeStringidentifiersIdentification code type
Possible values:
DLT
TACHOGRAPH
WIRELESS
IBUTTON
Text

Request for all drivers

GET /drivers?version=2&api_key=<...>&limit=<...>&continuation_token=<...>&identifier_type=<...>&identifier=<...>
HOST: api.fm-track.com
Content-Type: application/json;charset=UTF-8

This request has the following parameters:

ParameterTypeDescriptionRequired
versionStringVersion of the APIYes
api_keyStringUser identification keyYes
limitNumberHow many drivers should be included in the response
Default value: 100
Maximum value: 1000
No
continuation_tokenNumberNo
identifier_typeStringIdentification type, used to get specific driver data
Possible values:
DLT
TACHOGRAPH
WIRELESS
IBUTTON
No
identifierStringIdentification code, used to get specific driver dataNo

A response example is shown below:

{
"count": 100, 
"continuation_token": 123,
"items": [
    {
    "id": "ABC123",
    "first_name": "Driver",
    "last_name": null,
    "address": "Lithuania, Vilnius",
    "phone": "+3700000000",
    "identifiers": [
        {
            "identifier": "343234323432342",
            "type": "DLT"
        },
        {
            "identifier": "123456789",
            "type": "TACHOGRAPH"
        },
        {
            "identifier": "3AC64785D2FF",
            "type": "WIRELESS"
        },
        {
            "identifier": "123456789",
            "type": "IBUTTON"
        }
    ]
    },
...
]
}

Note
Parameters without values return a “null” value.

ParameterTypeArrayDescriptionUnits
countNumberHow many records are included in the response
continuation_tokenNumberDisplays from which record the data is shown if the record limit was reached
itemsArrayContainer for all drivers
idStringitemsDriver identifierText
first_nameStringitemsThe driver’s first nameText
last_nameStringitemsThe driver’s last nameText
addressStringitemsThe driver's addressText
phoneStringitemsThe driver's telephone numberText
identifiersArrayitemsContainer for identification codes
identifierStringidentifiersIdentification codeText
typeStringidentifiersIdentification code type
Possible values:
DLT
TACHOGRAPH
WIRELESS
IBUTTON
Text