v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

List the documents of a driver

get/v1/documents

Query parameters

start_datestring date

Specify the start time from when you want to fetch the driver's documents. Default: TODAY - 7 DAYS AGO

end_datestring date

Specify the end time till when you want to view the driver's documents. Default: TODAY

driver_ids[]integer[]

Specify the IDs of the drivers for whom you want to fetch the documents.

per_pageinteger

The number of records to be displayed per page.

page_nointeger

The current page number.

Response

200

Example response

{
  "documents": [
    {
      "document": {
        "id": 1150,
        "category": "fuel receipt",
        "public_url": "/url/to/the/document",
        "ref_no": "ref no for fuel receipt",
        "notes": "notes taken for fuel receipt",
        "doc_date": "2020-04-21",
        "doc_time": "2020-04-21T02:00:00Z",
        "uploader": {
          "id": 10621,
          "first_name": "Nova",
          "last_name": "Effertz",
          "email": "6fe7feabfc08@keeptruckin.com",
          "role": "dispatcher"
        },
        "created_at": "2020-04-21T14:41:50Z",
        "updated_at": "2020-04-21T14:41:51.209256Z"
      }
    }
  ],
  "pagination": {
    "per_page": 25,
    "page_no": 1,
    "total": 2
  }
}