This operation retrieves the total carbon footprint of a product and provides details about its top four contributors.
Operation description
This operation retrieves the total carbon footprint for a specified product ID. It also provides details about the top four contributors to the carbon footprint. You can use this operation to understand the total carbon footprint of a product and identify its main sources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:GetGwpInventorySummary |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/carbon/footprint/result/gwp/inventory/summary HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| code |
string |
Yes |
The enterprise code. |
C-20080808-1 |
| productId |
integer |
Yes |
The product ID. |
1024 |
| productType |
integer |
Yes |
The product type. `1`: product carbon footprint. `5`: supply chain carbon footprint. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The unique ID of the request. Use this ID to troubleshoot issues. |
83A5A7DD-8974-5769-952E-590A97BEA34E |
| data |
object |
The returned data. |
|
| unit |
string |
The unit of emissions. |
tCO₂e/Piece(s) |
| quantity |
number |
The quantity. |
1.0100 |
| resultGenerateTime |
integer |
The time when the result was generated. The value is a UNIX timestamp in milliseconds. |
1709108026000 |
| items |
array<object> |
Details of the top four contributors to the carbon footprint. |
|
|
object |
|||
| name |
string |
The name of the inventory type. |
电力清单 |
| unit |
string |
The unit. |
kgCO₂e/Piece(s) |
| quantity |
number |
The quantity. |
9.9763 |
| percent |
string |
The percentage. |
99.01 |
Examples
Success response
JSON format
{
"requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E",
"data": {
"unit": "tCO₂e/Piece(s)",
"quantity": 1.01,
"resultGenerateTime": 1709108026000,
"items": [
{
"name": "电力清单",
"unit": "kgCO₂e/Piece(s)",
"quantity": 9.9763,
"percent": "99.01"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.