{
  "openapi": "3.0.0",
  "info": {
    "version": "1.1.2",
    "title": "LoadTrack - Pull Load Track Updates",
    "termsOfService": "https://www.truckertools.com/terms/",
    "contact": {
      "email": "integrations@truckertools.com"
    },
    "license": {
      "name": "Private",
      "url": "https://www.truckertools.com"
    },
    "description": "Requests are authenticated by the `partnerId` and `accountId` attributes in the body.\nThese values will be provided by TruckerTools during onboarding, the latter already being encrypted.\n"
  },
  "paths": {
    "/loadtrackservice/getLoadTrackDetailsServiceV2": {
      "post": {
        "summary": "Pull load track updates by external ID",
        "operationId": "createLoadTrack",
        "responses": {
          "200": {
            "$ref": "#/components/responses/LoadTrackResponse"
          },
          "401": {
            "$ref": "#/components/responses/InvalidAccount"
          }
        },
        "requestBody": {
          "$ref": "#/components/requestBodies/LoadTrackRequest"
        }
      }
    },
    "/loadtrackservice/getLoadTrackDetailsServiceByLoadNumber": {
      "post": {
        "summary": "Pull load track updates via load numbers",
        "operationId": "getLoadtracksByLoadNumber",
        "responses": {
          "200": {
            "$ref": "#/components/responses/LoadTrackResponseForLoadNumbers"
          },
          "401": {
            "$ref": "#/components/responses/InvalidAccount"
          }
        },
        "requestBody": {
          "$ref": "#/components/requestBodies/LoadTrackRequestByLoadNumber"
        }
      }
    }
  },
  "security": [],
  "servers": [
    {
      "description": "SwaggerHub API Auto Mocking",
      "url": "https://virtserver.swaggerhub.com/truckertools/get_load_track_updates/1.1.2"
    },
    {
      "description": "Production Server",
      "url": "https://loadtracking.truckertools.com"
    }
  ],
  "components": {
    "schemas": {
      "LoadTrack": {
        "type": "object",
        "required": [
          "partnerId",
          "accountId",
          "loadTrackExternalIds"
        ],
        "properties": {
          "partnerId": {
            "type": "integer",
            "minimum": 0,
            "example": 12345,
            "format": "int64",
            "description": "This is a unique integer id that is assigned to the Partner system to identify the Partner system by the Load Track system. This has to be sent on each webservice call.\n"
          },
          "accountId": {
            "type": "string",
            "example": "E++p1waC69ktJerPRkJHQg==",
            "description": "Unique identifier of the account. This accountId has to be encrypted with the shared secret of the partner. This shared secret will be shared during the integration process.\n"
          },
          "loadTrackExternalIds": {
            "type": "array",
            "items": {
              "type": "string",
              "example": 1234
            },
            "description": "The unique identifiers of the Loads in the Partner system.\n"
          },
          "sendNewData": {
            "type": "string",
            "enum": [
              "yes",
              "no"
            ],
            "example": "yes",
            "description": "When \"yes\", only updates since the last update request call are returned. When \"no\", all updates on the track are returned.\n"
          },
          "includeLocations": {
            "type": "boolean",
            "description": "Flag to indicate whether location updates should be returned. Default is true.\n"
          },
          "includeEvents": {
            "type": "boolean",
            "description": "Flag to indicate whether status updates should be returned. Default is true.\n"
          },
          "includeDocuments": {
            "type": "boolean",
            "description": "Flag to indicate whether uploaded document updates should be returned. Default is true.\n"
          },
          "includeComments": {
            "type": "boolean",
            "description": "Flag to indicate whether driver comment updates should be returned. Default is true.\n"
          }
        }
      },
      "GetLoadTrackByLoadNumber": {
        "type": "object",
        "required": [
          "partnerId",
          "accountId",
          "loadTrackExternalIds"
        ],
        "properties": {
          "partnerId": {
            "type": "integer",
            "minimum": 0,
            "example": 12345,
            "format": "int64",
            "description": "This is a unique integer id that is assigned to the Partner system to identify the Partner system by the Load Track system. This has to be sent on each webservice call.\n"
          },
          "accountId": {
            "type": "string",
            "example": "E++p1waC69ktJerPRkJHQg==",
            "description": "Unique identifier of the account. This accountId has to be encrypted with the shared secret of the partner. This shared secret will be shared during the integration process.\n"
          },
          "loadNumbers": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "Load-1234"
            },
            "description": "The  identifiers of the loads in the broker's system.\n"
          },
          "sendNewData": {
            "type": "string",
            "enum": [
              "yes",
              "no"
            ],
            "example": "yes",
            "description": "When \"yes\", only updates since the last update request call are returned. When \"no\", all updates on the track are returned.\n"
          },
          "includeLocations": {
            "type": "boolean",
            "description": "Flag to indicate whether location updates should be returned. Default is true.\n"
          },
          "includeEvents": {
            "type": "boolean",
            "description": "Flag to indicate whether status updates should be returned. Default is true.\n"
          },
          "includeDocuments": {
            "type": "boolean",
            "description": "Flag to indicate whether uploaded document updates should be returned. Default is true.\n"
          },
          "includeComments": {
            "type": "boolean",
            "description": "Flag to indicate whether driver comment updates should be returned. Default is true.\n"
          }
        }
      }
    },
    "responses": {
      "InvalidAccount": {
        "description": "Invalid Account ID\n",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "timeStamp"
              ],
              "properties": {
                "status": {
                  "type": "boolean",
                  "description": "Call success indicator.\n"
                },
                "message": {
                  "type": "string",
                  "example": "Invalid account",
                  "description": "Error message\n"
                },
                "errorCode": {
                  "type": "integer",
                  "example": 100,
                  "description": "Error code.\n"
                }
              }
            }
          }
        }
      },
      "LoadTrackResponse": {
        "description": "Successful update pull response.\n",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "timeStamp"
              ],
              "properties": {
                "status": {
                  "type": "boolean",
                  "description": "Call success indicator.\n"
                },
                "timeStamp": {
                  "type": "string",
                  "example": "09/26/2023 03:24:41 UTC",
                  "description": "Server timestamp at the time of response.\n"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "loadTrackExternalId": {
                        "type": "integer",
                        "description": "The unique identifier of the load in the Partner system.\n",
                        "example": 1234
                      },
                      "ltExternalId": {
                        "type": "integer",
                        "description": "The unique identifier of the load in the Partner system.\n",
                        "example": 1234
                      },
                      "latestLocation": {
                        "type": "object",
                        "required": [
                          "lat",
                          "lon",
                          "accuracy",
                          "timestampUTC",
                          "timestampSec",
                          "timestamp",
                          "city",
                          "state",
                          "country"
                        ],
                        "properties": {
                          "lat": {
                            "type": "string",
                            "example": 47.4450416,
                            "description": "The latitude of the most recent location update.\n"
                          },
                          "lon": {
                            "type": "string",
                            "example": -121.24509,
                            "description": "The latitude of the most recent location update.\n"
                          },
                          "accuracy": {
                            "type": "number",
                            "example": 86.6797,
                            "description": "The lower the number here the higher the accuracy. This number represents that the load has 68% likelihood to be within X meters of the ping.\n"
                          },
                          "timestampSec": {
                            "type": "string",
                            "example": "09/25/2023 13:29:38 PDT",
                            "description": "Device timestamp including seconds when the location was pulled.\n"
                          },
                          "timestamp": {
                            "type": "string",
                            "example": "09/25/2023 13:29 PDT",
                            "description": "Device timestamp when location was pulled.\n"
                          },
                          "timestampUTC": {
                            "type": "string",
                            "example": "09/25/2023 20:29:38 UTC",
                            "description": "UTC timestamp when location was pulled.\n"
                          },
                          "city": {
                            "type": "string",
                            "example": "Seattle",
                            "description": "City of the location update.\n"
                          },
                          "state": {
                            "type": "string",
                            "example": "WA",
                            "description": "State of the location update.\n"
                          },
                          "country": {
                            "type": "string",
                            "example": "USA",
                            "description": "Country of the location update.\n"
                          },
                          "driver": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "John Doe"
                              },
                              "phoneNumber": {
                                "type": "string",
                                "example": "1234567890"
                              }
                            }
                          }
                        }
                      },
                      "latestStatus": {
                        "type": "object",
                        "required": [
                          "name",
                          "code",
                          "timestampSec",
                          "timestamp",
                          "timestampUTC"
                        ],
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Tracking",
                            "description": "Name of the most recent main status update.\n"
                          },
                          "code": {
                            "type": "string",
                            "example": "TLT",
                            "description": "Code of the most recent main status update.\n"
                          },
                          "timestampSec": {
                            "type": "string",
                            "example": "09/25/2023 13:29:38 PDT",
                            "description": "Device timestamp including seconds when location was pulled.\n"
                          },
                          "timestamp": {
                            "type": "string",
                            "example": "09/25/2023 13:29 PDT",
                            "description": "Device timestamp when location was pulled.\n"
                          },
                          "timestampUTC": {
                            "type": "string",
                            "example": "09/25/2023 20:29:38 UTC",
                            "description": "UTC timestamp when location was pulled.\n"
                          },
                          "driver": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "John Doe"
                              },
                              "phoneNumber": {
                                "type": "string",
                                "example": "1234567890"
                              }
                            }
                          }
                        }
                      },
                      "latestTemperature": {
                        "type": "object",
                        "properties": {
                          "deviceId": {
                            "type": "string",
                            "description": "The unique identifier for the device monitoring temperature.",
                            "example": "46624"
                          },
                          "location": {
                            "type": "object",
                            "properties": {
                              "latitude": {
                                "type": "string",
                                "description": "Latitude of the location where the temperature is measured.",
                                "example": "40.7121124"
                              },
                              "longitutde": {
                                "type": "string",
                                "description": "Longtitude of the location where the temperature is measured.",
                                "example": "-73.957862"
                              },
                              "accuracy": {
                                "type": "number",
                                "example": null,
                                "description": "The accuracy of the location measurement."
                              }
                            }
                          },
                          "timestamp": {
                            "type": "string",
                            "description": "Time at which the temperature was recorded",
                            "example": "11/21/2022 12:20 EST"
                          },
                          "temperature": {
                            "type": "object",
                            "properties": {
                              "zone1": {
                                "type": "object",
                                "properties": {
                                  "supply": {
                                    "type": "number",
                                    "description": "Supply tempertaure from the reefer device in specified unit of measurement.",
                                    "example": -10.123
                                  },
                                  "return": {
                                    "type": "number",
                                    "description": "Return temperature to the reefer device from the specified unit of measurement.",
                                    "example": -6.123
                                  },
                                  "set": {
                                    "type": "number",
                                    "description": "Set temperature of the reefer device in the specified unit of measurement.",
                                    "example": -6
                                  }
                                }
                              },
                              "UnitOfMeasurement": {
                                "type": "string",
                                "description": "The unit of measurement for the temperature",
                                "example": "Celcius"
                              }
                            }
                          }
                        }
                      },
                      "locations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "lat",
                            "lon",
                            "deviceTimeGmt",
                            "accuracy",
                            "timestamp"
                          ],
                          "properties": {
                            "lat": {
                              "type": "string",
                              "example": 47.4477157,
                              "description": "Latitude of location update.\n"
                            },
                            "lon": {
                              "type": "string",
                              "example": -122.24468,
                              "description": "Longitude of location update.\n"
                            },
                            "deviceTimeGmt": {
                              "type": "string",
                              "example": "2023-09-25 20:26:13",
                              "description": "Time of location update in GMT.\n"
                            },
                            "accuracy": {
                              "type": "number",
                              "example": 86.6797,
                              "description": "The lower the number here the higher the accuracy. This number represents that the load has 68% likelihood to be within X meters of the ping.\n"
                            },
                            "timestamp": {
                              "type": "string",
                              "example": "09/25/2023 13:29 PDT",
                              "description": "Device timestamp when location was pulled.\n"
                            },
                            "driver": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "John Doe"
                                },
                                "phoneNumber": {
                                  "type": "string",
                                  "example": "1234567890"
                                }
                              }
                            }
                          }
                        }
                      },
                      "temperatures": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "deviceId": {
                              "type": "string",
                              "description": "The unique identifier for the device monitoring temperature.",
                              "example": "46624"
                            },
                            "location": {
                              "type": "object",
                              "properties": {
                                "latitude": {
                                  "type": "string",
                                  "description": "Latitude of the location where the temperature is measured.",
                                  "example": "40.7121124"
                                },
                                "longitutde": {
                                  "type": "string",
                                  "description": "Longtitude of the location where the temperature is measured.",
                                  "example": "-73.957862"
                                },
                                "accuracy": {
                                  "type": "number",
                                  "example": null,
                                  "description": "The accuracy of the location measurement."
                                }
                              }
                            },
                            "timestamp": {
                              "type": "string",
                              "description": "Time at which the temperature was recorded",
                              "example": "11/21/2022 12:20 EST"
                            },
                            "temperature": {
                              "type": "object",
                              "properties": {
                                "zone1": {
                                  "type": "object",
                                  "properties": {
                                    "supply": {
                                      "type": "number",
                                      "description": "Supply tempertaure from the reefer device in specified unit of measurement.",
                                      "example": -10.013
                                    },
                                    "return": {
                                      "type": "number",
                                      "description": "Return temperature to the reefer device from the specified unit of measurement.",
                                      "example": -8
                                    },
                                    "set": {
                                      "type": "number",
                                      "description": "Set temperature of the reefer device in the specified unit of measurement.",
                                      "example": -6
                                    }
                                  }
                                },
                                "UnitOfMeasurement": {
                                  "type": "string",
                                  "description": "The unit of measurement for the temperature",
                                  "example": "Celcius"
                                }
                              }
                            }
                          }
                        }
                      },
                      "events": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "id",
                            "timestampSec",
                            "timestamp",
                            "timstampUTC",
                            "name",
                            "code"
                          ],
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 457620687,
                              "description": "Unique Trucker Tools ID for an event.\n"
                            },
                            "timestampSec": {
                              "type": "string",
                              "example": "09/25/2023 13:29:38 PDT",
                              "description": "Device timestamp including seconds when status occurred.\n"
                            },
                            "timestamp": {
                              "type": "string",
                              "example": "09/25/2023 13:29 PDT",
                              "description": "Device timestamp when status occurred.\n"
                            },
                            "timestampUTC": {
                              "type": "string",
                              "example": "09/25/2023 20:29:38 UTC",
                              "description": "UTC timestamp when status occurred.\n"
                            },
                            "name": {
                              "type": "string",
                              "example": "Tracking",
                              "description": "Name of the status update.\n"
                            },
                            "code": {
                              "type": "string",
                              "example": "TLT",
                              "description": "Code of the status update.\n"
                            },
                            "driver": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "John Doe"
                                },
                                "phoneNumber": {
                                  "type": "string",
                                  "example": "1234567890"
                                }
                              }
                            }
                          }
                        }
                      },
                      "comments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "comment": {
                              "type": "string",
                              "example": "I have an issue.",
                              "description": "Content of comment\n"
                            },
                            "commentBy": {
                              "type": "string",
                              "enum": [
                                "D",
                                "B"
                              ],
                              "description": "Is the comment from the broker \"B\" or driver \"D\"?\n"
                            },
                            "timestampSec": {
                              "type": "string",
                              "example": "09/25/2023 13:29:38 PDT",
                              "description": "Device timestamp including seconds when comment was sent.\n"
                            },
                            "timestamp": {
                              "type": "string",
                              "example": "09/25/2023 13:29 PDT",
                              "description": "Device timestamp when comment was sent.\n"
                            },
                            "timestampUTC": {
                              "type": "string",
                              "example": "09/25/2023 20:29:38 UTC",
                              "description": "UTC timestamp when comment was sent.\n"
                            },
                            "location": {
                              "type": "object",
                              "properties": {
                                "lat": {
                                  "type": "string",
                                  "example": 47.4450416,
                                  "description": "The latitude of where the comment was sent from.\n"
                                },
                                "lon": {
                                  "type": "string",
                                  "example": -121.24509,
                                  "description": "The latitude of where the comment was sent from.\n"
                                },
                                "accuracy": {
                                  "type": "number",
                                  "example": 86.6797,
                                  "description": "The lower the number here the higher the accuracy. This number represents that the load has 68% likelihood to be within X meters of the ping.\n"
                                },
                                "city": {
                                  "type": "string",
                                  "example": "Seattle",
                                  "description": "City of where the comment was sent from.\n"
                                },
                                "state": {
                                  "type": "string",
                                  "example": "WA",
                                  "description": "State of where the comment was sent from.\n"
                                },
                                "country": {
                                  "type": "string",
                                  "example": "USA",
                                  "description": "Country of where the comment was sent from.\n"
                                }
                              }
                            },
                            "driver": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "John Doe"
                                },
                                "phoneNumber": {
                                  "type": "string",
                                  "example": "1234567890"
                                }
                              }
                            }
                          }
                        }
                      },
                      "documents": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "type",
                            "timestamp",
                            "url",
                            "location"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "example": "Proof of Delivery",
                              "description": "Type of document uploaded\n"
                            },
                            "timestamp": {
                              "type": "string",
                              "example": "09/26/2023 07:47:13 EDT",
                              "description": "Device timestamp when document or picture was uploaded.\n"
                            },
                            "url": {
                              "type": "string",
                              "example": "https:/assets.truckertools.com/images/tt-scan-docs/scanImageuploads/test.jpg",
                              "description": "URL for uploaded document or picture.\n"
                            },
                            "stopExternalId": {
                              "type": "string",
                              "example": 1234,
                              "description": "Stop ID sent from your TMS which this document/photo is tied to.\n"
                            },
                            "stopOrderNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Stop number for which this document/photo is tied to. The first stop is 1.\n"
                            },
                            "driver": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "John Doe"
                                },
                                "phoneNumber": {
                                  "type": "string",
                                  "example": "1234567890"
                                }
                              }
                            },
                            "location": {
                              "type": "object",
                              "properties": {
                                "lat": {
                                  "type": "string",
                                  "example": 47.4450416,
                                  "description": "The latitude of where the comment was sent from.\n"
                                },
                                "lon": {
                                  "type": "string",
                                  "example": -121.24509,
                                  "description": "The latitude of where the comment was sent from.\n"
                                },
                                "accuracy": {
                                  "type": "number",
                                  "example": 86.6797,
                                  "description": "The lower the number here the higher the accuracy. This number represents that the load has 68% likelihood to be within X meters of the ping.\n"
                                },
                                "city": {
                                  "type": "string",
                                  "example": "Seattle",
                                  "description": "City of where the comment was sent from.\n"
                                },
                                "state": {
                                  "type": "string",
                                  "example": "WA",
                                  "description": "State of where the comment was sent from.\n"
                                },
                                "country": {
                                  "type": "string",
                                  "example": "USA",
                                  "description": "Country of where the comment was sent from.\n"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "LoadTrackResponseForLoadNumbers": {
        "description": "Successful update pull response.\n",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "status",
                "timeStamp"
              ],
              "properties": {
                "status": {
                  "type": "boolean",
                  "description": "Call success indicator.\n"
                },
                "timeStamp": {
                  "type": "string",
                  "example": "09/26/2023 03:24:41 UTC",
                  "description": "Server timestamp at the time of response.\n"
                },
                "details": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "loadNumber": {
                        "type": "string",
                        "description": "The unique identifier of the load in the Partner system.\n",
                        "example": 1234
                      },
                      "ltExternalId": {
                        "type": "integer",
                        "description": "The unique identifier of the load in the Partner system.\n",
                        "example": 1234
                      },
                      "latestLocation": {
                        "type": "object",
                        "required": [
                          "lat",
                          "lon",
                          "accuracy",
                          "timestampUTC",
                          "timestampSec",
                          "timestamp",
                          "city",
                          "state",
                          "country"
                        ],
                        "properties": {
                          "lat": {
                            "type": "string",
                            "example": 47.4450416,
                            "description": "The latitude of the most recent location update.\n"
                          },
                          "lon": {
                            "type": "string",
                            "example": -121.24509,
                            "description": "The latitude of the most recent location update.\n"
                          },
                          "accuracy": {
                            "type": "number",
                            "example": 86.6797,
                            "description": "The lower the number here the higher the accuracy. This number represents that the load has 68% likelihood to be within X meters of the ping.\n"
                          },
                          "timestampSec": {
                            "type": "string",
                            "example": "09/25/2023 13:29:38 PDT",
                            "description": "Device timestamp including seconds when the location was pulled.\n"
                          },
                          "timestamp": {
                            "type": "string",
                            "example": "09/25/2023 13:29 PDT",
                            "description": "Device timestamp when location was pulled.\n"
                          },
                          "timestampUTC": {
                            "type": "string",
                            "example": "09/25/2023 20:29:38 UTC",
                            "description": "UTC timestamp when location was pulled.\n"
                          },
                          "city": {
                            "type": "string",
                            "example": "Seattle",
                            "description": "City of the location update.\n"
                          },
                          "state": {
                            "type": "string",
                            "example": "WA",
                            "description": "State of the location update.\n"
                          },
                          "country": {
                            "type": "string",
                            "example": "USA",
                            "description": "Country of the location update.\n"
                          },
                          "driver": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "John Doe"
                              },
                              "phoneNumber": {
                                "type": "string",
                                "example": "1234567890"
                              }
                            }
                          }
                        }
                      },
                      "latestStatus": {
                        "type": "object",
                        "required": [
                          "name",
                          "code",
                          "timestampSec",
                          "timestamp",
                          "timestampUTC"
                        ],
                        "properties": {
                          "name": {
                            "type": "string",
                            "example": "Tracking",
                            "description": "Name of the most recent main status update.\n"
                          },
                          "code": {
                            "type": "string",
                            "example": "TLT",
                            "description": "Code of the most recent main status update.\n"
                          },
                          "timestampSec": {
                            "type": "string",
                            "example": "09/25/2023 13:29:38 PDT",
                            "description": "Device timestamp including seconds when location was pulled.\n"
                          },
                          "timestamp": {
                            "type": "string",
                            "example": "09/25/2023 13:29 PDT",
                            "description": "Device timestamp when location was pulled.\n"
                          },
                          "timestampUTC": {
                            "type": "string",
                            "example": "09/25/2023 20:29:38 UTC",
                            "description": "UTC timestamp when location was pulled.\n"
                          },
                          "driver": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "example": "John Doe"
                              },
                              "phoneNumber": {
                                "type": "string",
                                "example": "1234567890"
                              }
                            }
                          }
                        }
                      },
                      "locations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "lat",
                            "lon",
                            "deviceTimeGmt",
                            "accuracy",
                            "timestamp"
                          ],
                          "properties": {
                            "lat": {
                              "type": "string",
                              "example": 47.4477157,
                              "description": "Latitude of location update.\n"
                            },
                            "lon": {
                              "type": "string",
                              "example": -122.24468,
                              "description": "Longitude of location update.\n"
                            },
                            "deviceTimeGmt": {
                              "type": "string",
                              "example": "2023-09-25 20:26:13",
                              "description": "Time of location update in GMT.\n"
                            },
                            "accuracy": {
                              "type": "number",
                              "example": 86.6797,
                              "description": "The lower the number here the higher the accuracy. This number represents that the load has 68% likelihood to be within X meters of the ping.\n"
                            },
                            "driverPhoneNumber": {
                              "type": "string",
                              "example": "1234567890"
                            },
                            "driver": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "John Doe"
                                },
                                "phoneNumber": {
                                  "type": "string",
                                  "example": "1234567890"
                                }
                              }
                            },
                            "timestamp": {
                              "type": "string",
                              "example": "09/25/2023 13:29 PDT",
                              "description": "Device timestamp when location was pulled.\n"
                            }
                          }
                        }
                      },
                      "events": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "id",
                            "timestampSec",
                            "timestamp",
                            "timstampUTC",
                            "name",
                            "code"
                          ],
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 457620687,
                              "description": "Unique Trucker Tools ID for an event.\n"
                            },
                            "timestampSec": {
                              "type": "string",
                              "example": "09/25/2023 13:29:38 PDT",
                              "description": "Device timestamp including seconds when status occurred.\n"
                            },
                            "timestamp": {
                              "type": "string",
                              "example": "09/25/2023 13:29 PDT",
                              "description": "Device timestamp when status occurred.\n"
                            },
                            "timestampUTC": {
                              "type": "string",
                              "example": "09/25/2023 20:29:38 UTC",
                              "description": "UTC timestamp when status occurred.\n"
                            },
                            "name": {
                              "type": "string",
                              "example": "Tracking",
                              "description": "Name of the status update.\n"
                            },
                            "code": {
                              "type": "string",
                              "example": "TLT",
                              "description": "Code of the status update.\n"
                            },
                            "driver": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "John Doe"
                                },
                                "phoneNumber": {
                                  "type": "string",
                                  "example": "1234567890"
                                }
                              }
                            }
                          }
                        }
                      },
                      "comments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "comment": {
                              "type": "string",
                              "example": "I have an issue.",
                              "description": "Content of comment\n"
                            },
                            "commentBy": {
                              "type": "string",
                              "enum": [
                                "D",
                                "B"
                              ],
                              "description": "Is the comment from the broker \"B\" or driver \"D\"?\n"
                            },
                            "timestampSec": {
                              "type": "string",
                              "example": "09/25/2023 13:29:38 PDT",
                              "description": "Device timestamp including seconds when comment was sent.\n"
                            },
                            "timestamp": {
                              "type": "string",
                              "example": "09/25/2023 13:29 PDT",
                              "description": "Device timestamp when comment was sent.\n"
                            },
                            "timestampUTC": {
                              "type": "string",
                              "example": "09/25/2023 20:29:38 UTC",
                              "description": "UTC timestamp when comment was sent.\n"
                            },
                            "driver": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "John Doe"
                                },
                                "phoneNumber": {
                                  "type": "string",
                                  "example": "1234567890"
                                }
                              }
                            },
                            "location": {
                              "type": "object",
                              "properties": {
                                "lat": {
                                  "type": "string",
                                  "example": 47.4450416,
                                  "description": "The latitude of where the comment was sent from.\n"
                                },
                                "lon": {
                                  "type": "string",
                                  "example": -121.24509,
                                  "description": "The latitude of where the comment was sent from.\n"
                                },
                                "accuracy": {
                                  "type": "number",
                                  "example": 86.6797,
                                  "description": "The lower the number here the higher the accuracy. This number represents that the load has 68% likelihood to be within X meters of the ping.\n"
                                },
                                "city": {
                                  "type": "string",
                                  "example": "Seattle",
                                  "description": "City of where the comment was sent from.\n"
                                },
                                "state": {
                                  "type": "string",
                                  "example": "WA",
                                  "description": "State of where the comment was sent from.\n"
                                },
                                "country": {
                                  "type": "string",
                                  "example": "USA",
                                  "description": "Country of where the comment was sent from.\n"
                                }
                              }
                            }
                          }
                        }
                      },
                      "documents": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "type",
                            "timestamp",
                            "url",
                            "location"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "example": "Proof of Delivery",
                              "description": "Type of document uploaded\n"
                            },
                            "timestamp": {
                              "type": "string",
                              "example": "09/26/2023 07:47:13 EDT",
                              "description": "Device timestamp when document or picture was uploaded.\n"
                            },
                            "url": {
                              "type": "string",
                              "example": "https:/assets.truckertools.com/images/tt-scan-docs/scanImageuploads/test.jpg",
                              "description": "URL for uploaded document or picture.\n"
                            },
                            "stopExternalId": {
                              "type": "string",
                              "example": 1234,
                              "description": "Stop ID sent from your TMS which this document/photo is tied to.\n"
                            },
                            "stopOrderNumber": {
                              "type": "integer",
                              "example": 1,
                              "description": "Stop number for which this document/photo is tied to. The first stop is 1.\n"
                            },
                            "driver": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "example": "John Doe"
                                },
                                "phoneNumber": {
                                  "type": "string",
                                  "example": "1234567890"
                                }
                              }
                            },
                            "location": {
                              "type": "object",
                              "properties": {
                                "lat": {
                                  "type": "string",
                                  "example": 47.4450416,
                                  "description": "The latitude of where the comment was sent from.\n"
                                },
                                "lon": {
                                  "type": "string",
                                  "example": -121.24509,
                                  "description": "The latitude of where the comment was sent from.\n"
                                },
                                "accuracy": {
                                  "type": "number",
                                  "example": 86.6797,
                                  "description": "The lower the number here the higher the accuracy. This number represents that the load has 68% likelihood to be within X meters of the ping.\n"
                                },
                                "city": {
                                  "type": "string",
                                  "example": "Seattle",
                                  "description": "City of where the comment was sent from.\n"
                                },
                                "state": {
                                  "type": "string",
                                  "example": "WA",
                                  "description": "State of where the comment was sent from.\n"
                                },
                                "country": {
                                  "type": "string",
                                  "example": "USA",
                                  "description": "Country of where the comment was sent from.\n"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "requestBodies": {
      "LoadTrackRequest": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/LoadTrack"
            }
          }
        }
      },
      "LoadTrackRequestByLoadNumber": {
        "required": true,
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/GetLoadTrackByLoadNumber"
            }
          }
        }
      }
    }
  }
}