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

# customerPortal

> Customer portal information



**query** `customerPortal(input: CustomerPortalInput!): CustomerPortal!`

## Arguments

**`input`**: `CustomerPortalInput!` (required)

Optional explanation or context for why this portal session is being initialized.

## Returns

`CustomerPortal!`

**`billingInformation`**: `CustomerPortalBillingInformation!`

The customers billing contact and payment method details.

---

**`billingPortalUrl`**: `String`

A link to the external billing portal.

---

**`canUpgradeSubscription`**: `Boolean!`

Indicates whether the customer is allowed to upgrade their subscription.

---

**`configuration`**: `CustomerPortalConfiguration`

Optional configuration object for customizing how the customer portal behaves or appears

---

**`entitlements`**: `[Entitlement!]!`

All effective entitlements granted through the customers subscription.

> Deprecated: Use 'entitlementsV2' instead, which includes both feature and credit entitlements.

---

**`entitlementsV2`**: `[EntitlementUnion!]!`

All effective entitlements (feature and credit) granted to the customer with usage data.

---

**`promotionalEntitlements`**: `[CustomerPortalPromotionalEntitlement!]!`

A list of promotional entitlements granted directly to the customer. These provide bonus or trial access to features.

---

**`resource`**: `CustomerResource`

The ID of the resource that the portal session is scoped to.

---

**`showWatermark`**: `Boolean!`

Indicates whether to show the Stigg watermark on the customer portal widget.

> Deprecated: Use this field from the SDK configuration instead

---

**`subscriptions`**: `[CustomerPortalSubscription!]!`

List of the customers active subscriptions.

## Examples

```graphql Query
query CustomerPortal($input: CustomerPortalInput!) {
  customerPortal(input: $input) {
    billingInformation {
      defaultPaymentExpirationMonth
      defaultPaymentExpirationYear
      defaultPaymentMethodId
      defaultPaymentMethodLast4Digits
      defaultPaymentMethodType
      email
    }
    billingPortalUrl
    canUpgradeSubscription
    configuration {
      customCss
      palette {
        backgroundColor
        borderColor
        currentPlanBackground
        iconsColor
        paywallBackgroundColor
        primary
      }
      typography {
        body {
          __typename
        }
        fontFamily
        h1 {
          __typename
        }
        h2 {
          __typename
        }
        h3 {
          __typename
        }
      }
    }
    entitlements {
      accessDeniedReason
      creditRate {
        amount
        costFormula
        currencyId
        customCurrencyId
      }
      currentUsage
      customerId
      displayNameOverride
      entitlementUpdatedAt
    }
    entitlementsV2 {
      __typename
      ... on CreditEntitlement {
        accessDeniedReason
        currency {
          __typename
        }
        currentUsage
        entitlementUpdatedAt
        hasSoftLimit
        isGranted
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "customerId": "string"
  }
}
```

```json Response
{
  "data": {
    "customerPortal": {
      "billingInformation": {
        "defaultPaymentExpirationMonth": 1,
        "defaultPaymentExpirationYear": 1,
        "defaultPaymentMethodId": "string",
        "defaultPaymentMethodLast4Digits": "string",
        "defaultPaymentMethodType": "BANK",
        "email": "string"
      },
      "billingPortalUrl": "string",
      "canUpgradeSubscription": true,
      "configuration": {
        "customCss": "string",
        "palette": {
          "backgroundColor": "string",
          "borderColor": "string",
          "currentPlanBackground": "string",
          "iconsColor": "string",
          "paywallBackgroundColor": "string",
          "primary": "string"
        },
        "typography": {
          "body": {
            "__typename": "FontVariant"
          },
          "fontFamily": "string",
          "h1": {
            "__typename": "FontVariant"
          },
          "h2": {
            "__typename": "FontVariant"
          },
          "h3": {
            "__typename": "FontVariant"
          }
        }
      },
      "entitlements": [
        {
          "accessDeniedReason": "BudgetExceeded",
          "creditRate": {
            "amount": 1.5,
            "costFormula": "string",
            "currencyId": "string",
            "customCurrencyId": "value"
          },
          "currentUsage": 1.5,
          "customerId": "string",
          "displayNameOverride": "string",
          "entitlementUpdatedAt": "value"
        }
      ],
      "entitlementsV2": [
        {
          "__typename": "CreditEntitlement",
          "accessDeniedReason": "BudgetExceeded",
          "currency": {
            "__typename": "EntitlementCurrency"
          },
          "currentUsage": 1.5,
          "entitlementUpdatedAt": "value",
          "hasSoftLimit": true,
          "isGranted": true
        }
      ]
    }
  }
}
```


## Related topics

- [CustomerPortal](https://docs.stigg.io/graphql-reference/types/CustomerPortal.md)
- [Customer portal](https://docs.stigg.io/documentation/snap-in-widgets/customer-portal.md)
- [Rendering a customer portal](https://docs.stigg.io/guides/quick-start-guides/rendering-customer-portal.md)
- [Allow customers to have multiple subscriptions to the same product](https://docs.stigg.io/guides/i-want-to/add-multiple-subscriptions.md)
- [Multiple active subscriptions](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/subscriptions/multiple-active-subscriptions.md)


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