Calculate detailed electricity costs for multiple component types with enhanced precision
/calculate-advanced/
endpoint provides enhanced electricity cost calculations with support for multiple component types, Time-of-Use (TOU) pricing, and component-level input control.
Unlike the standard /calculate/
endpoint, this advanced version allows to calculate multiple component types in a single request, and to control the calculation of individual tariff components.
For that reason, the /calculate-advanced/
endpoint is more complex than the standard /calculate/
endpoint, requires more input parameters, and can only be used one tariff at a time.
prezio_code
identifiers from the tariffs endpoint.CALCULATION_INPUT
for usage data and PRICE_PROPERTY
for component configuration.DK
, SE
) for the location to ensure geographic correctness.tar_
prefix (e.g., tar_123
).2025-01-01T00:00:00Z
).KWH
, FIXED
, CAPACITY
, DEMAND
, REACTIVE
, EXCESS
, TAX
. If empty or not provided, all component types will be included.com_
prefix (e.g., ["com_123", "com_456"]
). Only components belonging to the specified tariff are allowed. If not provided, all components (filtered by component_types if specified) will be included.excluded
: Prices exclude VAT (default)included
: VAT included in each componentfalse
(default), charges whole periods that fall within the timeframe. If true
, calculates proportional cost based on actual period duration.CALCULATION_INPUT
PRICE_PROPERTY
context
: Request metadata, location, tariff, period, and currency informationinputs
: Echo of input data with resolved component IDs and confidence scoresresults
: Detailed component calculations with price versions showing rate breakdownstotal_price
: Sum of all component pricesRetrieve Tariff Information
/tariffs/{tariff_id}/
endpoint to get calculation_requirements
for available components and their input keys.Prepare Component Inputs
prezio_code
identifiers and required input keys from the tariff data.Make Calculation Request