Ir para o conteúdo
Floweet
Acesso profissional

Fuel and carbon cost of a fleet

A fleet's yearly overspend at the pump by vehicle type, compared with the cheapest brand, and its ETS2 carbon cost from 2028 onwards.

api.floweet.com/v1 · Contract 1.0.0-beta.1 · Beta

This documentation is written in English and French; it is shown to you in English.

Sections · Fleet costs

How much too much does a fleet pay at the pump? Describe it by vehicle type (cars, light commercial vehicles, heavy goods vehicles), with its yearly mileage and the brand where it fills up: the API returns the yearly overspend against the cheapest brand, line by line, and its ETS2 carbon cost from 2028. Nothing is stored.

Good to know

  • The comparison uses this week's national ranking for the chosen fuel (fuel), motorway stations excluded. The reference is the cheapest brand (reference: "cheapest") or the plain average of the six supermarket brands — E.Leclerc, Intermarché, Auchan, Carrefour, Système U, Netto ("supermarkets").
  • currentBrand must be a brand name from the barometer. An unknown brand gives currentPrice: null and no overspend.
  • Amounts are in cents, but the overspend is computed to the euro: 1013800 means €10,138. Prices are in thousandths of a euro per liter.
  • ETS2: assumption of €45 per tonne of CO₂ from 2028 (ets2 states the price used and the cost per liter). replaceFirst names the vehicle type costing the most per vehicle, fuel and carbon included.
  • Pump prices: neither fuel card discounts nor fees are taken into account. Actual savings depend on the contract.

The computation

For each line of the fleet:

liters per year = vehicles × kilometers per year × consumption ÷ 100
overspend per year = liters per year × (current brand price − reference price)

The same computation powers the calculator on the website's Fleets and Sales pages, and the Fleet space of the application.

The FleetCost object

FieldTypeDescription
fuelalways present"gazole" | "sp95-e10" | "sp98" | "e85" | "gpl"
pricesFromalways presentstring (date-time)
pricesToalways presentstring (date-time)
vehiclesalways presentinteger
currentBrandalways presentstring
currentPricealways presentinteger | nullAverage price of the current brand; null if unknown (no overspend computed).
referenceBrandalways presentstring | null
referencePricealways presentinteger | nullPrice in thousandths of a euro per liter (2372 = 2.372 €/L).
linesalways presentobject[]
lines[].typealways present"car" | "lcv" | "hgv"
lines[].vehiclesalways presentinteger
lines[].consumptionL100always presentnumber
lines[].litersPerYearalways presentinteger
lines[].overspendPerYearalways presentintegerCents per year.
lines[].overspendPerVehiclealways presentintegerCents per vehicle per year.
lines[].co2Tonnesalways presentnumber
lines[].ets2PerYearalways presentintegerETS2 carbon cost, cents per year from 2028.
totalalways presentobject
total.litersPerYearalways presentinteger
total.overspendPerYearalways presentinteger
total.co2Tonnesalways presentnumber
total.ets2PerYearalways presentinteger
replaceFirstalways present"car" | "lcv" | "hgv" | nullVehicle type costing the most per vehicle (fuel + ETS2).
ets2always presentobject
ets2.startYearalways presentinteger
ets2.pricePerTonnealways presentintegerCents per tonne of CO2 (hypothesis).
ets2.costPerLiteralways presentintegerThousandths of a euro per liter.
FleetCost
{
  "fuel": "gazole",
  "pricesFrom": "2026-10-19T11:35:43.000Z",
  "pricesTo": "2026-10-26T11:00:00.000Z",
  "vehicles": 15,
  "currentBrand": "Esso",
  "currentPrice": 2428,
  "referenceBrand": "Total Access",
  "referencePrice": 2252,
  "lines": [
    {
      "type": "lcv",
      "vehicles": 12,
      "consumptionL100": 8.5,
      "litersPerYear": 30600,
      "overspendPerYear": 538600,
      "overspendPerVehicle": 44900,
      "co2Tonnes": 75.9,
      "ets2PerYear": 341500
    },
    {
      "type": "hgv",
      "vehicles": 3,
      "consumptionL100": 30,
      "litersPerYear": 27000,
      "overspendPerYear": 475200,
      "overspendPerVehicle": 158400,
      "co2Tonnes": 67,
      "ets2PerYear": 301300
    }
  ],
  "total": {
    "litersPerYear": 57600,
    "overspendPerYear": 1013800,
    "co2Tonnes": 142.8,
    "ets2PerYear": 642800
  },
  "replaceFirst": "hgv",
  "ets2": {
    "startYear": 2028,
    "pricePerTonne": 4500,
    "costPerLiter": 112
  }
}

Yearly fuel overspend of a fleet by vehicle type, and its ETS2 carbon cost from 2028

POST/v1/fleet-costsScope fleet-costs:read

Nothing is stored. Overspend compares the current brand with the cheapest brand (or the supermarket average) of the national barometer, highway stations excluded.

Parameters

FieldInTypeDescription
Idempotency-Keyoptionalheaderstringat most 255 charactersUnique key for this request (a new UUID v4, kept for its retries): the first response is replayed for 24 hours.

Request body FleetInput

FieldTypeDescription
fueloptional"gazole" | "sp95-e10" | "sp98" | "e85" | "gpl"default "gazole"
currentBrandrequiredstring1 to 60 charactersBrand where the fleet fills up today (a brand name of /v1/barometer).
referenceoptional"cheapest" | "supermarkets"default "cheapest"Compare with the cheapest brand or with the supermarket average.
kmPerVehiclerequiredintegerfrom 0 to 500000
linesrequiredobject[]1 to 3 items
lines[].typerequired"car" | "lcv" | "hgv"car, lcv (light commercial vehicle), hgv (heavy goods vehicle).
lines[].vehiclesrequiredintegerfrom 0 to 100000
lines[].consumptionL100requirednumberfrom 0 to 100Liters per 100 km.

Response 200

OK — A FleetCost object

Errors

HTTPMeaning
400Invalid request
401Missing, invalid or revoked API key
403Forbidden (scope, plan or account status)
404Resource not found
429Too many requests
500Internal error
Request
curl -X POST "https://api.floweet.com/v1/fleet-costs" \
  -H "Authorization: Bearer $FLOWEET_API_KEY" \
  -H "Idempotency-Key: 6f1c2b0e-8d4a-4f7e-9a51-3c2d1e0f9b87" \
  -H "Content-Type: application/json" \
  -d '{
  "fuel": "gazole",
  "currentBrand": "Esso",
  "reference": "cheapest",
  "kmPerVehicle": 30000,
  "lines": [
    {
      "type": "lcv",
      "vehicles": 12,
      "consumptionL100": 8.5
    },
    {
      "type": "hgv",
      "vehicles": 3,
      "consumptionL100": 30
    }
  ]
}'
Response 200
{
  "fuel": "gazole",
  "pricesFrom": "2026-10-19T11:35:43.000Z",
  "pricesTo": "2026-10-26T11:00:00.000Z",
  "vehicles": 15,
  "currentBrand": "Esso",
  "currentPrice": 2428,
  "referenceBrand": "Total Access",
  "referencePrice": 2252,
  "lines": [
    {
      "type": "lcv",
      "vehicles": 12,
      "consumptionL100": 8.5,
      "litersPerYear": 30600,
      "overspendPerYear": 538600,
      "overspendPerVehicle": 44900,
      "co2Tonnes": 75.9,
      "ets2PerYear": 341500
    },
    {
      "type": "hgv",
      "vehicles": 3,
      "consumptionL100": 30,
      "litersPerYear": 27000,
      "overspendPerYear": 475200,
      "overspendPerVehicle": 158400,
      "co2Tonnes": 67,
      "ets2PerYear": 301300
    }
  ],
  "total": {
    "litersPerYear": 57600,
    "overspendPerYear": 1013800,
    "co2Tonnes": 142.8,
    "ets2PerYear": 642800
  },
  "replaceFirst": "hgv",
  "ets2": {
    "startYear": 2028,
    "pricePerTonne": 4500,
    "costPerLiter": 112
  }
}