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

# UsageUpdatedV2

> Usage updated event supporting both feature and credit consumption



**Kind**: `object`

## Fields

**`accountId`**: `String!`

The unique identifier for the account

---

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

Customer id

---

**`entitlementReference`**: `EntitlementReference!`

Reference to the entitlement whose usage was updated

---

**`environmentId`**: `UUID!`

The unique identifier for the environment

---

**`resourceId`**: `String`

The customer resource this usage applies to. Optional — only required if the customer has multiple resources (for example, one subscription per workspace or site) and usage needs to be tracked separately per resource; omit it to report usage at the customer level.

---

**`usage`**: `UsageV2!`

Usage



## Related topics

- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [UsageUpdated](https://docs.stigg.io/graphql-reference/types/UsageUpdated.md)
- [UsageV2](https://docs.stigg.io/graphql-reference/types/UsageV2.md)
- [Report usage measurements (v2)](https://docs.stigg.io/api-reference/usage/report-usage-measurements-v2.md)
- [UsageMeasurementUpdated](https://docs.stigg.io/graphql-reference/types/UsageMeasurementUpdated.md)


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