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

# ConsumeCreditInput

> A single direct credit consumption from a wallet



**Kind**: `input`

## Fields

**`amount`**: `Float!` (required)

The amount of credits to consume

---

**`createdAt`**: `DateTime`

Optional timestamp the consumption is attributed to

---

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

The credit currency (custom currency refId) to consume from

---

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

The customer to consume credits from (refId)

---

**`dimensions`**: `JSON`

Optional dimensions describing the consumption

---

**`environmentId`**: `UUID`

The unique identifier for the environment

---

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

A unique key used to deduplicate the consumption (required)

---

**`resourceId`**: `String`

Optional resource (refId) the consumption is attributed to



## Related topics

- [ConsumeCreditsAsyncInput](https://docs.stigg.io/graphql-reference/types/ConsumeCreditsAsyncInput.md)
- [Consume credits](https://docs.stigg.io/api-reference/credit-consumption/consume-credits.md)
- [Consume credits asynchronously](https://docs.stigg.io/api-reference/credit-consumption/consume-credits-asynchronously.md)
- [consumeCredits](https://docs.stigg.io/graphql-reference/mutations/consumeCredits.md)
- [consumeCreditsAsync](https://docs.stigg.io/graphql-reference/mutations/consumeCreditsAsync.md)


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