> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CreditUsageInput

> Input for retrieving credit usage



**Kind**: `input`

## Fields

**`currencyId`**: `String`

The currency ID to filter credit usage by specific currency

---

**`customerId`**: `String!` (required)

The customer ID of the credit usage

---

**`endDate`**: `DateTime`

The end date for the credit usage time range (defaults to now when startDate is provided)

---

**`environmentId`**: `UUID`

The environment ID of the credit usage

---

**`groupBy`**: `[String!]`

Keys to group usage series by: up to 3 custom dimension keys, optionally combined with the reserved key `featureId` to also split each series by feature (e.g. ["featureId", "userId"])

---

**`paging`**: `CursorPaging`

Cursor-based pagination input

---

**`resourceId`**: `String`

The resource ID of the credit usage

---

**`startDate`**: `DateTime`

The start date for the credit usage time range (takes precedence over timeRange when provided)

---

**`timeRange`**: `CreditUsageTimeRange` = LAST_MONTH

The time range for the credit usage



## Related topics

- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [EstimateUsageCostInput](https://docs.stigg.io/graphql-reference/types/EstimateUsageCostInput.md)
- [EstimateEventCostInput](https://docs.stigg.io/graphql-reference/types/EstimateEventCostInput.md)
- [Get credit usage](https://docs.stigg.io/api-reference/credit-usage/get-credit-usage.md)
- [Credit usage chart](https://docs.stigg.io/documentation/snap-in-widgets/credit-usage.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.