# Pull load track updates via load numbers

Endpoint: POST /loadtrackservice/getLoadTrackDetailsServiceByLoadNumber
Version: 1.1.2

## Request fields (application/json):

  - `partnerId` (integer, required)
    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.
    Example: 12345

  - `accountId` (string, required)
    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.
    Example: E++p1waC69ktJerPRkJHQg==

  - `loadNumbers` (array)
    The  identifiers of the loads in the broker's system.

  - `sendNewData` (string)
    When "yes", only updates since the last update request call are returned. When "no", all updates on the track are returned.
    Enum: "yes", "no"

  - `includeLocations` (boolean)
    Flag to indicate whether location updates should be returned. Default is true.

  - `includeEvents` (boolean)
    Flag to indicate whether status updates should be returned. Default is true.

  - `includeDocuments` (boolean)
    Flag to indicate whether uploaded document updates should be returned. Default is true.

  - `includeComments` (boolean)
    Flag to indicate whether driver comment updates should be returned. Default is true.

## Response 200:

  - `200` (unknown)
    Successful update pull response.

## Response 200 fields (application/json):

  - `status` (boolean, required)
    Call success indicator.

  - `timeStamp` (string, required)
    Server timestamp at the time of response.
    Example: 09/26/2023 03:24:41 UTC

  - `details` (array)

  - `details.loadNumber` (string)
    The unique identifier of the load in the Partner system.
    Example: 1234

  - `details.ltExternalId` (integer)
    The unique identifier of the load in the Partner system.
    Example: 1234

  - `details.latestLocation` (object)

  - `details.latestLocation.lat` (string, required)
    The latitude of the most recent location update.
    Example: 47.4450416

  - `details.latestLocation.lon` (string, required)
    The latitude of the most recent location update.
    Example: -121.24509

  - `details.latestLocation.accuracy` (number, required)
    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.
    Example: 86.6797

  - `details.latestLocation.timestampSec` (string, required)
    Device timestamp including seconds when the location was pulled.
    Example: 09/25/2023 13:29:38 PDT

  - `details.latestLocation.timestamp` (string, required)
    Device timestamp when location was pulled.
    Example: 09/25/2023 13:29 PDT

  - `details.latestLocation.timestampUTC` (string, required)
    UTC timestamp when location was pulled.
    Example: 09/25/2023 20:29:38 UTC

  - `details.latestLocation.city` (string, required)
    City of the location update.
    Example: Seattle

  - `details.latestLocation.state` (string, required)
    State of the location update.
    Example: WA

  - `details.latestLocation.country` (string, required)
    Country of the location update.
    Example: USA

  - `details.latestLocation.driver` (object)

  - `details.latestLocation.driver.name` (string)
    Example: John Doe

  - `details.latestLocation.driver.phoneNumber` (string)
    Example: 1234567890

  - `details.latestStatus` (object)

  - `details.latestStatus.name` (string, required)
    Name of the most recent main status update.
    Example: Tracking

  - `details.latestStatus.code` (string, required)
    Code of the most recent main status update.
    Example: TLT

  - `details.latestStatus.timestampSec` (string, required)
    Device timestamp including seconds when location was pulled.
    Example: 09/25/2023 13:29:38 PDT

  - `details.latestStatus.timestamp` (string, required)
    Device timestamp when location was pulled.
    Example: 09/25/2023 13:29 PDT

  - `details.latestStatus.timestampUTC` (string, required)
    UTC timestamp when location was pulled.
    Example: 09/25/2023 20:29:38 UTC

  - `details.latestStatus.driver` (object)

  - `details.latestStatus.driver.name` (string)
    Example: John Doe

  - `details.latestStatus.driver.phoneNumber` (string)
    Example: 1234567890

  - `details.locations` (array)

  - `details.locations.lat` (string, required)
    Latitude of location update.
    Example: 47.4477157

  - `details.locations.lon` (string, required)
    Longitude of location update.
    Example: -122.24468

  - `details.locations.deviceTimeGmt` (string, required)
    Time of location update in GMT.
    Example: 2023-09-25 20:26:13

  - `details.locations.accuracy` (number, required)
    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.
    Example: 86.6797

  - `details.locations.driverPhoneNumber` (string)
    Example: 1234567890

  - `details.locations.driver` (object)

  - `details.locations.driver.name` (string)
    Example: John Doe

  - `details.locations.driver.phoneNumber` (string)
    Example: 1234567890

  - `details.locations.timestamp` (string, required)
    Device timestamp when location was pulled.
    Example: 09/25/2023 13:29 PDT

  - `details.events` (array)

  - `details.events.id` (integer, required)
    Unique Trucker Tools ID for an event.
    Example: 457620687

  - `details.events.timestampSec` (string, required)
    Device timestamp including seconds when status occurred.
    Example: 09/25/2023 13:29:38 PDT

  - `details.events.timestamp` (string, required)
    Device timestamp when status occurred.
    Example: 09/25/2023 13:29 PDT

  - `details.events.timestampUTC` (string)
    UTC timestamp when status occurred.
    Example: 09/25/2023 20:29:38 UTC

  - `details.events.name` (string, required)
    Name of the status update.
    Example: Tracking

  - `details.events.code` (string, required)
    Code of the status update.
    Example: TLT

  - `details.events.driver` (object)

  - `details.events.driver.name` (string)
    Example: John Doe

  - `details.events.driver.phoneNumber` (string)
    Example: 1234567890

  - `details.comments` (array)

  - `details.comments.comment` (string)
    Content of comment
    Example: I have an issue.

  - `details.comments.commentBy` (string)
    Is the comment from the broker "B" or driver "D"?
    Enum: "D", "B"

  - `details.comments.timestampSec` (string)
    Device timestamp including seconds when comment was sent.
    Example: 09/25/2023 13:29:38 PDT

  - `details.comments.timestamp` (string)
    Device timestamp when comment was sent.
    Example: 09/25/2023 13:29 PDT

  - `details.comments.timestampUTC` (string)
    UTC timestamp when comment was sent.
    Example: 09/25/2023 20:29:38 UTC

  - `details.comments.driver` (object)

  - `details.comments.driver.name` (string)
    Example: John Doe

  - `details.comments.driver.phoneNumber` (string)
    Example: 1234567890

  - `details.comments.location` (object)

  - `details.comments.location.lat` (string)
    The latitude of where the comment was sent from.
    Example: 47.4450416

  - `details.comments.location.lon` (string)
    The latitude of where the comment was sent from.
    Example: -121.24509

  - `details.comments.location.accuracy` (number)
    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.
    Example: 86.6797

  - `details.comments.location.city` (string)
    City of where the comment was sent from.
    Example: Seattle

  - `details.comments.location.state` (string)
    State of where the comment was sent from.
    Example: WA

  - `details.comments.location.country` (string)
    Country of where the comment was sent from.
    Example: USA

  - `details.documents` (array)

  - `details.documents.type` (string, required)
    Type of document uploaded
    Example: Proof of Delivery

  - `details.documents.timestamp` (string, required)
    Device timestamp when document or picture was uploaded.
    Example: 09/26/2023 07:47:13 EDT

  - `details.documents.url` (string, required)
    URL for uploaded document or picture.
    Example: https:/assets.truckertools.com/images/tt-scan-docs/scanImageuploads/test.jpg

  - `details.documents.stopExternalId` (string)
    Stop ID sent from your TMS which this document/photo is tied to.
    Example: 1234

  - `details.documents.stopOrderNumber` (integer)
    Stop number for which this document/photo is tied to. The first stop is 1.
    Example: 1

  - `details.documents.driver` (object)

  - `details.documents.driver.name` (string)
    Example: John Doe

  - `details.documents.driver.phoneNumber` (string)
    Example: 1234567890

  - `details.documents.location` (object, required)

  - `details.documents.location.lat` (string)
    The latitude of where the comment was sent from.
    Example: 47.4450416

  - `details.documents.location.lon` (string)
    The latitude of where the comment was sent from.
    Example: -121.24509

  - `details.documents.location.accuracy` (number)
    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.
    Example: 86.6797

  - `details.documents.location.city` (string)
    City of where the comment was sent from.
    Example: Seattle

  - `details.documents.location.state` (string)
    State of where the comment was sent from.
    Example: WA

  - `details.documents.location.country` (string)
    Country of where the comment was sent from.
    Example: USA

## Response 401:

  - `401` (unknown)
    Invalid Account ID

## Response 401 fields (application/json):

  - `status` (boolean, required)
    Call success indicator.

  - `message` (string)
    Error message
    Example: Invalid account

  - `errorCode` (integer)
    Error code.
    Example: 100

