POST api/EnergyPrices/PowerUsageProfiles/CalculateUsage
Request Information
Requires Authorization!
Add to HTTP Headers "Authorization" => "Bearer " + access_token from api/User/LoginWithApiKEY?ApiKEY={ApiKEY}
for example: "Authorization" => "Bearer aBc123-D1eF3...rS45q-XyZ879"
URI Parameters
None.
Body Parameters
EnergyPrices_HPFC_PowerUsageProfileQueryModel| Name | Type | Additional information | Description |
|---|---|---|---|
| EnergyPricesType | EnergyPrices_Types |
Required |
|
| UsageProfileId | integer |
Required |
|
| DateFrom | date |
Required |
|
| DateTo | date |
Required |
Request Formats
application/json, text/json
Sample:
{
"EnergyPricesType": 101,
"UsageProfileId": 1,
"DateFrom": "2025-12-06T05:43:36.3076253+01:00",
"DateTo": "2025-12-06T05:43:36.3076253+01:00"
}
application/xml, text/xml
Sample:
<EnergyPrices_HPFC_PowerUsageProfileQueryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Global_classes.BusinessObject.Energy"> <DateFrom>2025-12-06T05:43:36.3076253+01:00</DateFrom> <DateTo>2025-12-06T05:43:36.3076253+01:00</DateTo> <EnergyPricesType>Strom_SLP_EP</EnergyPricesType> <UsageProfileId>1</UsageProfileId> </EnergyPrices_HPFC_PowerUsageProfileQueryModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EnergyPrices_HPFC_PowerUsageProfileResultModel| Name | Type | Additional information | Description |
|---|---|---|---|
| FirstYearUsage | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"FirstYearUsage": 1
}
application/xml, text/xml
Sample:
<EnergyPrices_HPFC_PowerUsageProfileResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Global_classes.BusinessObject.Energy"> <FirstYearUsage>1</FirstYearUsage> </EnergyPrices_HPFC_PowerUsageProfileResultModel>