calculate Emissions for specified Transport
EcoTransIT World REST-API (2025r4.1.4)
This is the complete specification of the EcoTransIT World Rest Api
Please note: in order to try out the API you need to contact our team to get a test account.
Download OpenAPI description
Overview
E-mail
License
Languages
Servers
https://customer-name.ecotransit.org/
Bodyapplication/jsonrequired
The shipmentIds of the loads/unloads of the first transportChainElement will be ommitted because the emissionPercentage for them will always be 0 by definition.
Example: [{"location":{"locationType":"ZIP_CODE","country":"DE","code":20539},"load":[{"cargo":{"unit":"TONS","amount":20}}]},{"location":{"locationType":"ZIP_CODE","country":"DE","code":30167},"unload":[{"cargo":{"unit":"TONS","amount":15},"freightUnitIdentifier":"terminalhannoverCustomerA","listEmissionsInResponse":true},{"cargo":{"unit":"TONS","amount":5},"freightUnitIdentifier":"terminalhannoverCustomerB","listEmissionsInResponse":true}]}]
https://customer-name.ecotransit.org/etw-rest/calculateCollectionAndDelivery
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://customer-name.ecotransit.org/etw-rest/calculateCollectionAndDelivery \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"transportChainElements": [
{
"location": {
"locationType": "ZIP_CODE",
"country": "DE",
"code": 20539
},
"load": [
{
"cargo": {
"unit": "TONS",
"amount": 20
}
}
]
},
{
"location": {
"locationType": "ZIP_CODE",
"country": "DE",
"code": 30167
},
"unload": [
{
"cargo": {
"unit": "TONS",
"amount": 15
},
"freightUnitIdentifier": "terminalhannoverCustomerA",
"listEmissionsInResponse": true
},
{
"cargo": {
"unit": "TONS",
"amount": 5
},
"freightUnitIdentifier": "terminalhannoverCustomerB",
"listEmissionsInResponse": true
}
]
}
],
"settings": {
"showRoute": "true"
}
}'
Successful operation
Note that the emissions for the load/undload elements of the first transportChainElement from the request are not shown in the response because they are always 0 by definition!
List of transport chain elements (TCE) showing the emissions for each leg for the whole freight
Response
application/vnd.ecotransit.app.v2025r2+json
{ "emissionsPerFreightUnit": [ { … } ], "transportOperationCategory": [ { … } ], "kmlFile": "http://example.com" }