Get Monthly Utility Consumption Action
Query Customer Data Platform calculated insights to retrieve monthly utility consumption data for trend analysis and recommendations.
This action is available in API version 60.0 and later.
The Get Monthly Utility Consumption action is available in Enterprise and Unlimited Editions with Energy and Utilities Cloud. The org must have Data Cloud (Customer Data Platform) enabled with the relevant calculated insight configured.
URI: /services/data/v60.0/actions/standard/getMonthlyUtilityConsumption
Formats: JSON, XML
HTTP Methods: GET
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a variable.
| Input | Type | Description |
|---|---|---|
dataSpaceApiName | string | Optional. API name of the Data Cloud data space. Defaults to Default. |
calculatedInsightApiName | string | Required. API name of the calculated insight that supplies consumption data. |
consumptionRequestFilter | Object | Required. Filter criteria for the consumption query. Contains these fields. servicePointExternalId (string, required): External ID of the service point.monthLimit (integer, optional): Number of months of consumption data to retrieve.completeMonthsOnly (boolean, optional): When true, includes only complete calendar months. |
| Output | Type | Description |
|---|---|---|
consumptionDetails | Object[] | List of monthly consumption records. Each item contains these fields.month (string): Month identifier for the consumption record.consumption (number): Consumption value for the month.uom (string): Unit of measure for the consumption value. |
- POST
This sample request is for the Get Monthly Utility Consumption action.
This sample response is for the Get Monthly Utility Consumption action.