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:Your API key for authenticationExample:
sk_live_1234567890abcdefYour 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
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:| Category | Examples | Typical Use |
|---|---|---|
road | van, rigid truck, articulated truck | Ground freight |
rail | freight train | Bulk goods, intermodal |
maritime | container ship, bulk carrier | International shipping |
air | cargo aircraft | Express shipments |
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
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
| Status | Meaning | Solution |
|---|---|---|
| 200 | Success | - |
| 400 | Bad Request | Check request parameters |
| 401 | Unauthorized | Verify API key |
| 404 | Not Found | Check organization ID or resource |
| 422 | Validation Error | Review error details |
Error Response Format
Common Validation Errors
| Error | Cause | Solution |
|---|---|---|
TOC not found | Invalid vehicle type | Use /tocs endpoint to get valid options |
Load not found | Missing load and no default | Provide load parameter |
Distance calculation failed | Invalid addresses | Use distance_km directly or fix addresses |
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
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

