post
https://api.genability.com/rest/v1/ondemand/calculate
Run one on-demand cost calculation for a tariff, date range, and calculation inputs.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Use this endpoint to run one on-demand cost calculation for a tariff, date range, and calculation inputs.
When to use this endpoint
Use POST /rest/v1/ondemand/calculate when you need to:
- Calculate the cost of service for one tariff and one calculation scenario.
- Reproduce a historical bill using tariff and usage inputs.
- Run a month-to-date forecast or a what-if calculation.
- Pass usage, demand, applicability, or quantity inputs through
propertyInputs. - Override or add rates for a calculation with
rateInputs.
Required inputs
| Parameter | Type | Description |
|---|---|---|
masterTariffId | Long | Unique Arcadia ID for the master tariff to calculate. |
fromDateTime | DateTime | Starting date and time for the calculation. |
toDateTime | DateTime | Ending date and time for the calculation. |
Common optional inputs
| Parameter | Type | Description |
|---|---|---|
propertyInputs | Array of PropertyData | Usage data, demand values, applicability criteria, or other calculation inputs. |
billingPeriod | Boolean | Set to true when the calculation dates represent an actual billing cycle. Defaults to false. |
detailLevel | Enumeration | Controls the level of detail returned in calculation results. Defaults to ALL. |
groupBy | Enumeration | Controls how calculation details are grouped. Defaults to the natural grouping for the rates. |
minimums | Boolean | Enables enforcing minimum charges. Defaults to false. |
excludeChargeClass | String | Excludes one or more charge classes from the calculation results. |
zipCode | String | Optional location input, usually only needed for location-specific data such as baseline regions or utility taxes. |
address | Address | Alternative to zipCode for location-specific calculation behavior. |
tariffEffectiveOn | DateTime | Uses a single specified version of the tariff. |
rateInputs | Array of TariffRate | Overrides or adds rates during the calculation. |
applyUtilityTax | Boolean | Attempts to apply utility tax when location data is provided. |
