# Get tracking statuses

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v3/tracking:
    get:
      summary: Get tracking statuses
      deprecated: false
      description: >-
        Returns a list of all shipments that match the provided criteria and
        their tracking updates.


        Tracking statuses are not marked as exported by default, please use the
        [Mark as exported endpoint](api-10126285) to mark tracking statuses as
        exported.
         
        <DataSchema id="3334657" />



        <DataSchema id="3334658" />
      tags:
        - Version 3/Tracking
        - Tracking
      parameters:
        - name: LatestStatusOnly
          in: query
          description: True if only the most recent tracking status should be returned.
          required: false
          schema:
            type: boolean
        - name: Ids
          in: query
          description: The ids of objects that should be updated.
          required: true
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TrackingDto'
          headers: {}
          x-apidog-name: Success
        '400':
          description: ''
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc'
          headers: {}
          x-apidog-name: Bad Request
        '401':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Forbidden
        '404':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Not Found
        '429':
          description: ''
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Too Many Requests
      security: []
      x-apidog-folder: Version 3/Tracking
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/668040/apis/api-10126284-run
components:
  schemas:
    TrackingDto:
      type: object
      properties:
        shipmentId:
          type: integer
          description: The Banyan shipment (load) id.
          format: int32
        bol:
          type: string
          description: The BOL Number for the shipment.
          nullable: true
        proNumber:
          type: string
          description: The ProNumber for the shipment.
          nullable: true
        trackingStatuses:
          type: array
          items:
            $ref: '#/components/schemas/TrackingStatusDto'
          description: Any tracking statuses that belong to the shipment.
          nullable: true
      additionalProperties: false
      description: >-
        Object that contains basic shipment information and any tracking
        statuses.
      x-apidog-orders:
        - shipmentId
        - bol
        - proNumber
        - trackingStatuses
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    TrackingStatusDto:
      type: object
      properties:
        trackingStatusId:
          type: integer
          description: >-
            The id of the tracking entity. This can relate to either web or edi
            statuses, refer to
            BanyanWebServices.Domain.Dtos.Tracking.TrackingStatusDto.Type to
            determine which.
          format: int32
        dateTime:
          type: string
          description: >-
            The date and time that the tracking event occurred. If this was not
            provided by the carrier, it will be the time Banyan received the
            event. See <seealso
            cref="P:BanyanWebServices.Domain.Dtos.Tracking.TrackingStatusDto.DateTimeType"
            />.
          format: date-time
        timeZoneInfo:
          $ref: '#/components/schemas/TimeZoneDto'
          description: 'Time zone information '
        type:
          type: string
          description: The type of tracking status.  Web or EDI.
          nullable: true
        code:
          type: string
          description: The tracking code.
        carrierMessage:
          type: string
          description: The actual carrier message for this tracking event.
          nullable: true
        banyanMessage:
          type: string
          description: The Banyan message for this tracking event.
          nullable: true
        city:
          type: string
          description: The city the event occurred in.
          nullable: true
        state:
          type: string
          description: The state the event occurred in.
          nullable: true
        countryCode:
          type: string
          description: The country the event occurred in.
          nullable: true
        zipCode:
          type: string
          description: The zip code the event occurred in.
          nullable: true
        latitude:
          type: number
          description: The latitude the event occurred at.
          format: double
          nullable: true
        longitude:
          type: number
          description: The longitude the event occurred at.
          format: double
          nullable: true
        dateTimeType:
          type: string
          description: >-
            If an actual date and time were provided from the carrier, this will
            be Carrier. Otherwise Banyan.
          nullable: true
      additionalProperties: false
      description: An object that contains information about a tracking status.
      x-apidog-orders:
        - trackingStatusId
        - dateTime
        - timeZoneInfo
        - type
        - code
        - carrierMessage
        - banyanMessage
        - city
        - state
        - countryCode
        - zipCode
        - latitude
        - longitude
        - dateTimeType
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    TimeZoneDto:
      type: object
      properties:
        abbreviation:
          type: string
          description: Standard abbreviation for the time zone.
          nullable: true
        fullName:
          type: string
          description: Full name of the time zone.
          nullable: true
        utcOffset:
          type: number
          description: UTC offset of the time zone.
          format: double
          nullable: true
      additionalProperties: false
      description: Information about a time zone.
      x-apidog-orders:
        - abbreviation
        - fullName
        - utcOffset
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Microsoft.AspNetCore.Mvc:
      title: ErrorResponse
      type: object
      properties:
        type:
          type: string
          description: A link explaining the response code
        title:
          type: string
          description: Describes the type of error
        status:
          type: integer
          description: The status code
        traceId:
          type: string
          description: A unique id to help troubleshoot
        detail:
          type: string
          description: A detailed message about the error
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          x-apidog-orders: []
          properties: {}
          description: Any errors returned.
          x-apidog-ignore-properties: []
      required:
        - type
        - title
        - status
        - traceId
      x-apidog-orders:
        - type
        - title
        - status
        - traceId
        - detail
        - errors
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://ws.integration.banyantechnology.com
    description: Integration Env
security: []

```
