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

# CreditConsumptionResponse

> Result of a synchronous direct credit consumption



**Kind**: `object`

## Fields

**`amount`**: `Float!`

The amount of credits consumed

---

**`credit`**: `OptimisticCreditBalance`

The optimistic credit balance after consumption (when sync credit consumption is enabled)

---

**`currencyId`**: `String!`

The credit currency (custom currency refId) to consume from

---

**`customerId`**: `String!`

The customer to consume credits from (refId)

---

**`resourceId`**: `String`

Optional resource (refId) the consumption is attributed to

---

**`timestamp`**: `DateTime!`

The timestamp the consumption was attributed to



## Related topics

- [Usage, billing & credits](https://docs.stigg.io/api-and-sdks/integration/backend/usage-and-billing.md)
- [Charge credits for metered usage](https://docs.stigg.io/guides/i-want-to/charge-credits-for-metered-usage.md)
- [Deduct credits directly](https://docs.stigg.io/guides/i-want-to/deduct-credits-directly.md)
- [Credit consumption logic](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/credits/credit-consumption-logic.md)
- [Consume credits](https://docs.stigg.io/api-reference/credit-consumption/consume-credits.md)


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