Request Type POST
Content Type JSON

Broker Key

This key will be provided by ALS system at the time of registering broker.


Vehicle Tracking Key

This Key will be provided by the trucking company to the broker. This will be valid for the specific time period as per trucking company want to share vehicle info for the time.


NOTE

Time provided in the API response is in UTC. Speed unit is KPH.


Error code returned and meaning of code
  • Error 1000 - This code will be returned in case of Broker key is invalid or broker is deactivated by the ALS.
  • Error 2000 - This code will be returned in case of Vehicle tracking id is invalid or expired
  • Error 3000 - This code will be returned if customer hit for the same tracking id before valid time interval.
  • Error 4000 – This code will be return when any system error at the API end. Please contact with ALS in this case.
Sample Data

    {
    "BrokerKey":"xxxxxxxxxxxxxxxxxxxxx",
    "VehicleTrackingKey":"xxxxxxxxxxxx"
    }

API response sample will be like below

    {
    "status": true,
    "msg": "OK",
    "model": {
    "vehicleNumber": "108",
    "latitude": "48.962243",
    "longitude": "-104.574669",
    "location": "1287 MT-16, Plentywood, MT 59254",
    "time": "2019-02-13T15:28:48",
    "speed": 92
    },
    "lstModel": null
    }

Request Type GET
Content Type JSON

Token

Token must be sent with all client requests. The token helps the server to validate the request source.It has been given to to you by your transporter company


NOTE

Time provided in the API response is in UTC. Speed unit is KPH.


Status and Sub Status Codes
Status Code Sub Status Code Description
200 200 OK
400 400 Bad request. The Token is empty.
401 401 Unauthorized. The token has expired or is invalid.
404 404 Resource not found
500 500 Internal Server Error
404 700 Data not found on server. Contact ALS Support
Sample Data

header
    {
    "token":"xxxxxxxxxxxxxxxxxxxxx"  
    }

API response sample will be like below

    {
    "status": true,
    "msg": "OK",
    "subStatusCode": 200,
    "model": null,
    "lstModel": [
    {
    "vehicleNumber": "B**2",
    "latitude": "49.2091",
    "longitude": "-122.8811",
    "location": "12270 Industrial Rd, Surrey, BC V3V, Canada",
    "time": "2024-06-01T21:10:27",
    "speed": 0,
    "companyName": "B****************c",
    "vin": "4**************7"
    },
    {
    "vehicleNumber": "B45",
    "latitude": "49.2093",
    "longitude": "-122.8810",
    "location": "12310 114 Ave, Surrey, BC V3V 3N5, Canada",
    "time": "2024-06-02T03:08:06",
    "speed": 0,
    "companyName": "B****************c",
    "vin": "4**************7"
    }
   ]
  }



Request Type GET
Content Type JSON

Token

Token must be sent with all client requests. The token helps the server to validate the request source.It has been given to to you by your transporter company


Status and Sub Status Codes
Status Code Sub Status Code Description
200 200 OK
400 400 Bad request. The Token is empty.
401 401 Unauthorized. The token has expired or is invalid.
404 404 Resource not found
500 500 Internal Server Error
404 700 Data not found on server. Contact ALS Support
Sample Data

header
    {
    "token":"xxxxxxxxxxxxxxxxxxxxx"  
    }

API response sample will be like below

    {
    "status": true,
    "msg": "OK",
    "SubStatusCode": 200,
    "model": null,
    "lstModel": [
    {
    "vin": "XYZ54********21",
    "vehicleNumber": "***125"
    },
    { 
    "vin": "ABC6***********78",
    "vehicleNumber": "***94"
     }
    ]  
   }