---
updatedAt: 2026-07-15T15:11:27.000Z
agentTools:
  projectIndex: https://developer.leap.energy/llms.txt
---

# Revenue by utility

Retrieves revenue data for a designated month or months aggregated by utility

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "description": "Retrieves partner settlements",
    "title": "Revenue & Analytics",
    "version": "1.1"
  },
  "servers": [
    {
      "description": "Leap staging API",
      "url": "https://api.staging.leap.energy"
    },
    {
      "description": "Leap production API",
      "url": "https://api.leap.energy"
    }
  ],
  "security": [
    {
      "Bearer": []
    }
  ],
  "tags": [
    {
      "name": "revenue"
    }
  ],
  "paths": {
    "/v1.1/revenue/periodic/aggregation/utility/search": {
      "post": {
        "deprecated": false,
        "description": "Retrieves revenue data for a designated month or months aggregated by utility",
        "operationId": "postUtilitySearchPeriodicAggregationSearch",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PeriodicSearchAggregationRequest"
              }
            }
          },
          "description": "The request body containing aggregation detail.",
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PeriodicUtilityAggregationResponse"
                }
              }
            },
            "description": "Retrieves periodic utility revenue reports for a specified time frame, with a request limit of up to 3 months."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseBadRequest"
                }
              }
            },
            "description": "Returns 400 if the request is invalid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseUnauthorized"
                }
              }
            },
            "description": "Returns 401 if the request is unauthorized."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseForbidden"
                }
              }
            },
            "description": "Returns 403 if the request doesn't have the right values."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseUnsupportedMediaType"
                }
              }
            },
            "description": "Returns 415 if provided content in the request is not supported."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseInternalServerError"
                }
              }
            },
            "description": "Returns 500 if the there's an internal server error."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ],
        "summary": "Revenue by utility",
        "tags": [
          "revenue"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "PeriodicSearchAggregationRequest": {
        "additionalProperties": false,
        "description": "Search for aggregations in a specific period. Max allowed period between start and end is 3 months.",
        "example": {
          "period_start": "2023-03",
          "period_end": "2023-03",
          "programs": [
            "DRAM",
            "CCA",
            "ENERGY-ONLY"
          ],
          "filters": [
            "SCEC_1_PDRP",
            "PDRP"
          ],
          "page_token": "page_token",
          "page_size": 100,
          "sort": [
            {
              "direction": "DESC",
              "field": "nomination_w"
            },
            {
              "direction": "ASC",
              "field": "meter_id"
            }
          ],
          "version": "V1"
        },
        "properties": {
          "period_start": {
            "description": "The start of the period for the report in ISO-8601 formatted year and month (`YYYY-MM`).",
            "example": "2023-03",
            "pattern": "^\\d{4}-\\d{2}$",
            "type": "string"
          },
          "period_end": {
            "description": "The end of the period for the report in ISO 8601 format (`YYYY-MM`), which is inclusive.",
            "example": "2023-03",
            "pattern": "^\\d{4}-\\d{2}$",
            "type": "string"
          },
          "programs": {
            "description": "The list of the program identifiers that report is associated with. If not specified, defaults to all programs.",
            "example": [
              "DRAM",
              "CCA",
              "ENERGY-ONLY"
            ],
            "items": {
              "$ref": "#/components/schemas/program_identifier"
            },
            "type": "array"
          },
          "filters": {
            "description": "Optional filters to apply to the search query. Depending on the aggregation type, the filters are applied to the following field:\n  - `METER`: meter ID, \n  - `MARKET_GROUP`: market group ID, \n  - `CUSTOMER`: customer name. \nNot supported for other aggregation types.\nThe search is case-insensitive and will match those results that start with the filter value. Passing multiple filters will\nbe applied as OR-condition. For example, passing `[\"SCEC\", \"PDRP\"]` will match all records that start with either `SCEC` or `PDRP`.\n",
            "example": [
              "SCEC_1_PDRP",
              "PDRP"
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "page_token": {
            "description": "If there are more records to fetch, this token will be populated as `next_page_token` in the response. Use it to fetch the next page. When requesting a CSV format via Accept header with value `text/csv`, this parameter is not required.\n",
            "type": "string"
          },
          "page_size": {
            "default": 100,
            "description": "Specifies the number of results to return. Defaults to 100 if not set, with a maximum limit of 1000 per page. When requesting a CSV format via Accept header with value 'text/csv', this parameter is not required.\n",
            "example": 100,
            "format": "int32",
            "type": "integer"
          },
          "sort": {
            "description": "Specifies the sorting criteria for the results. It is a list of fields by which the results should be sorted. This parameter is optional. Only supported for `meter`, `customer_group` and `market_group` types.\n",
            "example": [
              {
                "direction": "DESC",
                "field": "nomination_w"
              },
              {
                "direction": "ASC",
                "field": "meter_id"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/SortRequest"
            },
            "type": "array"
          },
          "version": {
            "description": "The report version. If not specified the latest version is returned.",
            "example": "V1",
            "minLength": 2,
            "pattern": "V.+",
            "type": "string"
          }
        },
        "required": [
          "page_size",
          "period_end",
          "period_start"
        ],
        "type": "object"
      },
      "SortRequest": {
        "additionalProperties": false,
        "properties": {
          "field": {
            "description": "The field used to perform the sort operation",
            "example": "nomination_w",
            "type": "string"
          },
          "direction": {
            "$ref": "#/components/schemas/SortDirection"
          }
        },
        "required": [
          "direction",
          "field"
        ],
        "type": "object"
      },
      "ErrorResponseBadRequest": {
        "additionalProperties": false,
        "example": {
          "title": "Bad Request",
          "status": 400,
          "details": [
            {
              "message": "Validation Error",
              "description": "Missing required parameter(s)"
            }
          ]
        },
        "properties": {
          "title": {
            "example": "Bad Request",
            "type": "string"
          },
          "status": {
            "example": 400,
            "format": "int32",
            "type": "integer"
          },
          "details": {
            "example": [
              {
                "message": "Validation Error",
                "description": "Missing required parameter(s)"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/ErrorResponseDetail"
            },
            "type": "array"
          }
        },
        "required": [
          "details",
          "status",
          "title"
        ],
        "type": "object"
      },
      "ErrorResponseDetail": {
        "additionalProperties": false,
        "example": {
          "message": "message",
          "description": "description"
        },
        "properties": {
          "message": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "description",
          "message"
        ],
        "type": "object"
      },
      "ErrorResponseUnauthorized": {
        "additionalProperties": false,
        "example": {
          "title": "Unauthorized",
          "status": 401,
          "details": [
            {
              "message": "message",
              "description": "description"
            },
            {
              "message": "message",
              "description": "description"
            }
          ]
        },
        "properties": {
          "title": {
            "example": "Unauthorized",
            "type": "string"
          },
          "status": {
            "example": 401,
            "format": "int32",
            "type": "integer"
          },
          "details": {
            "items": {
              "$ref": "#/components/schemas/ErrorResponseDetail"
            },
            "type": "array"
          }
        },
        "required": [
          "details",
          "status",
          "title"
        ],
        "type": "object"
      },
      "ErrorResponseForbidden": {
        "additionalProperties": false,
        "example": {
          "title": "Forbidden",
          "status": 403,
          "details": [
            {
              "message": "message",
              "description": "description"
            },
            {
              "message": "message",
              "description": "description"
            }
          ]
        },
        "properties": {
          "title": {
            "example": "Forbidden",
            "type": "string"
          },
          "status": {
            "example": 403,
            "format": "int32",
            "type": "integer"
          },
          "details": {
            "items": {
              "$ref": "#/components/schemas/ErrorResponseDetail"
            },
            "type": "array"
          }
        },
        "required": [
          "details",
          "status",
          "title"
        ],
        "type": "object"
      },
      "ErrorResponseUnsupportedMediaType": {
        "additionalProperties": false,
        "example": {
          "title": "Unsupported Media Type",
          "status": 415,
          "details": [
            {
              "message": "Invalid value in the 'Accept' header.",
              "description": "Supported types are application/json and text/csv"
            }
          ]
        },
        "properties": {
          "title": {
            "example": "Unsupported Media Type",
            "type": "string"
          },
          "status": {
            "example": 415,
            "format": "int32",
            "type": "integer"
          },
          "details": {
            "example": [
              {
                "message": "Invalid value in the 'Accept' header.",
                "description": "Supported types are application/json and text/csv"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/ErrorResponseDetail"
            },
            "type": "array"
          }
        },
        "required": [
          "details",
          "status",
          "title"
        ],
        "type": "object"
      },
      "ErrorResponseInternalServerError": {
        "additionalProperties": false,
        "example": {
          "title": "Server Error",
          "status": 500,
          "details": [
            {
              "message": "Internal Error",
              "description": "A technical error has occurred"
            }
          ]
        },
        "properties": {
          "title": {
            "example": "Server Error",
            "type": "string"
          },
          "status": {
            "example": 500,
            "format": "int32",
            "type": "integer"
          },
          "details": {
            "example": [
              {
                "message": "Internal Error",
                "description": "A technical error has occurred"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/ErrorResponseDetail"
            },
            "type": "array"
          }
        },
        "required": [
          "details",
          "status",
          "title"
        ],
        "type": "object"
      },
      "PeriodicUtilityAggregationResponse": {
        "additionalProperties": false,
        "example": {
          "utilities": [
            {
              "utility": "PG&E",
              "capacity_w": {
                "earned_capacity": {
                  "quantity": 5.56,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8,
                  "avg_price_kw": 4.4
                },
                "four_hour_capacity_bonus": {
                  "quantity": 5.56,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8,
                  "avg_price_kw": 4.4
                },
                "missed_enrollment": {
                  "quantity": 5.56,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8,
                  "avg_price_kw": 4.4
                }
              },
              "energy_wh": {
                "energy_earned": {
                  "quantity": 1778.59,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8
                },
                "performance_bonus": {
                  "quantity": 1778.59,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8
                }
              },
              "delivery_period": "2023-03",
              "delivery_start_date": "2023-03",
              "delivery_end_date": "2023-03",
              "total_revenue": 20600.3,
              "potential_revenue": 104366.8,
              "meter_count": 10,
              "meters_dispatched_count": 185,
              "nomination_w": 16600.88,
              "data_coverage_percentage": 55.5,
              "monetized_w": 8400,
              "capacity_earned_w": 2000.3,
              "version": "V1",
              "missed_revenue": 20000.3,
              "payment_adjustment": 20,
              "penalty": 11,
              "performance_adjustment": 12,
              "capacity_revenue": 27600.3,
              "energy_revenue": 27600.3,
              "capacity_price": 5.56,
              "energy_price_kwh": 6.67
            },
            {
              "utility": "PG&E",
              "capacity_w": {
                "earned_capacity": {
                  "quantity": 5.56,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8,
                  "avg_price_kw": 4.4
                },
                "four_hour_capacity_bonus": {
                  "quantity": 5.56,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8,
                  "avg_price_kw": 4.4
                },
                "missed_enrollment": {
                  "quantity": 5.56,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8,
                  "avg_price_kw": 4.4
                }
              },
              "energy_wh": {
                "energy_earned": {
                  "quantity": 1778.59,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8
                },
                "performance_bonus": {
                  "quantity": 1778.59,
                  "price": 5.56,
                  "performance": 5.56,
                  "revenue": 27600.3,
                  "potential_revenue": 104366.8
                }
              },
              "delivery_period": "2023-03",
              "delivery_start_date": "2023-03",
              "delivery_end_date": "2023-03",
              "total_revenue": 20600.3,
              "potential_revenue": 104366.8,
              "meter_count": 10,
              "meters_dispatched_count": 185,
              "nomination_w": 16600.88,
              "data_coverage_percentage": 55.5,
              "monetized_w": 8400,
              "capacity_earned_w": 2000.3,
              "version": "V1",
              "missed_revenue": 20000.3,
              "payment_adjustment": 20,
              "penalty": 11,
              "performance_adjustment": 12,
              "capacity_revenue": 27600.3,
              "energy_revenue": 27600.3,
              "capacity_price": 5.56,
              "energy_price_kwh": 6.67
            }
          ],
          "page_token": "page_token"
        },
        "properties": {
          "utilities": {
            "description": "The utility detail object.",
            "items": {
              "$ref": "#/components/schemas/PeriodicUtilityAggregation"
            },
            "type": "array"
          },
          "page_token": {
            "description": "If there are more records to fetch, this token will be populated as `next_page_token` in the response. Use it to fetch the next page. When requesting a CSV format via Accept header with value `text/csv`, this parameter is not required.\n",
            "type": "string"
          }
        },
        "required": [
          "utilities"
        ],
        "type": "object"
      },
      "PeriodicUtilityAggregation": {
        "additionalProperties": false,
        "example": {
          "utility": "PG&E",
          "capacity_w": {
            "earned_capacity": {
              "quantity": 5.56,
              "price": 5.56,
              "performance": 5.56,
              "revenue": 27600.3,
              "potential_revenue": 104366.8,
              "avg_price_kw": 4.4
            },
            "four_hour_capacity_bonus": {
              "quantity": 5.56,
              "price": 5.56,
              "performance": 5.56,
              "revenue": 27600.3,
              "potential_revenue": 104366.8,
              "avg_price_kw": 4.4
            },
            "missed_enrollment": {
              "quantity": 5.56,
              "price": 5.56,
              "performance": 5.56,
              "revenue": 27600.3,
              "potential_revenue": 104366.8,
              "avg_price_kw": 4.4
            }
          },
          "energy_wh": {
            "energy_earned": {
              "quantity": 1778.59,
              "price": 5.56,
              "performance": 5.56,
              "revenue": 27600.3,
              "potential_revenue": 104366.8
            },
            "performance_bonus": {
              "quantity": 1778.59,
              "price": 5.56,
              "performance": 5.56,
              "revenue": 27600.3,
              "potential_revenue": 104366.8
            }
          },
          "delivery_period": "2023-03",
          "delivery_start_date": "2023-03",
          "delivery_end_date": "2023-03",
          "total_revenue": 20600.3,
          "potential_revenue": 104366.8,
          "meter_count": 10,
          "meters_dispatched_count": 185,
          "nomination_w": 16600.88,
          "data_coverage_percentage": 55.5,
          "monetized_w": 8400,
          "capacity_earned_w": 2000.3,
          "version": "V1",
          "missed_revenue": 20000.3,
          "payment_adjustment": 20,
          "penalty": 11,
          "performance_adjustment": 12,
          "capacity_revenue": 27600.3,
          "energy_revenue": 27600.3,
          "capacity_price": 5.56,
          "energy_price_kwh": 6.67
        },
        "properties": {
          "utility": {
            "description": "Utility",
            "example": "PG&E",
            "type": "string"
          },
          "capacity_w": {
            "$ref": "#/components/schemas/UtilityCapacityMetrics"
          },
          "energy_wh": {
            "$ref": "#/components/schemas/UtilityEnergyMetrics"
          },
          "delivery_period": {
            "deprecated": true,
            "description": "Deprecated. This field contains the delivery start date. Use the delivery_start_date field instead.",
            "example": "2023-03",
            "type": "string"
          },
          "delivery_start_date": {
            "description": "ISO-8601 formatted year and month (`YYYY-MM`) representing the settlement delivery period date.",
            "example": "2023-03",
            "pattern": "^\\d{4}-\\d{2}$",
            "type": "string"
          },
          "delivery_end_date": {
            "description": "ISO-8601 formatted year and month (`YYYY-MM`) representing the settlement delivery period date.",
            "example": "2023-03",
            "pattern": "^\\d{4}-\\d{2}$",
            "type": "string"
          },
          "total_revenue": {
            "description": "Total revenue",
            "example": 20600.3,
            "format": "double",
            "type": "number"
          },
          "potential_revenue": {
            "description": "Potential revenue if performance reached 100%.",
            "example": 104366.8,
            "format": "double",
            "type": "number"
          },
          "meter_count": {
            "description": "The number of meters",
            "example": 10,
            "format": "int32",
            "type": "integer"
          },
          "meters_dispatched_count": {
            "description": "Count of dispatched meters",
            "example": 185,
            "format": "int32",
            "type": "integer"
          },
          "nomination_w": {
            "description": "Target quantity set for capacity market.",
            "example": 16600.88,
            "format": "double",
            "type": "number"
          },
          "data_coverage_percentage": {
            "description": "Data coverage percentage",
            "example": 55.5,
            "format": "double",
            "type": "number"
          },
          "monetized_w": {
            "description": "Monetized capacity wattage. Partners provide nomination and then Leap will calculate what capacity can be monetized based on program rules.\n",
            "example": 8400,
            "format": "double",
            "type": "number"
          },
          "capacity_earned_w": {
            "description": "Capacity earned wattage",
            "example": 2000.3,
            "format": "double",
            "type": "number"
          },
          "version": {
            "description": "The report version. If not specified the latest version is returned.",
            "example": "V1",
            "minLength": 2,
            "pattern": "V.+",
            "type": "string"
          },
          "missed_revenue": {
            "description": "The difference between potential revenue and the actual revenue of the revenue report over the settlement period. Rounded to zero if actual revenue is greater than potential revenue.\n",
            "example": 20000.3,
            "format": "double",
            "type": "number"
          },
          "payment_adjustment": {
            "description": "A sum of any bonuses, Leap adjustments like missed enrollment, and any adjustment payments if this report has multiple versions (`V2`, `V3`, etc.). In NY CSRP and DLRP adjustments also include any true up payments associated with updated performance factors from  prior participation months\n",
            "example": 20,
            "format": "double",
            "type": "number"
          },
          "penalty": {
            "description": "The sum of all penalties or market adjustments that are applied to the revenue.\n",
            "example": 11,
            "format": "double",
            "type": "number"
          },
          "performance_adjustment": {
            "description": "Any revenue changes applied to Capacity Revenue. Negative values reflect penalties, when capacity performance  is below nominations. Positive values reflect aggregation benefits, where overperformance from one meter can  offset underperformance elsewhere.\n",
            "example": 12,
            "format": "double",
            "type": "number"
          },
          "capacity_revenue": {
            "description": "Revenue received by the partner for participating in capacity market.",
            "example": 27600.3,
            "format": "double",
            "type": "number"
          },
          "energy_revenue": {
            "description": "Revenue received by the partner for actively participating in energy programs.",
            "example": 27600.3,
            "format": "double",
            "type": "number"
          },
          "capacity_price": {
            "description": "Capacity price",
            "example": 5.56,
            "format": "double",
            "type": "number"
          },
          "energy_price_kwh": {
            "description": "Energy price",
            "example": 6.67,
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "capacity_w",
          "delivery_end_date",
          "delivery_start_date",
          "energy_wh",
          "meter_count",
          "meters_dispatched_count",
          "potential_revenue",
          "total_revenue",
          "utility"
        ],
        "type": "object"
      },
      "UtilityCapacityMetrics": {
        "additionalProperties": false,
        "description": "Capacity metrics for all meters in a given utility's territory. There are 3 subsections:\n  - `earned_capacity`: Earned capacity metrics;\n  - `four_hour_capacity_bonus`: Four-hour capacity bonus metrics;\n  - `missed_enrollment`: Missed enrollment metrics.\n",
        "example": {
          "earned_capacity": {
            "quantity": 5.56,
            "price": 5.56,
            "performance": 5.56,
            "revenue": 27600.3,
            "potential_revenue": 104366.8,
            "avg_price_kw": 4.4
          },
          "four_hour_capacity_bonus": {
            "quantity": 5.56,
            "price": 5.56,
            "performance": 5.56,
            "revenue": 27600.3,
            "potential_revenue": 104366.8,
            "avg_price_kw": 4.4
          },
          "missed_enrollment": {
            "quantity": 5.56,
            "price": 5.56,
            "performance": 5.56,
            "revenue": 27600.3,
            "potential_revenue": 104366.8,
            "avg_price_kw": 4.4
          }
        },
        "properties": {
          "earned_capacity": {
            "$ref": "#/components/schemas/UtilityCapacityMetric"
          },
          "four_hour_capacity_bonus": {
            "$ref": "#/components/schemas/UtilityCapacityMetric"
          },
          "missed_enrollment": {
            "$ref": "#/components/schemas/UtilityCapacityMetric"
          }
        },
        "required": [
          "earned_capacity",
          "four_hour_capacity_bonus",
          "missed_enrollment"
        ],
        "type": "object"
      },
      "UtilityCapacityMetric": {
        "additionalProperties": false,
        "example": {
          "quantity": 5.56,
          "price": 5.56,
          "performance": 5.56,
          "revenue": 27600.3,
          "potential_revenue": 104366.8,
          "avg_price_kw": 4.4
        },
        "properties": {
          "quantity": {
            "description": "Quantity metric.",
            "example": 5.56,
            "format": "double",
            "type": "number"
          },
          "price": {
            "description": "Price",
            "example": 5.56,
            "format": "double",
            "type": "number"
          },
          "performance": {
            "description": "Performance metrics",
            "example": 5.56,
            "format": "double",
            "type": "number"
          },
          "revenue": {
            "description": "Revenue received by the partner for participating in capacity market.",
            "example": 27600.3,
            "format": "double",
            "type": "number"
          },
          "potential_revenue": {
            "description": "Potential revenue if performance reached 100%.",
            "example": 104366.8,
            "format": "double",
            "type": "number"
          },
          "avg_price_kw": {
            "description": "Average price per KW",
            "example": 4.4,
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "price",
          "quantity",
          "revenue"
        ],
        "type": "object"
      },
      "UtilityEnergyMetrics": {
        "additionalProperties": false,
        "description": "Capacity metrics for all meters in a given utility's territory. There are 2 subsections:\n  - `energy_earned`: Energy earned metrics;\n  - `performance_bonus`: Four-hour capacity bonus metrics;\n  - `missed_enrollment`: Missed enrollment metrics.\n",
        "example": {
          "energy_earned": {
            "quantity": 1778.59,
            "price": 5.56,
            "performance": 5.56,
            "revenue": 27600.3,
            "potential_revenue": 104366.8
          },
          "performance_bonus": {
            "quantity": 1778.59,
            "price": 5.56,
            "performance": 5.56,
            "revenue": 27600.3,
            "potential_revenue": 104366.8
          }
        },
        "properties": {
          "energy_earned": {
            "$ref": "#/components/schemas/UtilityEnergyMetric"
          },
          "performance_bonus": {
            "$ref": "#/components/schemas/UtilityEnergyMetric"
          }
        },
        "required": [
          "energy_earned",
          "performance_bonus"
        ],
        "type": "object"
      },
      "UtilityEnergyMetric": {
        "additionalProperties": false,
        "example": {
          "quantity": 1778.59,
          "price": 5.56,
          "performance": 5.56,
          "revenue": 27600.3,
          "potential_revenue": 104366.8
        },
        "properties": {
          "quantity": {
            "description": "Quantity metric.",
            "example": 1778.59,
            "format": "double",
            "type": "number"
          },
          "price": {
            "description": "Price",
            "example": 5.56,
            "format": "double",
            "type": "number"
          },
          "performance": {
            "description": "Performance metrics",
            "example": 5.56,
            "format": "double",
            "type": "number"
          },
          "revenue": {
            "description": "Revenue received by the partner for actively participating in energy programs.",
            "example": 27600.3,
            "format": "double",
            "type": "number"
          },
          "potential_revenue": {
            "description": "Potential revenue if performance reached 100%.",
            "example": 104366.8,
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "revenue"
        ],
        "type": "object"
      },
      "program_identifier": {
        "description": "Identifier of program",
        "enum": [
          "CAISO-CCA-SC_ONLY",
          "CAISO-HOLD_OPEN",
          "CCA",
          "CEC-DSGS-OPTION4",
          "CEC-DSGS",
          "CONED-CSRP",
          "CONED-DLRP",
          "DRAM",
          "ELRP",
          "ENERGY-ONLY",
          "ERCOT-ERS",
          "EVERSOURCE-CS",
          "MA_DOER-CPS",
          "NATGRID-CS",
          "NRG-REALTIME",
          "NRG-RED",
          "NYISO-SCR",
          "ONCOR-CLM",
          "PGE-ART",
          "PGE-CBP",
          "PJM-CAPACITY",
          "PSEGLI-CSRP",
          "PSEGLI-DLRP",
          "RIE-CS",
          "UNITIL-CS",
          "PSE-RPO",
          "SRP-RPO",
          "TVA-RPO",
          "CAISO-ELRP-A4",
          "CEC-DSGS-OPTION2",
          "ENERGYHUB-CS",
          "CT_GB-ESS"
        ],
        "example": "CEC-DSGS",
        "type": "string"
      },
      "SortDirection": {
        "description": "Sort direction for a field. Can be `ASC` for ascending or `DESC` for descending.",
        "enum": [
          "ASC",
          "DESC"
        ],
        "type": "string"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```