How to Access the Shipment Information Entered by the Drivers Using the SDK

Applies To

  • SDK
  • Shipment Logs

Procedure

  1. Go to the MyGeotab SDK Runner: https://my.geotab.com/sdk/api/apiRunner.html
  2. Enter the server number, database and your credentials to log in.
  3. Execute the following code (set the <Device ID> accordingly)
api.call("Get", {
    "typeName": "ShipmentLog",
    "search": {
        "deviceSearch": {
            "id": "<Device ID> "
        }
    }
}, function(result) {
    console.log("Done: ", result);
}, function(e) {
    console.error("Failed:", e);
});

Additional Notes

Use "deviceSearch" or any other properties under ShipmentLogSearch to filter out the desired results.