Skip to main content
Delivery Emissions provides an optional, educational Well-to-Wheel estimate. An estimate is not environmental impact by itself and is not required to confirm a contribution.

Operations

  • POST {baseUrl}/v1/emissions/estimates creates an estimate.
  • GET {baseUrl}/v1/emissions/estimates/{calculation_id} retrieves an estimate.
  • POST {baseUrl}/v1/impact-transactions/{transaction_id}/emissions-associations associates an estimate with a confirmed contribution.
Idempotency-Key is required when creating an estimate or association.

Calculation rules

Supported vehicle categories are:
  • motorcycle_gasoline
  • car_gasoline
Distance must satisfy 0 < distance_km <= 200 and may have no more than three decimal places. The Well-to-Wheel factors are:
  • motorcycle_gasoline: 143.23 gCO2e/km
  • car_gasoline: 207.51 gCO2e/km
The calculation is estimated_emissions_kgco2e = raw_emissions_gco2e / 1000. Display values use two decimals with round-half-up. Values below 0.01 are shown as <0.01, never 0.00.

Create an estimate

Send this JSON to POST {baseUrl}/v1/emissions/estimates:
A calculated estimate returns HTTP 201:

Associate an estimate

Unassociated estimates expire after 24 hours. After association, the immutable link snapshot is authoritative.
A successful late association returns HTTP 201:
Association failure is non-fatal: the contribution remains confirmed, and the partner must not restore points.