本接口用于获取电力构成分析数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
POST /api/v1/carbon/emission/analysis/elec/constitute HTTP/1.1
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
body | object | 否 | 请求体参数。 | |
code | string | 是 | 企业编码 | C-20240202-01 |
year | integer | 是 | 年份 | 2024 |
返回参数
示例
正常返回示例
JSON
格式
{
"data": {
"water": {
"carbonEmissionData": 2.1,
"rawData": 1.2,
"ratio": 0.4,
"dataUnit": "kWh",
"name": "水电",
"nameKey": "carbonInventory.check.water_electricity"
},
"light": {
"carbonEmissionData": 1.2,
"rawData": 1.2,
"ratio": 0.2,
"dataUnit": "kWh",
"name": "光电",
"nameKey": "carbonInventory.check.light_electricity"
},
"urban": {
"carbonEmissionData": 1.2,
"rawData": 1.2,
"ratio": 0.4,
"dataUnit": "kWh",
"name": "市电",
"nameKey": "carbonInventory.check.urban_electricity"
},
"wind": {
"carbonEmissionData": 1.2,
"rawData": 1.1,
"ratio": 0.3,
"dataUnit": "kWh",
"name": "风电",
"nameKey": "carbonInventory.check.wind_electricity"
},
"nuclear": {
"carbonEmissionData": 2.3,
"rawData": 2,
"ratio": 0.6,
"dataUnit": "kWh",
"name": "核电",
"nameKey": "carbonInventory.check.nuclear_electricity"
},
"renewing": {
"carbonEmissionData": 2.3,
"rawData": 4.3,
"ratio": 0.44,
"dataUnit": "kWh",
"name": "可再生能源电力\n\n",
"nameKey": "carbonInventory.carbonEmissionAnalysis.components.CarbonDetail.keZaiShengZiYuan"
},
"zero": {
"carbonEmissionData": 1.2,
"rawData": 444.3,
"ratio": 0.33,
"dataUnit": "kWh",
"name": "零电",
"nameKey": "carbonInventory.carbonEmissionAnalysis.components.CarbonDetail.lingTanDianLi"
}
},
"requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E"
}
错误码
访问错误中心查看更多错误码。