---
title: "Get billing summary information for an account"
method: GET
path: "/v1/accounts/{account_id}/billing/summary"
tags: ["gateway.openapi_Gateway"]
---

# Get billing summary information for an account

`GET /v1/accounts/{account_id}/billing/summary`

## Path parameters

- `account_id` string, required

## Query parameters

- `startTime` string, date-time, required
- `endTime` string, date-time, required

## Response `200`

A successful response.

- GatewayGetBillingSummaryResponse
  - `lineItems` GatewayLineItem[]
    - `category` string
    - `groupingKey` string
    - `groupingValue` string
    - `secondaryGroupingKey` string
    - `secondaryGroupingValue` string
    - `quantity` number, double
    - `unitAmount` TypeMoney — Represents an amount of money with its currency type.
      - `currencyCode` string — The three-letter currency code defined in ISO 4217.
      - `units` string, int64 — The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
      - `nanos` integer — Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
    - `totalCost` TypeMoney — Represents an amount of money with its currency type.
      - `currencyCode` string — The three-letter currency code defined in ISO 4217.
      - `units` string, int64 — The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
      - `nanos` integer — Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/revisions/29a1e4db152c/schema)
