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
}
}
}
}Variables
{
"input": {}
}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"
}
]
}
]
}
}
}Queries
paywall
Get paywall by plan ID
QUERY
paywall(input: GetPaywallInput!): Paywall!Arguments
input
required
Input for fetching the paywall
Returns
activeSubscriptions
List of active subscriptions for the customer
configuration
Paywall configuration
currency
The currency used in the paywall, e.g. USD
customer
The customer for whom the paywall is being fetched
paywallCalculatedPricePoints
Calculated price points for the paywall
plans
[Plan!]!
List of plans available in the paywall
resource
The resource for which the paywall is being fetched
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
}
}
}
}Variables
{
"input": {}
}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"
}
]
}
]
}
}
}