Skip to main content

Shipping by Truck

POST /estimates/shipping-road

Parametertyperequireddefaultdescription
shipmentMassMasstrueMass of the shipment.
vehicleTypeVehicleTypetrueType of the truck.
countryStringtrueCountry of the shipment.
fuelTypeRoadFuelTypefalseFuel type of the vessel.
loadCharacteristicsLoadCharacteristicsfalseLoad characteristics of the shipment.
isTemperatureControlledBooleanfalsefalseWhether the shipment is temperature controlled.
distanceDistancetrue send places if distance is missingDistance of the shipment.
places[Address,Address]true send distance if places is missingTwo addresses for the shipment.

Return type

Parametertypedescription
idIDID of the estimate
responseMassTotal WTW (well-to-wheel) emissions in tCO2e
Create an estimate
curl -X "POST" "https://www.erguvan.co/api/estimates/shipping-road-v2" \
-H 'Authorization: Bearer YOUR_ERGUVAN_API_KEY' \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"shipmentMass": {
"amount": 15,
"unit": "t"
},
"vehicleType": "urban_truck",
"country": "TR",
"distance": {
"amount": 300,
"unit": "km"
}
}'