Search shipments
This endpoint can be used to retrieve shipments from Freightview, via a search query parameter and/or various filters available as query parameters (e.g. status).
Query Parameters
All query parameters that are arrays are serialized in form style (i.e. the query parameter is repeated for each value in the array).
For example, a search for shipments that are in confirmed or delivered status, should be sent like this: https://{baseUrl}/shipments?status=confirmed&status=delivered.
Request
- Base URL: https://api.freightview.dev
- URL: https://api.freightview.dev/v2.0/shipments
- Auth: OAuth 2 (client credentials, token URL /v2.0/auth/token)
Query parameters
- If search results exceed 20 shipments, then a continuationToken value will be returned in the response body.
- Pass the continuationToken returned in the response body as a query parameter to retrieve the next set of results.
- If continuationToken is not present, then no further results are available.
Search Freightview for shipments with this value.
Examples of searches:
- PRO number - 123456789
- Tracking number - 1Z999999999999999
- Shipment reference number - PO#123456
- Bill of Lading number - 7654321
- Location company name - ACME Corporation
- Location city name - Chicago
- Location postal code - 60601
Search shipments by their current audit status.
- outstanding - Invoice balance is fully outstanding
- accepted - Payment has been approved
- disputed - Invoiced amount is in dispute
- archived - Invoice has been remitted for payment
A shipment can have multiple audit statuses. For example, when partial payment for an invoice has been approved while still disputing the remaining balance.
Start of delivery date range (for searching shipments by delivery date range).
End of delivery date range (for searching shipments by delivery date range).
Start of booked date range (for searching shipments by booked date range).
End of booked date range (for searching shipments by booked date range).
Start of created date range (for searching shipments by created date range).
End of created date range (for searching shipments by created date range).
The direction of the the shipment (based on the locations setup for the account).
The shipment equipment type key. This can be repeated to search for multiple equipment types.
Example: equipmentType=dry-van-53&equipmentType=flatbed-53
A flag to indicate whether the shipment has been archived in Freightview.
A flag to indicate whether the freight charges for the shipment are being paid by the party creating the shipment. Also known as "customer routed" freight.
- true - The freight charges for the shipment will not be paid by the party setting up the shipment.
- false - The freight charges for the shipment will be paid by the party setting up the shipment.
A flag that indicates whether another carrier will be used to provide a portion of the transport for the shipment.
The mode of transport used for the shipment.
Start of pickup date range (for searching shipments by pickup date range).
End of pickup date range (for searching shipments by pickup date range).
The method for the pricing.
- contracted - The pricing is based on customer's contract with the carrier.
- capacity - The pricing is based on the carrier's current capacity in a given lane. (e.g. a spot quote).
The type of pricing.
- pending - Shipment has been created.
- awarded - Shipment has been awarded to a carrier.
- confirmed - Shipment has been confirmed by carrier.
- picked-up - Shipment has been picked up.
- delivered - Shipment has been delivered.
- canceled - Shipment has been canceled by the shipper.
[ "pending", "awarded" ]
The Bill of Lading number for the shipment.
A reference number associated with the shipment.
The tracking or PRO number for the shipment.
The pickup confirmation number for the shipment.
Filter shipments by account locationId(s). Use the account locations endpoint to retrieve valid locationId values.
Filter shipments by carrierId(s). Use the account carriers endpoint to retrieve valid carrierId values.
Filter shipments by the userId(s) who quoted the shipment. Use the account users endpoint to retrieve valid userId values.
Filter shipments by the userId(s) who booked the shipment. Use the account users endpoint to retrieve valid userId values.
Filter shipments by origin account location ID(s). Use the account locations endpoint to retrieve valid locationId values.
Filter shipments by origin city name(s).
Filter shipments by origin state code(s).
Filter shipments by origin postal code(s).
Filter shipments by destination account location ID(s). Use the account locations endpoint to retrieve valid locationId values.
Filter shipments by destination city name(s).
Filter shipments by destination state code(s).
Filter shipments by destination postal code(s).
Response
Success
Example response
{
"shipments": [
{
"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"
},
"equipment": {
"declaredValueCurrency": "usd"
},
"customsBroker": {
"country": "us",
"phone": "(555) 555-5555",
"postalCode": "10111"
},
"customsBrokers": [
{
"country": "us",
"phone": "(555) 555-5555",
"postalCode": "10111"
}
],
"emergencyContact": {
"phone": "(555) 555-5555"
},
"items": [
{
"customsValueCurrency": "usd",
"declaredValueCurrency": "usd",
"type": "pallet",
"contains": [
{
"customsValueCurrency": "usd",
"declaredValueCurrency": "usd"
}
]
}
],
"selectedQuote": {
"expirationDate": "2021-03-01"
},
"tracking": {
"deliveryDateEstimate": "2021-03-01",
"items": [
{
"deliveryDateEstimate": "2021-03-01"
}
]
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.