> ## 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.

# creditEventsFields

> Get distinct featureIds and dimension keys/values seen in a customer's credit consumption events



**query** `creditEventsFields(input: CreditEventsFieldsInput!): CreditEventsFields!`

## Arguments

**`input`**: `CreditEventsFieldsInput!` (required)

## Returns

`CreditEventsFields!`

**`fields`**: `[String!]!`

Distinct dimension keys seen in credit consumption events for the customer

## Examples

```graphql Query
query CreditEventsFields($input: CreditEventsFieldsInput!) {
  creditEventsFields(input: $input) {
    fields
  }
}
```

```json Variables
{
  "input": {
    "customerId": "string"
  }
}
```

```json Response
{
  "data": {
    "creditEventsFields": {
      "fields": [
        "string"
      ]
    }
  }
}
```


## Related topics

- [CreditEventsFields](https://docs.stigg.io/graphql-reference/types/CreditEventsFields.md)
- [CreditEventsFieldsInput](https://docs.stigg.io/graphql-reference/types/CreditEventsFieldsInput.md)
- [Custom credit consumption formulas](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/credits/custom-formula.md)
- [Zuora callouts and incoming events](https://docs.stigg.io/documentation/native-integrations/billing/zuora/zuora-incoming-webhooks.md)
- [eventsFields](https://docs.stigg.io/graphql-reference/queries/eventsFields.md)


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