LTL

Create & rate shipment

This endpoint can be used to create an LTL shipment.

  • A successfully created shipment returns a shipmentId with a status of pending, and echoes the shipment data passed in.
  • The shipmentId should be used as the path parameter for the book shipment endpoint.
<!-- - The `shipmentId` should be used as the path parameter for the [edit shipment](#tag/LTL/operation/ltlEditShipment), [cancel shipment](#tag/LTL/operation/ltlCancelShipment), and [book shipment](#tag/LTL/operation/ltlBookShipment) endpoints. -->
  • It also includes any additional default data from Freightview (e.g. a location's latitude, longitude, & timezone, and the bill-to information (based on the direction of the shipment if none was specified in the create request).
<div class="blockquote alert-important"> <div class="alert-important-title">Important</div> The <code>quotes</code> array in the response will only be populated if <code>returnQuotes=true</code> was specified as a query parameter. </div>
post/v2.0/shipments/ltl

Request

  • Base URL: https://api.freightview.dev
  • URL: https://api.freightview.dev/v2.0/shipments/ltl
  • Auth: OAuth 2 (client credentials, token URL /v2.0/auth/token)

Query parameters

carriersstring
Example:fxfe,rlca,exla

A comma-separated list of carrier codes to include in the response.

returnQuotesboolean
Example:true

A boolean value to indicate whether Freightview should include rates in the response.

  • false - Freightview will create the shipment but available rates will not be returned.
  • true - Freightview will create the shipment and return available rates from LTL carriers.
waitDurationinteger
Example:10

An integer value to indicate the number of seconds to wait for rates before returning the response.

Request body

pickupDatestring date required

The date when the shipment should be picked up. Must be ISO 8601 format. YYYY-MM-DD

bolNumberstring

The Bill of Lading number for the shipment. Auto-generated by Freightview upon booking the shipment unless a value is provided.

shareShipmentEmailsstring[]

An array of email addresses with which to share the shipment. This will allow the email recipient to view the shipment bill of lading and tracking status.

glCodestring

The GL (General Ledger) code to assign to the shipment for accounting purposes. The GL code must already exist in your account's GL codes list.

Example request

{
  "origin": {
    "shipType": "business dock"
  },
  "destination": {
    "shipType": "business dock"
  },
  "glCode": "4000-100"
}

Response

Created

shipmentIdstring

The unique identifier in Freightview for this shipment.

createdDatestring date-time

Date / time when shipment was created.

pickupDatestring date

The requested date for pickup of the shipment.

status'pending'

Shipment has been created.

equipment'box-truck-16' | 'box-truck-24' | 'hotshot' | 'ltl' | 'partial-dry-van' | 'partial-flatbed' | 'partial-refrigerated' | 'pup' | 'refrigerated-ltl' | 'sprinter-van' | 'straight-truck-20' | 'straight-truck-26' | 'volume-ltl'

The type of equipment used for the transport of the shipment.

direction'inbound' | 'outbound' | 'third-party'

The direction of the the shipment (based on the locations setup for the account).

glCodestring

The GL (General Ledger) code assigned to the shipment for accounting purposes.

quotedBystring

The name of the user who quoted the shipment.

shipmentQuotePageUrlstring

A direct link to access all of the quotes for this shipment within Freightview.

Example response

{
  "quotes": [
    {
      "expirationDate": "2021-03-01"
    }
  ],
  "locations": [
    {
      "postalCode": "10111",
      "country": "us",
      "shipType": "business dock",
      "stopDate": "2021-03-01",
      "accessorials": [
        {
          "opensAt": "15:30",
          "closesAt": "15:30"
        }
      ],
      "opensAt": "15:30",
      "closesAt": "15:30"
    }
  ],
  "billTo": {
    "postalCode": "10111",
    "country": "us",
    "contactPhone": "(555) 555-5555"
  },
  "customsBrokers": [
    {
      "country": "us",
      "phone": "(555) 555-5555",
      "postalCode": "10111"
    }
  ],
  "emergencyContact": {
    "phone": "(555) 555-5555"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.