added

Driver ID Card Code in Drivers APIs

The Drivers APIs will now return a currentIdCardCode string field that contains the NFC ID card code for each driver. This card code also shows up in the Vehicles Stats APIs when you query for types= nfcCardScans.

The currentIdCardCode field in the Drivers APIs:

curl --request GET 'https://api.samsara.com/fleet/drivers' \
--header 'Authorization: Bearer <<token>>'
{
    "data": [
        {
            "id": "4376466",
            "name": "Tyler Freckmann",
            "username": "tyler_freckmann",
            "currentIdCardCode": "941767043",
            ...other driver fields
        }
    ],
    "pagination": {
        "endCursor": "",
        "hasNextPage": false
    }
}

The nfcCardScan event from the Vehicle Stats APIs:

curl --request GET 'https://api.samsara.com/fleet/vehicles/stats' \
-d types='nfcCardScans' \
-G \
--header 'Authorization: Bearer <<token>>'
{
    "data": [
        {
            "id": "281474977075805",
            "name": "Little Red",
            "nfcCardScan": {
                "time": "2020-11-05T17:27:38Z",
                "card": {
                    "id": "941767043"
                }
            }
        }
    ],
    "pagination": {
        "endCursor": "",
        "hasNextPage": false
    }
}