Skip to main content
POST
/
api
/
v2
/
savings-calculator
Savings calculator
curl --request POST \
  --url https://api.partner.cubee.cz/api/v2/savings-calculator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "periodType": "<string>",
  "totalKWp": 123,
  "battery": {
    "batterySizeKwh": 123,
    "reservedBatteryCapacityPercentage": 50,
    "maximumBatteryChargingPowerWatt": 123,
    "maximumBatteryDischargingPowerWatt": 123
  },
  "distribution": {
    "distributor": "<string>",
    "distributionRate": "<string>",
    "lowTariffCommand": "<string>",
    "distributorFeeHighPerMWh": 123,
    "renewableEnergyFeePerMWh": 123,
    "systemServicesFeePerMWh": 123,
    "circuitBreakerMonthlyFee": 123,
    "distributorFeeLowPerMWh": 123
  },
  "electricityBuyingSettings": {
    "fixedBuyPriceCzkPerMWh": 123,
    "buyingType": "<string>",
    "monthlyFeeCzk": 123,
    "fixedBuyPriceCzkPerMwhInLowTariff": 123,
    "vat": 123
  },
  "yearlyConsumptionKWh": 123,
  "electricitySellingSettings": {
    "fixedSellPriceCzkPerMWh": 123,
    "sellingType": "<string>",
    "monthlyFeeCzk": 123
  },
  "customProductionConsumptionData": [
    {
      "time": "2023-11-07T05:31:56Z",
      "productionWh": 123,
      "consumptionWh": 123
    }
  ]
}
'
{
  "withoutPV": {
    "energyProducedKWh": 123,
    "energyConsumedKWh": 123,
    "energyPurchasedKWh": 123,
    "energySoldKWh": 123,
    "costOfPurchasedEnergy": 123,
    "revenueFromSoldEnergy": 123,
    "netEnergyCost": 123,
    "averagePurchasePricePerMWh": 123,
    "averageSellPricePerMWh": 123
  },
  "basicPV": {
    "energyProducedKWh": 123,
    "energyConsumedKWh": 123,
    "energyPurchasedKWh": 123,
    "energySoldKWh": 123,
    "costOfPurchasedEnergy": 123,
    "revenueFromSoldEnergy": 123,
    "netEnergyCost": 123,
    "averagePurchasePricePerMWh": 123,
    "averageSellPricePerMWh": 123
  },
  "smartPV": {
    "energyProducedKWh": 123,
    "energyConsumedKWh": 123,
    "energyPurchasedKWh": 123,
    "energySoldKWh": 123,
    "costOfPurchasedEnergy": 123,
    "revenueFromSoldEnergy": 123,
    "netEnergyCost": 123,
    "averagePurchasePricePerMWh": 123,
    "averageSellPricePerMWh": 123
  },
  "savingsComparedToBasicPV": 123,
  "months": [
    {
      "withoutPV": {
        "energyProducedKWh": 123,
        "energyConsumedKWh": 123,
        "energyPurchasedKWh": 123,
        "energySoldKWh": 123,
        "costOfPurchasedEnergy": 123,
        "revenueFromSoldEnergy": 123,
        "netEnergyCost": 123,
        "averagePurchasePricePerMWh": 123,
        "averageSellPricePerMWh": 123
      },
      "basicPV": {
        "energyProducedKWh": 123,
        "energyConsumedKWh": 123,
        "energyPurchasedKWh": 123,
        "energySoldKWh": 123,
        "costOfPurchasedEnergy": 123,
        "revenueFromSoldEnergy": 123,
        "netEnergyCost": 123,
        "averagePurchasePricePerMWh": 123,
        "averageSellPricePerMWh": 123
      },
      "smartPV": {
        "energyProducedKWh": 123,
        "energyConsumedKWh": 123,
        "energyPurchasedKWh": 123,
        "energySoldKWh": 123,
        "costOfPurchasedEnergy": 123,
        "revenueFromSoldEnergy": 123,
        "netEnergyCost": 123,
        "averagePurchasePricePerMWh": 123,
        "averageSellPricePerMWh": 123
      },
      "savingsComparedToBasicPV": 123,
      "month": "2023-12-25"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Body

Input model with all available parameters to set.

periodType
string | null
required
totalKWp
number<float>
required
battery
object
required
distribution
object
required
electricityBuyingSettings
FixBuyingSettings · object
required
yearlyConsumptionKWh
number<float>
electricitySellingSettings
FixSellingSettings · object
customProductionConsumptionData
object[] | null

Response

OK

withoutPV
object
basicPV
object
smartPV
object
savingsComparedToBasicPV
number<double>
months
object[] | null