---
title: "Count credit event ledger"
method: GET
path: "/v2/billing/credits/ledger/count"
tags: ["credits"]
---

# Count credit event ledger

`GET /v2/billing/credits/ledger/count`

## Query parameters

- `billing_credit_id` string
- `company_id` string, required
- `end_time` string
- `event_type` 'grant' | 'transfer' | 'usage' | 'zero_out'
- `feature_id` string
- `start_time` string
- `limit` integer — Page limit (default 100)
- `offset` integer — Page offset (default 0)

## Response `200`

OK

- object
  - `data` CountResponse, required
    - `count` integer — The number of resources
  - `params` object, required — Input parameters
    - `billing_credit_id` string
    - `company_id` string
    - `end_time` string
    - `event_type` 'grant' | 'transfer' | 'usage' | 'zero_out'
    - `feature_id` string
    - `limit` integer — Page limit (default 100)
    - `offset` integer — Page offset (default 0)
    - `start_time` string

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Server error

---

[API](https://skmtc.net/schematichq/apis/schematic-api.md) · [All operations](https://skmtc.net/schematichq/apis/schematic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/schematichq/schematic-api/revisions/419cb5147b52/schema)
