Operation: GetCalculateBillUseV3
Get calculated use details
| Parameter | Description | Type | Location |
|---|---|---|---|
| accountId | ID of the account to receive calculated bill detailsRequired | integer | Path |
| meterId | ID of the meter to receive calculated bill detailsRequired | integer | Path |
| versionId | ID of the calculated bill distribution versionRequired | integer | Path |
Type Reference: CalculatedBillUseResponse
Definition of how a calculated bill will get its use
| Parameter | Description | Type |
|---|---|---|
| readingsFromChannel | ChannelChildWithObservationType | |
| type | ObservationTypeChild | |
| nounId | The identifier for the observation type’s noun | integer |
| nounCode | The observation type’s noun code | string |
| credit | Indicates the type of credit for the observation type. Possible values include: 1 (Credit), 2 (Debit), 3 (Ignore) | integer |
| observationTypeId | The observation type identifier | integer |
| observationTypeCode | The observation type code | string |
| observationTypeInfo | The observation type info | string |
| rule | ObservationRule | |
| observationRuleId | The observation rule identifier | integer |
| observationRuleCode | The observation rule code | string |
| observationRuleInfo | The observation rule info | string |
| channelCode | The channel code Combines observationTypeCode:unitCode:observationMethodCode:observationRuleCode:interval in minutes |
string |
| channelId | The channel identifier | integer |
| interval | The channel interval in seconds. Monthly = 2592000 Weekly = 604800 Daily = 86400 Hourly = 3600 Thirty_Minutes = 1800 Fifteen_Minutes = 900 |
integer |
| readingsFromEsaChannel | EsaChannelChildWithObservationType | |
| esaChannelId | integer | |
| interval | integer | |
| esaChannelInfo | string | |
| type | ObservationTypeChild | |
| nounId | The identifier for the observation type’s noun | integer |
| nounCode | The observation type’s noun code | string |
| credit | Indicates the type of credit for the observation type. Possible values include: 1 (Credit), 2 (Debit), 3 (Ignore) | integer |
| observationTypeId | The observation type identifier | integer |
| observationTypeCode | The observation type code | string |
| observationTypeInfo | The observation type info | string |
| rule | ObservationRule | |
| observationRuleId | The observation rule identifier | integer |
| observationRuleCode | The observation rule code | string |
| observationRuleInfo | The observation rule info | string |
| fixedAmount | Fixed amount per unit to apply during bill calculation | FixedAmountResponse |
| amount | Fixed amount | number |
| unit | UnitChild | |
| unitId | The unit identifier | integer |
| unitCode | The unit code | string |
| unitInfo | The unit info | string |
| copyUseFromMeter | Defines an account and meter whose use or cost will be copied when calculating a bill | CopyFromMeterResponse |
| meter | MeterChild | |
| meterId | The meter identifier | integer |
| meterCode | The meter code | string |
| meterInfo | The meter info | string |
| meterType | MeterTypeChild | |
| meterTypeId | integer | |
| meterTypeCode | string | |
| meterTypeInfo | string | |
| commodity | CommodityChild | |
| commodityId | The commodity identifier Required (defined) | integer |
| commodityCode | The commodity code Required (defined) | string |
| commodityInfo | The commodity info Required (defined) | string |
| commodityIcon | Icon | |
| code | The icon code Must be between 0 and 64 characters Required when Color is set | string |
| color | The icon color Must be between 0 and 32 characters Required when Code is set | string |
| active | Indicates whether the Meter is Active | boolean |
| isCalculatedMeter | Indicates whether the meter is a calculated meter | boolean |
| isEsaCalculatedMeter | Indicates whether the meter is an ESA calculated meter | boolean |
| isSplitParentMeter | Indicates whether the meter is a parent of a split | boolean |
| isSplitChildMeter | Indicates whether the meter is a child of a split | boolean |
| serialNumber | The meter’s current serial number | string |
| percentage | Percentage of use or cost to copy | number |
| useCalculation | Adding/subtracting calculation involving meters and/or meter groups For each type (sum or subtract), expect only one of the properties to be populated (e.g. if SumMeters has values, then SumMeterGroups should not) |
CalculationResponse |
| sum | SumResponse | |
| sumMeters | Meters in this list will have their use or cost added together during the bill calculation | MeterChild [Array] |
| meterId | The meter identifier | integer |
| meterCode | The meter code | string |
| meterInfo | The meter info | string |
| meterType | MeterTypeChild | |
| meterTypeId | integer | |
| meterTypeCode | string | |
| meterTypeInfo | string | |
| commodity | CommodityChild | |
| commodityId | The commodity identifier Required (defined) | integer |
| commodityCode | The commodity code Required (defined) | string |
| commodityInfo | The commodity info Required (defined) | string |
| commodityIcon | Icon | |
| code | The icon code Must be between 0 and 64 characters Required when Color is set | string |
| color | The icon color Must be between 0 and 32 characters Required when Code is set | string |
| active | Indicates whether the Meter is Active | boolean |
| isCalculatedMeter | Indicates whether the meter is a calculated meter | boolean |
| isEsaCalculatedMeter | Indicates whether the meter is an ESA calculated meter | boolean |
| isSplitParentMeter | Indicates whether the meter is a parent of a split | boolean |
| isSplitChildMeter | Indicates whether the meter is a child of a split | boolean |
| serialNumber | The meter’s current serial number | string |
| sumMeterGroups | Distinct meters from these meter groups will have their use or cost added together during the bill calculation | MeterGroupChild [Array] |
| meterGroupId | The meter group identifier | integer |
| meterGroupCode | The meter group code | string |
| meterGroupInfo | The meter group info | string |
| autoGroup | Indicates if this meter group is an autogroup | boolean |
| userDefinedAutoGroup | Indicates if this meter group is an user defined auto group | boolean |
| subtract | SubtractResponse | |
| subtractMeters | Meters in this list will have their use or cost subtracted during bill calculation | MeterChild [Array] |
| meterId | The meter identifier | integer |
| meterCode | The meter code | string |
| meterInfo | The meter info | string |
| meterType | MeterTypeChild | |
| meterTypeId | integer | |
| meterTypeCode | string | |
| meterTypeInfo | string | |
| commodity | CommodityChild | |
| commodityId | The commodity identifier Required (defined) | integer |
| commodityCode | The commodity code Required (defined) | string |
| commodityInfo | The commodity info Required (defined) | string |
| commodityIcon | Icon | |
| code | The icon code Must be between 0 and 64 characters Required when Color is set | string |
| color | The icon color Must be between 0 and 32 characters Required when Code is set | string |
| active | Indicates whether the Meter is Active | boolean |
| isCalculatedMeter | Indicates whether the meter is a calculated meter | boolean |
| isEsaCalculatedMeter | Indicates whether the meter is an ESA calculated meter | boolean |
| isSplitParentMeter | Indicates whether the meter is a parent of a split | boolean |
| isSplitChildMeter | Indicates whether the meter is a child of a split | boolean |
| serialNumber | The meter’s current serial number | string |
| subtractMeterGroups | Distinct meters from these meter groups will have their use or cost subtracted together during the bill calculation | MeterGroupChild [Array] |
| meterGroupId | The meter group identifier | integer |
| meterGroupCode | The meter group code | string |
| meterGroupInfo | The meter group info | string |
| autoGroup | Indicates if this meter group is an autogroup | boolean |
| userDefinedAutoGroup | Indicates if this meter group is an user defined auto group | boolean |
| calendarizedUseCalculation | Adding calendarized calculation involving meters | CalendarizedCalculationResponse |
| calendarizedSum | Addition calculation involving meters | MeterChild [Array] |
| meterId | The meter identifier | integer |
| meterCode | The meter code | string |
| meterInfo | The meter info | string |
| meterType | MeterTypeChild | |
| meterTypeId | integer | |
| meterTypeCode | string | |
| meterTypeInfo | string | |
| commodity | CommodityChild | |
| commodityId | The commodity identifier Required (defined) | integer |
| commodityCode | The commodity code Required (defined) | string |
| commodityInfo | The commodity info Required (defined) | string |
| commodityIcon | Icon | |
| code | The icon code Must be between 0 and 64 characters Required when Color is set | string |
| color | The icon color Must be between 0 and 32 characters Required when Code is set | string |
| active | Indicates whether the Meter is Active | boolean |
| isCalculatedMeter | Indicates whether the meter is a calculated meter | boolean |
| isEsaCalculatedMeter | Indicates whether the meter is an ESA calculated meter | boolean |
| isSplitParentMeter | Indicates whether the meter is a parent of a split | boolean |
| isSplitChildMeter | Indicates whether the meter is a child of a split | boolean |
| serialNumber | The meter’s current serial number | string |
| readingsFromWatticsDataPoint | WatticsDataPointChild | |
| watticsDataPointId | The identifier for a SmartAnalytics (Wattics) meter | integer |
| watticsDataPointInfo | The name for a SmartAnalytics (Wattics) meter | string |
{
"readingsFromChannel": {
"type": {
"nounId": 1,
"nounCode": "string",
"credit": 1,
"observationTypeId": 1,
"observationTypeCode": "string",
"observationTypeInfo": "string"
},
"rule": {
"observationRuleId": 1,
"observationRuleCode": "string",
"observationRuleInfo": "string"
},
"channelCode": "string",
"channelId": 1,
"interval": 1
},
"readingsFromEsaChannel": {
"esaChannelId": 1,
"interval": 1,
"esaChannelInfo": "string",
"type": {
"nounId": 1,
"nounCode": "string",
"credit": 1,
"observationTypeId": 1,
"observationTypeCode": "string",
"observationTypeInfo": "string"
},
"rule": {
"observationRuleId": 1,
"observationRuleCode": "string",
"observationRuleInfo": "string"
}
},
"fixedAmount": {
"amount": 1.0,
"unit": {
"unitId": 1,
"unitCode": "string",
"unitInfo": "string"
}
},
"copyUseFromMeter": {
"meter": {
"meterId": 1,
"meterCode": "string",
"meterInfo": "string",
"meterType": {
"meterTypeId": 1,
"meterTypeCode": "string",
"meterTypeInfo": "string"
},
"commodity": {
"commodityId": 1,
"commodityCode": "string",
"commodityInfo": "string",
"commodityIcon": {
"code": "string",
"color": "string"
}
},
"active": false,
"isCalculatedMeter": false,
"isEsaCalculatedMeter": false,
"isSplitParentMeter": false,
"isSplitChildMeter": false,
"serialNumber": "string"
},
"percentage": 1.0
},
"useCalculation": {
"sum": {
"sumMeters": [
{
"meterId": 1,
"meterCode": "string",
"meterInfo": "string",
"meterType": {
"meterTypeId": 1,
"meterTypeCode": "string",
"meterTypeInfo": "string"
},
"commodity": {
"commodityId": 1,
"commodityCode": "string",
"commodityInfo": "string",
"commodityIcon": {
"code": "string",
"color": "string"
}
},
"active": false,
"isCalculatedMeter": false,
"isEsaCalculatedMeter": false,
"isSplitParentMeter": false,
"isSplitChildMeter": false,
"serialNumber": "string"
}
],
"sumMeterGroups": [
{
"meterGroupId": 1,
"meterGroupCode": "string",
"meterGroupInfo": "string",
"autoGroup": false,
"userDefinedAutoGroup": false
}
]
},
"subtract": {
"subtractMeters": [
{
"meterId": 1,
"meterCode": "string",
"meterInfo": "string",
"meterType": {
"meterTypeId": 1,
"meterTypeCode": "string",
"meterTypeInfo": "string"
},
"commodity": {
"commodityId": 1,
"commodityCode": "string",
"commodityInfo": "string",
"commodityIcon": {
"code": "string",
"color": "string"
}
},
"active": false,
"isCalculatedMeter": false,
"isEsaCalculatedMeter": false,
"isSplitParentMeter": false,
"isSplitChildMeter": false,
"serialNumber": "string"
}
],
"subtractMeterGroups": [
{
"meterGroupId": 1,
"meterGroupCode": "string",
"meterGroupInfo": "string",
"autoGroup": false,
"userDefinedAutoGroup": false
}
]
}
},
"calendarizedUseCalculation": {
"calendarizedSum": [
{
"meterId": 1,
"meterCode": "string",
"meterInfo": "string",
"meterType": {
"meterTypeId": 1,
"meterTypeCode": "string",
"meterTypeInfo": "string"
},
"commodity": {
"commodityId": 1,
"commodityCode": "string",
"commodityInfo": "string",
"commodityIcon": {
"code": "string",
"color": "string"
}
},
"active": false,
"isCalculatedMeter": false,
"isEsaCalculatedMeter": false,
"isSplitParentMeter": false,
"isSplitChildMeter": false,
"serialNumber": "string"
}
]
},
"readingsFromWatticsDataPoint": {
"watticsDataPointId": 1,
"watticsDataPointInfo": "string"
}
}