| Time | Status | User Agent |
| :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

The request body containing aggregation detail.

Search for aggregations in a specific period. Max allowed period between start and end is 3 months.

**period\_start**

string

required

`^\d{4}-\d{2}$`

The start of the period for the report in ISO-8601 formatted year and month (`YYYY-MM`).

**period\_end**

string

required

`^\d{4}-\d{2}$`

The end of the period for the report in ISO 8601 format (`YYYY-MM`), which is inclusive.

**programs**

array of objects

The list of the program identifiers that report is associated with. If not specified, defaults to all programs.

**programs**

Show 32 enum values

ADD string

**filters**

array of strings

Optional filters to apply to the search query. Depending on the aggregation type, the filters are applied to the following field:

- `METER`: meter ID,
- `MARKET_GROUP`: market group ID,
- `CUSTOMER`: customer name.

Not supported for other aggregation types.

The search is case-insensitive and will match those results that start with the filter value. Passing multiple filters will

be applied as OR-condition. For example, passing `["SCEC", "PDRP"]` will match all records that start with either `SCEC` or `PDRP`.

**filters**

ADD string

**page\_token**

string

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.

**page\_size**

int32

required

Defaults to 100

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.

**sort**

array of objects

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.

**sort**

ADD object

**version**

string

length ≥ 2

`V.+`

The report version. If not specified the latest version is returned.

# `` 200      Retrieves periodic utility revenue reports for a specified time frame, with a request limit of up to 3 months.

**object**

**utilities**

array of objects

required

The utility detail object.

**utilities\***

object

**utility**

string

required

Utility

**capacity\_w**

object

required

Capacity metrics for all meters in a given utility's territory. There are 3 subsections:

- `earned_capacity`: Earned capacity metrics;
- `four_hour_capacity_bonus`: Four-hour capacity bonus metrics;
- `missed_enrollment`: Missed enrollment metrics.

**capacity\_w** object

**energy\_wh**

object

required

Capacity metrics for all meters in a given utility's territory. There are 2 subsections:

- `energy_earned`: Energy earned metrics;
- `performance_bonus`: Four-hour capacity bonus metrics;
- `missed_enrollment`: Missed enrollment metrics.

**energy\_wh** object

**delivery\_period**

string

deprecated

Deprecated. This field contains the delivery start date. Use the **delivery\_start\_date** field instead.

**delivery\_start\_date**

string

required

`^\d{4}-\d{2}$`

ISO-8601 formatted year and month (`YYYY-MM`) representing the settlement delivery period date.

**delivery\_end\_date**

string

required

`^\d{4}-\d{2}$`

ISO-8601 formatted year and month (`YYYY-MM`) representing the settlement delivery period date.

**total\_revenue**

double

required

Total revenue

**potential\_revenue**

double

required

Potential revenue if performance reached 100%.

**meter\_count**

int32

required

The number of meters

**meters\_dispatched\_count**

int32

required

Count of dispatched meters

**nomination\_w**

double

Target quantity set for capacity market.

**data\_coverage\_percentage**

double

Data coverage percentage

**monetized\_w**

double

Monetized capacity wattage. Partners provide nomination and then Leap will calculate what capacity can be monetized based on program rules.

**capacity\_earned\_w**

double

Capacity earned wattage

**version**

string

length ≥ 2

`V.+`

The report version. If not specified the latest version is returned.

**missed\_revenue**

double

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.

**payment\_adjustment**

double

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

**penalty**

double

The sum of all penalties or market adjustments that are applied to the revenue.

**performance\_adjustment**

double

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.

**capacity\_revenue**

double

Revenue received by the partner for participating in capacity market.

**energy\_revenue**

double

Revenue received by the partner for actively participating in energy programs.

**capacity\_price**

double

Capacity price

**energy\_price\_kwh**

double

Energy price

**page\_token**

string

# `` 400      Returns 400 if the request is invalid.

# `` 401      Returns 401 if the request is unauthorized.

# `` 403      Returns 403 if the request doesn't have the right values.

# `` 415      Returns 415 if provided content in the request is not supported.

# `` 500      Returns 500 if the there's an internal server error.

``` curl --request POST \
     --url https://api.staging.leap.energy/v1.1/revenue/periodic/aggregation/utility/search \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{"page_size":100}'
```

```json
{
  "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"
}

```
