Skip to content

Declared FEC — by brand product id
deprecated

Request

Call by: brandProductId — the Fairly Made brand product id (UUID v4) from the 201 response of POST /brand-products.

Returns the declared French Environmental Cost (FEC) published for the matching brand product.

This is the customer-facing declared FEC (government platform publication), distinct from the calculated FEC returned by GET /calculated-french-environmental-cost/....

Requires a Customer API bearer token. Your registry customer scope is resolved from the token.

Error responses use a dedicated JSON shape: machine-readable codes are returned in details[].reason.

Path
brandProductIdstring, (uuid)required

Brand product id (UUID v4). Use the id from the 201 response of POST /brand-products.

curl -i -X GET \
  'https://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/declared-french-environmental-cost/{brandProductId}'

Responses

Declared FEC available for this brand product.

Bodyapplication/json
scoringobject(DeclaredFrenchEnvironmentalCostScoring)

Declared FEC score breakdown.

publishedFrenchEnvironmentalCostnumber

Declared FEC score published on the government platform.

publishedFrenchEnvironmentalCostPerUnitWeightnumber

Declared FEC per unit weight (g).

pictogramstring, (uri)

URL of the published FEC pictogram.

isPublishedOnGovernmentPlatformboolean

Whether the FEC has been published on the government platform.

governmentPlatformPublicationDatestring or null, (date-time)

Publication date on the government platform, when available.

calculatedAtstring, (date-time)required

Timestamp of the declared FEC record.

Response
{ "scoring": { "brandScore": 0, "productScore": 0, "frenchEnvironmentalCost": 0 }, "publishedFrenchEnvironmentalCost": 0, "publishedFrenchEnvironmentalCostPerUnitWeight": 0, "pictogram": "http://example.com", "isPublishedOnGovernmentPlatform": true, "governmentPlatformPublicationDate": "2019-08-24T14:15:22Z", "calculatedAt": "2019-08-24T14:15:22Z" }