Getting Started¶
To begin using the Transport Carbon Calculator, follow these steps:
- Contact our support team to obtain an API Key. You can find our contact information contact.
- Include your API Key in the
x-api-key
header of your HTTP requests.
Note
See the API Specifications for more information.
Example Request¶
API_KEY = your-api-key
# Calculates CO2e emission for a single leg.
curl -X 'POST' \
'https://siemens.supplychainsuitedev.net/publicapi/master/demo/tcc/1.0.0/calculate' \
-H 'accept: application/json' \
-H 'x-api-key: API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"legs": [
{
"shipmentId": "2025",
"legId": "1",
"senderLocationId": "2025_PL_41300",
"recipientLocationId": "2025_DE_34127",
"transportMode": "road",
"shipmentDate": "2025-11-11T00:00:00Z",
"distanceKm": null,
"weightKg": 25000,
"volumeCbm": null,
"loadingMeterM": null,
"equipment": null,
"fuelType": null,
"fuelConsumption": null,
"fuelConsumptionUnit": null
}
],
"parameters": [
{
"key": "bEnableTestMode",
"value": "1"
}
],
"locations": [
{
"id": "2025_PL_41300",
"country": "PL",
"postalCode": "41300",
"city": null,
"street": null,
"houseNumber": null,
"latitude": null,
"longitude": null
},
{
"id": "2025_DE_34127",
"country": "DE",
"postalCode": "34127",
"city": null,
"street": null,
"houseNumber": null,
"latitude": null,
"longitude": null
}
]
}'