Entity relationships
Nectar organizes utility data in a hierarchical structure:Entity definitions
Data processing behavior
When a document enters Nectar, it moves through an external lifecycle: Key behaviors:- Core bill fields, usage data, and line items are extracted from source documents.
- Meter/account/site associations are applied to organize data in the API model.
- Validation checks run before data is published to improve quality and consistency.
- Electricity demand values are included when present in source documents.
Key data fields
Document
UsageData
Meter
Calendarization algorithm
Nectar converts billing period data to calendar months using daily proration:- Inclusive date counting: Both start and end dates are included (closed interval)
- Computed at query time: Raw data preserved; calendarization applied dynamically
- Net metering exports: Export meters multiply by -1 during aggregation
Cost attribution algorithm
For multi-meter bills, charges are allocated proportionally by usage:- Uses new charges (excludes carried balance) to prevent double-counting
- Demand charges allocated specifically to demand meters
- Currency preserved (no automatic conversion)
Annotations and computed fields
Several fields are computed at query time rather than stored:Next steps
Document processing details
Document-processing behavior and expected outputs
Meter organization
Meter, account, and site relationships