Used to obtain the carbon emission composition analysis of a specified product. Carbon emission composition analysis includes two analysis dimensions: inventory and type. In the rendering effect, including a hierarchical list and pie chart.
Operation description
Used to obtain the carbon emission composition analysis of a specified product. Carbon emission composition analysis includes two analysis dimensions: inventory and type. In the rendering effect, including a hierarchical list and pie chart.
Debugging
Authorization information
Request syntax
POST /api/v1/carbon/footprint/result/gwp/inventory/constitute
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
body | object | No | Request parameters. | |
code | string | Yes | The enterprise code. | C-20080808-1 |
productId | long | Yes | The product id. | 1024 |
productType | long | Yes | Product type: 1 indicates that the carbon footprint of the product is requested, and 5 indicates that the carbon footprint of the supply chain is requested. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"requestId": "06DA2909-7736-5738-AA31-ACD617D828F1",
"data": {
"name": "This is not used for displaying",
"unit": "kgCO₂e/t",
"carbonEmission": 1009.97626554,
"byResourceType": [
{
"percent": 100,
"resourceType": 1,
"unit": "kgCO₂e/kg",
"carbonEmission": 1009.97626554,
"name": "Acquisition of Raw Materials",
"byResourceType": [
{
"name": "Energy",
"unit": "kgCO₂e/Piece(s)",
"resourceType": 1,
"carbonEmission": 1009.97626554,
"percent": "98.76"
}
],
"items": [
{
"percent": 100,
"resourceType": 1,
"unit": "kgCO₂e/kg",
"carbonEmission": 1009.97626554,
"name": "Acquisition of Raw Materials",
"byResourceType": [
{
"name": "Energy",
"unit": "kgCO₂e/Piece(s)",
"resourceType": 1,
"carbonEmission": 1009.97626554,
"percent": "98.76"
}
],
"items": [
{
"percent": 100,
"resourceType": 1,
"unit": "kgCO₂e/kg",
"carbonEmission": 1009.97626554,
"name": "Acquisition of Raw Materials",
"byResourceType": [
{
"name": "Energy",
"unit": "kgCO₂e/Piece(s)",
"resourceType": 1,
"carbonEmission": 1009.97626554,
"percent": "98.76"
}
],
"items": []
}
]
}
]
}
],
"items": []
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-04-01 | The response structure of the API has changed | View Change Details |