⚠️ Deprecated. These single-product endpoints are deprecated and will be removed in a future version — avoid building new integrations on them.
| Data | Deprecated endpoints | Use instead |
|---|---|---|
| Calculated French Environmental Cost (Coût Environnemental Calculé) | GET /calculated-french-environmental-cost/... | Will be replaced by a list endpoint |
| Life Cycle Assessment (LCA) results | GET /lifecycle-assessment/... | Will be replaced by a list endpoint |
| Declared French Environmental Cost, published on the government platform | GET /declared-french-environmental-cost/{brandProductId} and /by-unique-identifier/... | Declared FEC — all products (list) |
Each data type has two equivalent lookups:
- By unique identifier — your
uniqueIdentifierfromPOST /brand-products - By brand product id — the Fairly Made
brandProductId(UUID v4) from the201response
Call by: uniqueIdentifier — your internal brand product reference (same value as on POST /brand-products).
Returns the calculated French Environmental Cost (FEC / Coût Environnemental Calculé) for the matching brand product.
Requires a Customer API bearer token. Your registry customer scope is resolved from the token.
uniqueIdentifier is not validated as a UUID — any non-empty URL-encoded string is accepted.
Error responses use a dedicated JSON shape: machine-readable codes are returned in details[].reason.
- Mock serverhttps://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/calculated-french-environmental-cost/by-unique-identifier/{uniqueIdentifier}
- Productionhttps://api.fairlymade.com/v3/calculated-french-environmental-cost/by-unique-identifier/{uniqueIdentifier}
- Sandboxhttps://api.sandbox.fairlymade.com/v3/calculated-french-environmental-cost/by-unique-identifier/{uniqueIdentifier}
curl -i -X GET \
'https://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/calculated-french-environmental-cost/by-unique-identifier/{uniqueIdentifier}'Calculated FEC available for this brand product.
FEC score breakdown (AGEC / Ecobalyse methodology).
{ "scoring": { "brandScore": 1.41, "productScore": 2653, "lcaScore": 2102, "ooeuExportScore": 173, "microfibersScore": 378, "malusBonusServiceDuration": 35, "referenceServiceDuration": 85, "frenchEnvironmentalCost": 1882 }, "durabilityCoefficient": 0.9, "pictogram": "https://affichage-environnemental.ecobalyse.beta.gouv.fr/api/image?type=score&score=1882&masse=0.705", "calculatedAt": "2024-11-18T12:50:01.151Z" }