Shipping by Truck
POST /estimates/shipping-road
Parameter | type | required | default | description |
---|---|---|---|---|
shipmentMass | Mass | true | Mass of the shipment. | |
vehicleType | VehicleType | true | Type of the truck. | |
country | String | true | Country of the shipment. | |
fuelType | RoadFuelType | false | Fuel type of the vessel. | |
loadCharacteristics | LoadCharacteristics | false | Load characteristics of the shipment. | |
isTemperatureControlled | Boolean | false | false | Whether the shipment is temperature controlled. |
distance | Distance | true send places if distance is missing | Distance of the shipment. | |
places | [Address,Address] | true send distance if places is missing | Two addresses for the shipment. |
Return type
Parameter | type | description |
---|---|---|
id | ID | ID of the estimate |
response | Mass | Total 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"
}
}'