Calculate Economy Tariff Schema

NameData TypeDescription
distrubutionChargeCollectionCollection of distribution charges
demandChargeCollectionCollection of demand charges
energyChargeCollectionCollection of energy charges
customerChargeCollectionCollection of customer charges
operatorIdIntegerInternal id for the operator that this tariff belongs to

Charge Collections

NameData TypeDescription
monthIntegerMonth of calculations
yearIntegerYear of calculations
tariffEnergyChargesStringTariff energy charges
chargeRangeCollectionCollection of charge ranges

Charge Ranges

NameData TypeDescription
blockFactorIntegerBlock factor of the charge
costFloatCost of the charge tier
percentageInteger
fromIntegerTier starting amount
toIntegerTier ending amount
{
  "distributionCharge": [                            Collection of distribution charges
    {
      "month": 12,                                   Month of calculations
      "year": 2022,                                  Year of calculations
      "tariffEnergyCharges": "",                     Tariff energy charges
      "chargeRange": [                               Collection of charge ranges
        {
          "blockFactor": 0,                          Block factor of the charge
          "cost": 0.01709,                           Cost of the charge tier
          "percentage": 0,                           ...
          "from": 0,                                 Tier starting amount
          "to": 0                                    Tier ending amount
        }
      ]
    }
  ],
  "demandCharge": [                                  Collection of demand charges
    {
      "month": 12,                                   Month of calculations
      "year": 2022,                                  Year of calculations
      "tariffEnergyCharges": "",                     Tariff energy charges
      "chargeRange": [                               Collection of charge ranges
        {
          "blockFactor": 0,                          Block factor of the charge
          "cost": 11.88778,                          Cost of the charge tier
          "percentage": 0,                           ...
          "from": 0,                                 Tier starting amount
          "to": 0                                    Tier ending amount
        },
        ...
      ]
    }
  ],
  "energyCharge": [                                  Collection of energy charges
    {
      "month": 12,                                   Month of calculations
      "year": 2022,                                  Year of calculations
      "tariffEnergyCharges": "",                     Tariff energy charges
      "chargeRange": [                               Collection of charge ranges
        {
          "blockFactor": 0,                          Block factor of the charge
          "cost": 0.2051,                            Cost of the charge tier
          "percentage": 0,                           ...
          "from": 0,                                 Tier starting amount
          "to": 0                                    Tier ending amount
        }
      ]
    }
  ],
  "customerCharge": [                                Collection of customer charges
    {
      "month": 12,                                   Month of calculations
      "year": 2022,                                  Year of calculations
      "tariffEnergyCharges": "",                     Tariff energy charges
      "chargeRange": [                               Collection of charge ranges
        {
          "blockFactor": 0,                          Block factor of the charge
          "cost": 155.2755,                          Cost of the charge tier
          "percentage": 0,                           ...
          "from": 0,                                 Tier starting amount
          "to": 0                                    Tier ending amount
        }
      ]
    }
  ],
  "operatorId": 10                                   Internal id for the operator that this tariff belongs to
}

rev 1.0 2023-02-13