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

# GetEntitlementV2Input

> Query for fetching a single entitlement by reference (supports both feature and credit entitlements).



**Kind**: `input`

## Fields

**`currencyId`**: `String`

Identifier of the credit type / custom currency (for credit entitlements). Exactly one of featureId or currencyId must be set.

---

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

Identifier of the customer.

---

**`environmentId`**: `String`

The environment identifier used to resolve the entitlement context.

---

**`featureId`**: `String`

Identifier of the feature (for feature entitlements). Exactly one of featureId or currencyId must be set.

---

**`options`**: `EntitlementOptions`

Optional flags or preferences to customize the fetch behavior.

---

**`resourceId`**: `String`

The scoped resource Identifier.



## Related topics

- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [SubscriptionEntitlementInputV2](https://docs.stigg.io/graphql-reference/types/SubscriptionEntitlementInputV2.md)
- [entitlements](https://docs.stigg.io/graphql-reference/queries/entitlements.md)
- [Node.js SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/node.md)
- [Get entitlements state](https://docs.stigg.io/api-reference/entitlements/get-entitlements-state.md)


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