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

# paywall

> Get paywall by plan ID



**query** `paywall(input: GetPaywallInput!): Paywall!`

## Arguments

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

Input for fetching the paywall

## Returns

`Paywall!`

**`activeSubscriptions`**: `[CustomerSubscription!]`

List of active subscriptions for the customer

---

**`configuration`**: `PaywallConfiguration`

Paywall configuration

---

**`currency`**: `PaywallCurrency!`

The currency used in the paywall, e.g. USD

---

**`customer`**: `Customer`

The customer for whom the paywall is being fetched

---

**`paywallCalculatedPricePoints`**: `[PaywallPricePoint!]`

Calculated price points for the paywall

---

**`plans`**: `[Plan!]!`

List of plans available in the paywall

---

**`resource`**: `CustomerResource`

The resource for which the paywall is being fetched

## Examples

```graphql Query
query Paywall($input: GetPaywallInput!) {
  paywall(input: $input) {
    activeSubscriptions {
      additionalMetaData
      addons {
        addon {
          __typename
        }
        addonId
        createdAt
        id
        price {
          __typename
        }
        quantity
      }
      billingCycleAnchor
      billingId
      billingLinkUrl
      billingPeriod
    }
    configuration {
      customCss
      layout {
        alignment
        planMargin
        planPadding
        planWidth
      }
      palette {
        backgroundColor
        borderColor
        currentPlanBackground
        primary
        textColor
      }
      typography {
        body {
          __typename
        }
        fontFamily
        h1 {
          __typename
        }
        h2 {
          __typename
        }
        h3 {
          __typename
        }
      }
    }
    currency {
      code
      symbol
    }
    customer {
      additionalMetaData
      awsMarketplaceCustomerId
      billingCurrency
      billingId
      billingLinkUrl
      coupon {
        additionalMetaData
        amountsOff {
          __typename
        }
        billingId
        billingLinkUrl
        createdAt
        customers {
          __typename
        }
      }
    }
    paywallCalculatedPricePoints {
      additionalChargesMayApply
      amount
      billingCountryCode
      billingPeriod
      currency
      feature {
        account {
          __typename
        }
        additionalMetaData
        createdAt
        description
        displayName
        enumConfiguration {
          __typename
        }
      }
    }
    plans {
      additionalMetaData
      awsMarketplacePlanDimension
      basePlan {
        __typename
      }
      billingId
      billingLinkUrl
      compatibleAddons {
        additionalMetaData
        billingId
        billingLinkUrl
        createdAt
        dependencies {
          __typename
        }
        description
      }
    }
  }
}
```

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

```json Response
{
  "data": {
    "paywall": {
      "activeSubscriptions": [
        {
          "additionalMetaData": "value",
          "addons": [
            {
              "addon": {
                "__typename": "Addon"
              },
              "addonId": "string",
              "createdAt": "value",
              "id": "value",
              "price": {
                "__typename": "Price"
              },
              "quantity": 1.5
            }
          ],
          "billingCycleAnchor": "value",
          "billingId": "string",
          "billingLinkUrl": "string",
          "billingPeriod": "ANNUALLY"
        }
      ],
      "configuration": {
        "customCss": "string",
        "layout": {
          "alignment": "CENTER",
          "planMargin": 1.5,
          "planPadding": 1.5,
          "planWidth": 1.5
        },
        "palette": {
          "backgroundColor": "string",
          "borderColor": "string",
          "currentPlanBackground": "string",
          "primary": "string",
          "textColor": "string"
        },
        "typography": {
          "body": {
            "__typename": "FontVariant"
          },
          "fontFamily": "string",
          "h1": {
            "__typename": "FontVariant"
          },
          "h2": {
            "__typename": "FontVariant"
          },
          "h3": {
            "__typename": "FontVariant"
          }
        }
      },
      "currency": {
        "code": "AED",
        "symbol": "string"
      },
      "customer": {
        "additionalMetaData": "value",
        "awsMarketplaceCustomerId": "string",
        "billingCurrency": "AED",
        "billingId": "string",
        "billingLinkUrl": "string",
        "coupon": {
          "additionalMetaData": "value",
          "amountsOff": [
            {
              "__typename": "Money"
            }
          ],
          "billingId": "string",
          "billingLinkUrl": "string",
          "createdAt": "value",
          "customers": [
            {
              "__typename": "Customer"
            }
          ]
        }
      },
      "paywallCalculatedPricePoints": [
        {
          "additionalChargesMayApply": true,
          "amount": 1.5,
          "billingCountryCode": "string",
          "billingPeriod": "ANNUALLY",
          "currency": "AED",
          "feature": {
            "account": {
              "__typename": "Account"
            },
            "additionalMetaData": "value",
            "createdAt": "value",
            "description": "string",
            "displayName": "string",
            "enumConfiguration": [
              {
                "__typename": "EnumConfigurationEntity"
              }
            ]
          }
        }
      ],
      "plans": [
        {
          "additionalMetaData": "value",
          "awsMarketplacePlanDimension": "string",
          "basePlan": {
            "__typename": "Plan"
          },
          "billingId": "string",
          "billingLinkUrl": "string",
          "compatibleAddons": [
            {
              "additionalMetaData": "value",
              "billingId": "string",
              "billingLinkUrl": "string",
              "createdAt": "value",
              "dependencies": [
                {
                  "__typename": "Addon"
                }
              ],
              "description": "string"
            }
          ]
        }
      ]
    }
  }
}
```


## Related topics

- [Paywall](https://docs.stigg.io/graphql-reference/types/Paywall.md)
- [Rendering paywalls](https://docs.stigg.io/guides/quick-start-guides/rendering-paywalls.md)
- [PaywallConfiguration](https://docs.stigg.io/graphql-reference/types/PaywallConfiguration.md)
- [PaywallAddon](https://docs.stigg.io/graphql-reference/types/PaywallAddon.md)
- [PaywallCurrency](https://docs.stigg.io/graphql-reference/types/PaywallCurrency.md)


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