# GetTrackingByLoad

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /services/api/rest/GetTrackingByLoad:
    post:
      summary: GetTrackingByLoad
      deprecated: false
      description: Used for retrieving tracking details about specific Loads.
      tags:
        - Version 2/Additional Offerings/Additional Tracking
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Accept
          in: header
          description: ''
          required: false
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetTrackingByLoadRequest'
            example:
              AuthenticationData:
                Username: ''
                Password: ''
                ClientRefNum: ''
              LoadIds:
                - '34255933'
                - '34256056'
                - '55555555'
              GetLastStatus: false
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTrackingByLoadResponse'
              example:
                Tracking:
                  - LoadId: 34255933
                    BOL: '2113600014'
                    ProNumber: '507530921'
                    TrackingStatuses:
                      - DateTime: '2021-05-21T10:00:00'
                        Type: WEB
                        Code: AA
                        CarrierMessage: >-
                          Pickup window 5/21/2021 10:00:00 AM - 5/21/2021
                          5:00:00 PM
                        BanyanMessage: Pickup Appointment
                        City: ''
                        State: ''
                      - DateTime: '2021-05-21T16:34:00'
                        Type: WEB
                        Code: SPU
                        CarrierMessage: PICKED UP
                        BanyanMessage: Shipment picked-up
                        City: ''
                        State: ''
                      - DateTime: '2021-05-22T01:37:00'
                        Type: WEB
                        Code: P1
                        CarrierMessage: DEPARTED TERMINAL
                        BanyanMessage: Departed Terminal Location
                        City: ''
                        State: ''
                      - DateTime: '2021-05-22T04:14:00'
                        Type: WEB
                        Code: X4
                        CarrierMessage: ARRIVED AT TERMINAL
                        BanyanMessage: Arrived at Terminal Location
                        City: ''
                        State: ''
                  - LoadId: 34256056
                    BOL: '2113600017'
                    ProNumber: '507530947'
                    TrackingStatuses:
                      - DateTime: '2021-05-21T10:00:00'
                        Type: WEB
                        Code: AA
                        CarrierMessage: >-
                          Pickup window 5/21/2021 10:00:00 AM - 5/21/2021
                          5:00:00 PM
                        BanyanMessage: Pickup Appointment
                        City: ''
                        State: ''
                      - DateTime: '2021-05-21T16:34:00'
                        Type: WEB
                        Code: SPU
                        CarrierMessage: PICKED UP
                        BanyanMessage: Shipment picked-up
                        City: ''
                        State: ''
                      - DateTime: '2021-05-22T01:37:00'
                        Type: WEB
                        Code: P1
                        CarrierMessage: DEPARTED TERMINAL
                        BanyanMessage: Departed Terminal Location
                        City: ''
                        State: ''
                      - DateTime: '2021-05-22T04:14:00'
                        Type: WEB
                        Code: X4
                        CarrierMessage: ARRIVED AT TERMINAL
                        BanyanMessage: Arrived at Terminal Location
                        City: ''
                        State: ''
                Errors:
                  - Load 55555555 does not exist for this user.
                Success: true
          headers: {}
          x-apidog-name: GetTrackingByLoad
      security: []
      x-apidog-folder: Version 2/Additional Offerings/Additional Tracking
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/668040/apis/api-10126321-run
components:
  schemas:
    GetTrackingByLoadRequest:
      type: object
      properties:
        AuthenticationData:
          $ref: '#/components/schemas/Authentication%20Data'
          description: Banyan Credentials
        LoadIds:
          type: array
          items:
            type: integer
          description: A list of one or more LoadIds
        GetLastStatus:
          type: boolean
          description: Only the last status will return
      required:
        - AuthenticationData
        - LoadIds
        - GetLastStatus
      x-apidog-orders:
        - AuthenticationData
        - LoadIds
        - GetLastStatus
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Authentication Data:
      type: object
      properties:
        Username:
          type: string
          description: Banyan Username
          x-apidog-mock: username
        Password:
          type: string
          description: Banyan Password
          x-apidog-mock: password
        ClientRefNum:
          type: string
          description: Client Reference Number - Used during multiple client integrations
          nullable: true
      required:
        - Username
        - Password
      x-apidog-orders:
        - Username
        - Password
        - ClientRefNum
      description: Banyan Credentials
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    GetTrackingByLoadResponse:
      type: object
      properties:
        Tracking:
          type: array
          items:
            type: object
            properties:
              LoadId:
                type: integer
                title: ''
                description: Banyan's primary Shipment Identifier
              BOL:
                type: string
                description: Shipment's BOL number
              ProNumber:
                type: string
                description: Shipment's pro number
              TrackingStatuses:
                type: array
                items:
                  type: object
                  properties:
                    DateTime:
                      type: string
                      format: date-time
                      description: The tracking status's date and time (carrier supplied)
                    Type:
                      type: string
                      description: >-
                        The tracking process where this update was recieved, EDI
                        or Web
                    Code:
                      type: string
                      description: The tracking status's EDI 214 code
                    CarrierMessage:
                      type: string
                      description: The tracking status's message (carrier supplied)
                    BanyanMessage:
                      type: string
                      description: The tracking status's EDI 214 message.
                    City:
                      type: string
                      description: The tracking status's current city (carrier supplied)
                    State:
                      type: string
                      description: The tracking status's current state (carrier supplied)
                  required:
                    - DateTime
                    - Type
                    - Code
                    - BanyanMessage
                  x-apidog-orders:
                    - DateTime
                    - Type
                    - Code
                    - CarrierMessage
                    - BanyanMessage
                    - City
                    - State
                  x-apidog-ignore-properties: []
                description: List of tracking statuses
            required:
              - LoadId
              - BOL
              - ProNumber
              - TrackingStatuses
            x-apidog-orders:
              - LoadId
              - BOL
              - ProNumber
              - TrackingStatuses
            x-apidog-ignore-properties: []
          description: A list of Tracking statuses
        Errors:
          type: array
          items:
            type: string
          description: A list containing any errors that occurred
        Success:
          type: boolean
          description: Whether request was successful
      required:
        - Tracking
        - Errors
        - Success
      x-apidog-orders:
        - Tracking
        - Errors
        - Success
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ws.integration.banyantechnology.com
    description: Integration Env
security: []

```
