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

# UsageMeasurementCredit

> Optimistic credit balance for a credit-backed feature



**Kind**: `object`

## Fields

**`consumed`**: `Float!`

The credits this single reportUsage call deducted, in credit units — scoped to this one measurement (0 for idempotency duplicates). Contrast `currentUsage`, which is the wallet-wide running total shared across all features on this currency. Use it to reconcile expected per-call deductions.

---

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

The credit currency identifier

---

**`currentUsage`**: `Float!`

The wallet's total consumed credits for this currency (optimistic — includes not-yet-reconciled usage), shared across every feature that draws on the currency. This is the running balance, not this call's deduction — see `consumed` for that.

---

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

The grant-version timestamp of this balance, used by the SDK for last-write-wins reconciliation

---

**`usageLimit`**: `Float!`

The total credits granted

---

**`usagePeriodEnd`**: `DateTime`

End of the current credit grant period (when recurring credits reset), if applicable



## Related topics

- [Report usage measurements](https://docs.stigg.io/api-reference/usage/report-usage-measurements.md)
- [Consume credits](https://docs.stigg.io/api-reference/credit-consumption/consume-credits.md)
- [Usage, billing & credits](https://docs.stigg.io/api-and-sdks/integration/backend/usage-and-billing.md)
- [Report usage measurements (v2)](https://docs.stigg.io/api-reference/usage/report-usage-measurements-v2.md)
- [Get credit usage](https://docs.stigg.io/api-reference/credit-usage/get-credit-usage.md)


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