Retrieves the carbon emission composition analysis for a specified product. The analysis provides a breakdown across two dimensions: by checklist and by type. The results are rendered as a hierarchical list and a pie chart.
Operation description
Retrieves the carbon emission composition analysis for a specified product. The analysis provides a breakdown across two dimensions: by checklist and by type. The results are rendered as a hierarchical list and a pie chart.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:GetGwpInventoryConstitute |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/carbon/footprint/result/gwp/inventory/constitute HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Request parameters. |
|
| code |
string |
Yes |
The enterprise code. |
C-20080808-1 |
| productId |
integer |
Yes |
The product ID. |
1024 |
| productType |
integer |
Yes |
The product type. A value of 1 indicates a request for a product carbon footprint. A value of 5 indicates a request for a supply chain carbon footprint. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. Each request has a unique value. You can use this ID to troubleshoot issues. |
06DA2909-7736-5738-AA31-ACD617D828F1 |
| data |
object |
The returned data. |
|
| name |
string |
The meaning of the current hierarchical structure. |
总碳排放量 |
| unit |
string |
The emissions unit. |
kgCO₂e/t |
| carbonEmission |
number |
The amount of emissions. The value can be positive, negative, or 0. To ensure calculation accuracy, the calculation process retains 24 decimal places. For ease of display and use, truncate the value as needed. |
1009.976265540000000000000000000000 |
| byResourceType |
array |
Aggregated by type. This includes the emission details for each type. |
|
| GwpInventoryConstitute |
Used for the 'by type' analysis. This is a two-level nested structure. The top level is Total Carbon Emissions, which is then sorted by checklist type. The byResourceType parameter at the lowest level is empty. |
||
| items |
array |
Organized in a hierarchical structure from the highest level to the lowest level: stage, procedure, and then checklist. |
|
| GwpInventoryConstitute |
Used for the 'by checklist' analysis. This is a nested structure organized by stage, procedure, and checklist level. The items parameter at the lowest level is empty. |
Examples
Success response
JSON format
{
"requestId": "06DA2909-7736-5738-AA31-ACD617D828F1",
"data": {
"name": "总碳排放量",
"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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.