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.
- 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).
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
Example request
{
"origin": {
"shipType": "business dock"
},
"destination": {
"shipType": "business dock"
},
"glCode": "4000-100"
}Response
Created
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.