---
title: "Get a list of credit ledger events"
method: GET
path: "/api/v1/credits/ledger"
tags: ["Credit ledger"]
---

# Get a list of credit ledger events

`GET /api/v1/credits/ledger`

Retrieves a paginated list of credit ledger events for a customer.

## Query parameters

- `limit` integer
- `after` string
- `before` string
- `customerId` string, required
- `resourceId` string
- `currencyId` string
- `eventType` string

## Headers

- `X-ACCOUNT-ID` string
- `X-ENVIRONMENT-ID` string

## Response `200`

A paginated list of credit ledger event objects.

- CreditLedgerEventListResponseDto — Paginated list of credit ledger events
  - `data` object[], required
    - `timestamp` string, date-time, required — The timestamp when the event occurred
    - `eventType` 'CREDITS_GRANTED' | 'CREDITS_EXPIRED' | 'CREDITS_CONSUMED' | 'CREDITS_VOIDED' | 'CREDITS_UPDATED' | 'CREDITS_CONSUMPTION_TRANSFER_SOURCE' | 'CREDITS_CONSUMPTION_TRANSFER_TARGET', required — The type of credit event
    - `customerId` string, required — The customer ID this event belongs to
    - `resourceId` string, nullable, required — The resource ID this event is scoped to
    - `eventId` string, nullable, required — The unique event identifier
    - `featureId` string, nullable, required — The feature ID associated with this event
    - `amount` number, required — The credit amount for this event
    - `creditGrantId` string, required — The credit grant ID associated with this event
    - `creditCurrencyId` string, required — The credit currency ID
  - `pagination` object, required — Pagination metadata including cursors for navigating through results
    - `next` string, nullable, required — Cursor for fetching the next page of results, or null if no additional pages exist
    - `prev` string, nullable, required — Cursor for fetching the previous page of results, or null if at the beginning

## Other responses

- `400` — bad request.
- `401` — User is not authenticated.
- `403` — User is not allowed to access this resource.
- `429` — Too many requests.

## Changes

- **2026-07-23** `b876edd1a4fc` — 5 warning
  - added the new `CreditOveragePriceCurrencyNotFound` enum value to the `code` response property for the response status `400`
  - added the new `InvalidCreditOverageBillingModel` enum value to the `code` response property for the response status `400`
  - added the new `InvoicePreviewNotAvailableForDraftContract` enum value to the `code` response property for the response status `400`
  - added the new `OveragePriceNotSupportedOnAddon` enum value to the `code` response property for the response status `400`
  - …1 more
- **2026-07-21** `a6ff4a5b1f7f` — 1 info
  - added the new optional `query` request parameter `eventType`
- **2026-07-08** `58bb216ff8ce` — 1 warning
  - added the new `GovernanceNotEnabled` enum value to the `code` response property for the response status `403`
- **2026-06-08** `3acd63d6c861` — 2 info
  - added the new optional `header` request parameter `X-ACCOUNT-ID`
  - added the new optional `header` request parameter `X-ENVIRONMENT-ID`
- **2026-06-04** `4fa87d66426d` — 1 warning
  - added the new `PricingModelNotSupportedByBillingIntegration` enum value to the `code` response property for the response status `400`

[Full history](https://skmtc.dev/stiggio/apis/stigg-api/changes/api/v1/credits/ledger/get.md)

---

[API](https://skmtc.dev/stiggio/apis/stigg-api.md) · [All operations](https://skmtc.dev/stiggio/apis/stigg-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stiggio/stigg-api/revisions/3e2c8cfcd035/schema)
