Shipping
Calculate cost
Get a cost and transit-time estimate without creating an order. Useful for cart and checkout previews.
POST
/api/shipping/calculate/
Body parameters
origin
Origin location. Object with
zip at minimum.destination
Destination location. Object with
zip at minimum.service_level
Service level code. See Service levels.
wgthrcurbb2bexpitems
Array of items. Each must have weight and cube.
items[].weight
Item weight in pounds.
items[].cube
Item volume in cubic feet.
items[].quantity
Quantity of this item.
curl -X POST https://{licensee-url}/api/shipping/calculate/ \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "origin": { "zip": "30303" }, "destination": { "zip": "78701" }, "service_level": "wg", "items": [ { "weight": 150, "cube": 35, "quantity": 1 } ] }'
{
"cost": {
"total": 325.50,
"currency": "USD",
"breakdown": {
"linehaul": 220.00,
"service_premium": 85.00,
"fuel_surcharge": 20.50
}
},
"transit": {
"min_days": 5,
"max_days": 8,
"earliest_delivery": "2026-05-19"
}
}
Try it out
Response will appear here
Errors
| Status | error.code | Cause |
|---|---|---|
| 422 | zip_not_covered | Destination ZIP is not in the coverage network for this service level. |
| 422 | items_required | At least one item with weight and cube must be provided. |