---
title: "Get aggregated billable consumption by metric"
method: GET
path: "/waap/v1/prebilling/total/{metric}"
tags: ["Pre-billing"]
---

# Get aggregated billable consumption by metric

`GET /waap/v1/prebilling/total/{metric}`

## Request

- Base URL: `https://api.gcore.com`
- URL: `https://api.gcore.com/waap/v1/prebilling/total/{metric}`
- Auth: HTTP apikey

Retrieve an aggregated report on the calling client's own billable consumption by given metric

## Path parameters

- `metric` 'domains' | 'volume' | 'requests' | 'requests_clean', required: The metric to get billable consumption for

## Query parameters

- `from` string, date, required: The report start date (inclusive) in ISO 8601 format
- `to` string, date, required: The report end date (exclusive) in ISO 8601 format
- `limit` integer: Number of items to return
- `offset` integer: Number of items to skip

## Response `200`

Successful Response

- PaginatedResponseBillingReportItem
  - `limit` integer, required: Number of items requested in the response
  - `offset` integer, required: Items response offset used
  - `count` integer, required: Number of items contain in the response
  - `results` BillingReportItem[], required: List of items returned in the response following given criteria
    - `date` string, required: The date of the accrued billable consumption item
    - `amount` integer, required: The amount of the billable resource accrued on the date

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Unauthenticated
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

## Changes

- **2026-09-14** `3a73a1e91e66`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/g-core/apis/gcore-openapi/changes/waap/v1/prebilling/total/:metric/get.md)

---

[API](https://skmtc.dev/g-core/apis/gcore-openapi.md) - [All operations](https://skmtc.dev/g-core/apis/gcore-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/g-core/apis/gcore-openapi/revisions/a2b772345f3a?raw)
