Request

GET http:///fleet.roadprotect.co.il/api/v1/query/contract

Query parameters

Parameter name Value Description Additional
mine string
startDate string
endDate string
via string

Possible values are:

  • managedVehicles
graphing string

Possible values are:

  • true
  • false

Authorisation

To authenticate your client integration please put your token in the header of your requests with the key Authorization, it should look like this:

Authorization: Bearer YOUR_TOKEN_HERE

Please keep your token secured. If your token is compromised, we can issue a new token for you.

This request requires the use of one of following authorisation methods: API key .

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK Contract
401 Unauthorized

Unauthorized

500 Internal Server Error

Invalid query parameters

Example Request

NodeJs Request

var request = require('request');
var options = {
    'method': 'GET',
    'url': 'http://fleet.roadprotect.co.il/api/v1/query/contract?limit=10&page=1&mine=true',
    'headers': {
        'Authorization': 'Bearer YOUR_TOKEN_HERE'
        }
    };
request(options, function (error, response) {
    if (error) throw new Error(error);
    console.log(response.body);
});

Python Requests

Replace CONTRACT_ID with the desired contractId.

import requests
url = "http://fleet.roadprotect.co.il//api/v1/query/contract?limit=10&page=1&mine=true"
payload={}
headers = {
    'Authorization': 'Bearer YOUR_TOKEN_HERE'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)