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

# SubscriptionQuery

> Query for subscriptions



**Kind**: `object`

## Fields

**`additionalMetaData`**: `JSON`

---

**`addons`**: `[SubscriptionAddon!]`

**Arguments:**

- `filter`: `SubscriptionAddonFilter` = {} — Specify to filter the records returned.
- `sorting`: `[SubscriptionAddonSort!]` = [{direction: DESC, field: createdAt}] — Specify to sort results.

---

**`billingCycleAnchor`**: `DateTime`

Billing cycle anchor date

---

**`billingId`**: `String`

Billing ID

---

**`billingLinkUrl`**: `String`

---

**`billingPeriod`**: `BillingPeriod`

The billing period of the subscription

---

**`billingSyncError`**: `String`

---

**`budget`**: `BudgetConfiguration`

Budget configuration

---

**`budgetExceeded`**: `Boolean`

Indicates if the budget has been exceeded

---

**`cancelReason`**: `SubscriptionCancelReason`

---

**`cancellationDate`**: `DateTime`

Subscription cancellation date

---

**`contract`**: `SubscriptionContractDTO`

---

**`contractId`**: `String`

---

**`coupon`**: `SubscriptionCoupon`

---

**`coupons`**: `[SubscriptionCoupon!]`

---

**`createdAt`**: `DateTime`

Created at

---

**`crmId`**: `String`

---

**`crmLinkUrl`**: `String`

---

**`currentBillingPeriodEnd`**: `DateTime`

---

**`currentBillingPeriodStart`**: `DateTime`

---

**`customer`**: `Customer!`

---

**`customerId`**: `String`

Customer ID

---

**`effectiveEndDate`**: `DateTime`

---

**`endDate`**: `DateTime`

---

**`entitlements`**: `[SubscriptionEntitlementUnion!]`

The list of entitlements (feature and credit) associated with the subscription

---

**`environment`**: `Environment!`

---

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

Environment ID

---

**`experiment`**: `Experiment`

---

**`experimentInfo`**: `experimentInfo`

---

**`freeItems`**: `[FreeSubscriptionItem!]`

Free items included in the subscription

---

**`id`**: `UUID!`

---

**`lastUsageInvoice`**: `SubscriptionInvoice`

---

**`latestInvoice`**: `SubscriptionInvoice`

---

**`minimumSpend`**: `SubscriptionMinimumSpend`

Minimum spend configuration

---

**`oldBillingId`**: `String`

---

**`payingCustomer`**: `Customer`

---

**`payingCustomerId`**: `UUID`

---

**`paymentCollection`**: `PaymentCollection!`

Payment collection

---

**`paymentCollectionMethod`**: `PaymentCollectionMethod`

Payment collection method of the subscription

---

**`plan`**: `Plan!`

---

**`prices`**: `[SubscriptionPrice!]`

**Arguments:**

- `filter`: `SubscriptionPriceFilter` = {billingModel: {neq: MINIMUM_SPEND}} — Specify to filter the records returned.
- `sorting`: `[SubscriptionPriceSort!]` = [{direction: DESC, field: createdAt}] — Specify to sort results.

---

**`pricingType`**: `PricingType!`

Pricing type

---

**`refId`**: `String!`

> Deprecated: Renamed to subscriptionId

---

**`resource`**: `CustomerResource`

---

**`resourceId`**: `String`

Resource ID

---

**`salesforceId`**: `String`

Salesforce ID

---

**`scheduledUpdates`**: `[SubscriptionScheduledUpdate!]`

---

**`startDate`**: `DateTime!`

Subscription start date

---

**`status`**: `SubscriptionStatus!`

Subscription status

---

**`subscriptionEntitlements`**: `[SubscriptionEntitlement!]`

> Deprecated: Use entitlements field instead which includes both feature and credit entitlements

---

**`subscriptionId`**: `String!`

Subscription ID

---

**`syncStates`**: `[SyncState!]!`

---

**`totalPrice`**: `CustomerSubscriptionTotalPrice`

---

**`trialConfiguration`**: `TrialConfiguration`

Trial configuration

---

**`trialEndDate`**: `DateTime`

---

**`wasInTrial`**: `Boolean`



## Related topics

- [SubscriptionQueryConnection](https://docs.stigg.io/graphql-reference/types/SubscriptionQueryConnection.md)
- [SubscriptionQueryEdge](https://docs.stigg.io/graphql-reference/types/SubscriptionQueryEdge.md)
- [SubscriptionQueryFilter](https://docs.stigg.io/graphql-reference/types/SubscriptionQueryFilter.md)
- [SubscriptionQuerySort](https://docs.stigg.io/graphql-reference/types/SubscriptionQuerySort.md)
- [SubscriptionQueryAggregateGroupBy](https://docs.stigg.io/graphql-reference/types/SubscriptionQueryAggregateGroupBy.md)


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