Logistics API
The Logistics API allows you to calculate, track, and report CO2e emissions for freight transport operations. Following the ISO 14083 standard, it provides accurate Well-to-Wheel (WTW) emissions calculations for road, rail, maritime, and air transport.New API: This endpoint is part of the new API architecture with improved design and maintainability.
Key Features
- ISO 14083 Compliant: Calculations follow the international standard for transport emissions
- Multiple Transport Modes: Support for road, rail, maritime, and air freight
- Flexible Distance Input: Provide addresses for automatic calculation or direct distance values
- Hub Integration: Use registered logistics hubs as origin/destination points
- Package Tracking: Track emissions across multi-leg shipments with package aggregation
- High-Volume Processing: Bulk endpoint for processing up to 5,000 records per request
- Client Segmentation: Track emissions by client for reporting and billing
Authentication
All endpoints require authentication using:- API Key: Include in
x-api-keyheader
Headers
All requests must include:string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faAvailable Endpoints
Get Summary
Get counts and last updated timestamps
Get Vehicle Types (TOCs)
List available Transport Operation Categories
List Clients
Get all unique client identifiers
Generate Report
Generate ISO 14083 emissions report
Create Request
Calculate emissions for a single shipment
Create Requests (Bulk)
Process up to 5,000 shipments in one request
List Requests
Retrieve logistics requests with pagination
Delete Request
Delete a single shipment request
Batch Delete Requests
Delete multiple shipment requests at once
Create Recharge
Create a single fuel consumption record
Create Recharges (Bulk)
Create up to 5,000 fuel consumption records
List Recharges
Retrieve fuel consumption records with filters
Delete Recharge
Delete a single fuel consumption record
Batch Delete Recharges
Delete multiple fuel consumption records at once
List Packages
Get packages with aggregated emissions
Get Package
Get a specific package with all its legs
Core Concepts
Transport Operation Categories (TOCs)
ISO 14083 defines standard vehicle categories for emissions calculation:Well-to-Wheel (WTW) Methodology
Emissions include the complete fuel cycle:- WTT (Well-to-Tank): Fuel extraction, refining, and distribution
- TTW (Tank-to-Wheel): Direct combustion emissions
Distance Calculation
When you provideorigin and destination addresses instead of a direct distance_km value, Dcycle automatically calculates the route distance. The method depends on the transport mode:
After the raw distance is obtained, a Distance Adjustment Factor (DAF) is applied to align with ISO 14083 methodology:
Calculated distances are cached per route and transport mode. Submitting the same origin/destination pair again returns the cached result instantly without calling any external API.
Packages and Legs
- Leg: A single transport segment (origin → destination)
- Package: A tracked item that may travel through multiple legs
- Package Key: Unique identifier linking legs to a package
Workflow
Single Shipment Calculation
Bulk Processing
For high-volume operations (e.g., daily batch uploads):Multi-leg Package Tracking
Track a package through its journey:Request Attributes
Location Input
You can specify locations in two ways: Option 1: Addresses (auto-calculate distance)Load Specification
- load (
number): Cargo weight/quantity - load_unit (
string):kg,ton,pallets,teu,feu - load_factor (
number): Multiplier 0-1 (e.g., 0.5 for half load)
Vehicle Selection
- toc (
string): Specific vehicle type (e.g.,van_diesel,rigid_diesel) - category (
string): General category if TOC unknown (road,rail,maritime,air)
Traceability
- movement_id (
string): Unique shipment identifier - client (
string): Client/customer code - shipment_date (
date): Date of shipment - package_key (
string): Package identifier for multi-leg tracking
Response Format
Logistics Request Object
Package Object
Error Handling
Common HTTP Status Codes
Error Response Format
Common Validation Errors
Use Cases
Logistics Provider Daily Upload
Process daily shipment data:Client Emissions Report
Generate emissions report for a specific client:GHG Protocol Context
Logistics emissions typically fall under Scope 3 of the GHG Protocol:- Category 4: Upstream Transportation and Distribution
- Category 9: Downstream Transportation and Distribution
- Category 4: Transport paid by your organization (inbound logistics)
- Category 9: Transport paid by customers (outbound logistics)
Related Documentation
Authentication Guide
Learn how to get your API key
Logistics Tutorial
Step-by-step guide to logistics emissions
Vehicles API
Manage fleet vehicles and their emissions
Business Travels API
Track employee travel emissions
MCP Tools
Query logistics data from AI assistants via MCP
Rate Limiting
API requests are subject to rate limiting:X-RateLimit-Limit: Maximum requests per minuteX-RateLimit-Remaining: Requests remainingX-RateLimit-Reset: Unix timestamp when limit resets