Energy Contract Parameters
Energy contracts define pricing information for user electricity consumption, supporting yearly, monthly, and spot hourly pricing models.Energy contracts can be linked to a specific building or set at the user level for all buildings.
Required Parameters
User ID that owns this energy contract.Example:
016b78a7-0c7c-4241-a277-015c3ad3cb90Writable: No (set at creation)Contract Information
Building ID this contract applies to. Optional - if not provided, contract applies to all user buildings.Example:
016b78a7-0c7c-4241-a277-015c3ad3cb90Writable: YesID of the electricity meter for this contract.Example:
125328591095Writable: YesName of the energy supplier.Example:
Good Energy CompanyWritable: YesType of energy contract pricing model.Options:
Yearly, Monthly, Spot HourlyExample: Spot HourlyWritable: YesPricing Information
Energy price in currency/kWh. Array of JSON objects with Writable: Yes
price (float) and timestamp (ISO format string).For constant pricing, provide a single entry. For variable pricing, provide multiple entries with timestamps.Example:Currency of the energy price in ISO 4217 format. Required when providing hourly energy prices.Example:
EURWritable: YesFlag indicating whether the provided energy price includes external components such as grid fees and taxes.If
false, wholesale spot price is assumed.Example: trueWritable: YesUsage Examples
Create Contract with Yearly Fixed Price
Create Contract with Spot Hourly Pricing
Update Energy Prices
Contract Types Explained
Yearly Fixed Price
Yearly Fixed Price
A single fixed price that applies for the entire year. Provide one price entry with the start date of the contract period.Best for: Customers with fixed-rate annual contracts.
Monthly Fixed Price
Monthly Fixed Price
A fixed price that may change monthly. Provide one price entry per month with the effective date.Best for: Customers with contracts that adjust monthly based on market conditions.
Spot Hourly Pricing
Spot Hourly Pricing
Variable pricing that changes hourly based on wholesale spot prices. Provide 24 price entries per day.Best for: Customers with dynamic pricing contracts who want to optimize consumption based on real-time prices.
Spot hourly pricing enables the most effective optimization by shifting energy-intensive operations to low-cost hours.
Best Practices
Price Updates
Price Updates
- Update spot hourly prices daily or as frequently as your data source provides
- For yearly/monthly contracts, update when price changes are known
- Always provide timestamps in ISO 8601 format with timezone
- Include all 24 hours when updating spot hourly prices
External Components
External Components
- Set
energy_price_includes_external_componentstotrueif your price includes grid fees, taxes, and levies - Set to
falseif providing only wholesale spot prices - This affects optimization calculations for self-consumption scenarios
Building Association
Building Association
- Leave
buildingempty for user-level pricing (applies to all buildings) - Set specific
buildingID when a user has multiple properties with different energy contracts - Building-specific contracts override user-level pricing
Currency
Currency
- Always provide
currency_energy_pricein ISO 4217 format (e.g., EUR, USD, GBP) - Ensure all prices for a contract use the same currency
- Currency must match your organization’s configured billing currency
