Retrieves a list of product carbon footprints.
Operation description
This operation returns a list of product or supply chain carbon footprints that match the specified criteria. You can specify parameters such as the enterprise code, page number, and page size. The returned list includes information such as the product name and product ID. The product ID is used as an input parameter in other API operations to retrieve the results for the corresponding product.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:GetFootprintList |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/carbon/footprint/product/list 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 |
| currentPage |
integer |
Yes |
The paging parameter. This is the page number. The value starts from 1. |
1 |
| pageSize |
integer |
Yes |
The page size. |
10 |
| 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 |
|||
| requestId |
string |
The request ID. Each request has a unique ID. This helps with troubleshooting. |
06DA2909-7736-5738-AA31-ACD617D828F1 |
| data |
object |
The returned data. |
|
| currentPage |
integer |
The current page number. |
1 |
| pageSize |
integer |
The page size. |
10 |
| records |
array<object> |
A list of product details. |
|
|
object |
The product information struct. |
||
| id |
integer |
The product ID. |
1024 |
| name |
string |
The product name. |
演示产品 |
| authStatus |
integer |
The enumeration value for the certification status. For more information, see the appendix. |
1 |
| amount |
number |
The product quantity. |
100.0000000000000000000000000 |
| checkStartTime |
string |
The start time of the calculation. |
2024/01/01 |
| checkEndTime |
string |
The end time of the calculation. |
2024/01/31 |
| createdBy |
string |
The creator. |
Energy Expert |
| code |
string |
The code of the enterprise to which the product belongs. |
C-20080808-1 |
| isDemoModel |
integer |
Indicates whether the model is a demo model. A value of 1 means yes. A value of 0 means no. A true value indicates a system-built demo model. |
1 |
| lifeCycle |
string |
The text description that corresponds to the lifeCycleType. The value can be |
从摇篮到大门 |
| lifeCycleType |
integer |
A value of 1 indicates cradle-to-gate. A value of 2 indicates cradle-to-grave. |
1 |
| type |
string |
The enumeration value for the product category. For more information, see the appendix. |
158-159 |
| unit |
string |
The enumeration value for the unit. For more information, see the appendix. |
1-4 |
| total |
integer |
The total number of records. |
21 |
| totalPage |
integer |
The total number of pages. |
3 |
Examples
Success response
JSON format
{
"requestId": "06DA2909-7736-5738-AA31-ACD617D828F1",
"data": {
"currentPage": 1,
"pageSize": 10,
"records": [
{
"id": 1024,
"name": "演示产品",
"authStatus": 1,
"amount": 100,
"checkStartTime": "2024/01/01",
"checkEndTime": "2024/01/31",
"createdBy": "Energy Expert",
"code": "C-20080808-1",
"isDemoModel": 1,
"lifeCycle": "从摇篮到大门",
"lifeCycleType": 1,
"type": "158-159",
"unit": "1-4"
}
],
"total": 21,
"totalPage": 3
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.