Skip to main content
Learn how to send your shipments to Dcycle and read their ISO 14083 emissions back, with the v2 logistics endpoints.
Estimated time: 20 minutesWhat you’ll learn:
  • Pick the vehicle type (TOC) of each leg
  • Register the hubs your legs leave from
  • Send legs in batches and follow the ingest job
  • Read the emissions per package

Prerequisites

Before starting, ensure you have:
  • A Dcycle API key and your organization id (get them here). Send the key in x-api-key, not in Authorization: Bearer.
  • Basic knowledge of Python
  • Shipment data per leg: origin, destination (or the distance), load, vehicle type, date, and whether a subcontractor or your own fleet moved it
Using the Dcycle App?You can also track logistics emissions through our web interface:

Understanding Transport Emissions

Logistics emissions are typically Scope 3 (upstream or downstream transportation in your value chain).

ISO 14083 Standard

Dcycle follows ISO 14083, the international standard for quantifying and reporting GHG emissions from transport operations. Key features:
  • Well-to-Wheel (WTW) methodology: Includes fuel production + vehicle operation
  • Distance-based calculation: Accurate route distance with geocoding
  • Load factor consideration: Accounts for vehicle capacity utilization
  • Multi-modal support: Road, rail, sea, air, and intermodal transport

Transport Calculation Flow

WTW (Well-to-Wheel) Breakdown

1

WTT (Well-to-Tank)

Upstream emissions: fuel extraction, refining, and distribution
2

TTW (Tank-to-Wheel)

Direct emissions: fuel combustion in the vehicle
3

Total WTW

Complete footprint: WTT + TTW

Legs and packages

  • A leg is one transport segment, from an origin to a destination, by one vehicle type.
  • A package groups the legs that carry the same item (same package_key); its totals add up its legs.
  • Who moved the leg matters: a subcontracted leg is calculated with its vehicle type’s well-to-wheel factor (for an electric vehicle, the grid factor of its origin country); an own-fleet leg with your organization’s recharges.
The examples below share this setup:

Step 1: Pick the vehicle type (TOC)

Each leg names its Transport Operation Category in toc. List them with List TOCs and copy the toc value exactly:
If you do not know the vehicle, send category (road, rail, maritime or air) instead of toc: the leg is calculated with that category’s generic average.

Step 2: Register your hubs (optional)

If your legs leave from your warehouses or from third-party hubs, create the hubs first with Create Logistic Hubs (v2). A leg then references its hub by hub_name (or hub_id) and takes the hub’s address as its origin. Legs never create hubs.

Step 3: Send the legs

Send up to 5,000 legs per request with Create Logistics Requests (v2). The batch is all or nothing: if any record is invalid, nothing is written and the 422 lists every invalid record.
Sending a leg again with the same movement_id, movement_stretch, movement_stage, client and package_key replaces it. How the fields are read lists the values that are accepted but change the result, such as an unknown load_unit.

Step 4: Wait for the job

Subscribe a webhook endpoint to ingest_job.finished, or poll the job:
A failed leg stays stored without emissions; Why a leg failed to calculate says how to fix each error_code. Fix it and send the leg again.

Step 5: Read the emissions per package

Get the packages’ Dcycle ids from List Packages, filtered by your package_key, then read up to 100 at a time with Get Logistics Packages (v2):
total_co2e is each leg’s tonne-kilometres times its TOC’s well-to-wheel factor, in kg CO₂e. Electric road legs and the cleaning surcharge are not in it yet: see the page.

Next steps