Query
query MockPaywall($input: GetPaywallInput!) {
mockPaywall(input: $input) {
configuration {
customCss
layout {
alignment
planMargin
planPadding
planWidth
}
palette {
backgroundColor
borderColor
currentPlanBackground
primary
textColor
}
typography {
body {
__typename
}
fontFamily
h1 {
__typename
}
h2 {
__typename
}
h3 {
__typename
}
}
}
plans {
additionalMetaData
basePlan {
displayName
refId
}
billingId
compatibleAddons {
additionalMetaData
billingId
dependencies {
__typename
}
description
displayName
entitlements {
__typename
}
}
compatiblePackageGroups {
addons {
__typename
}
description
displayName
options {
__typename
}
packageGroupId
}
defaultTrialConfig {
budget {
__typename
}
duration
trialEndBehavior
units
}
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"mockPaywall": {
"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"
}
}
},
"plans": [
{
"additionalMetaData": "value",
"basePlan": {
"displayName": "string",
"refId": "string"
},
"billingId": "string",
"compatibleAddons": [
{
"additionalMetaData": "value",
"billingId": "string",
"dependencies": [
{
"__typename": "PaywallAddon"
}
],
"description": "string",
"displayName": "string",
"entitlements": [
{
"__typename": "Entitlement"
}
]
}
],
"compatiblePackageGroups": [
{
"addons": [
{
"__typename": "PaywallAddon"
}
],
"description": "string",
"displayName": "string",
"options": {
"__typename": "PaywallPlanCompatiblePackageGroupOptions"
},
"packageGroupId": "string"
}
],
"defaultTrialConfig": {
"budget": {
"__typename": "BudgetConfiguration"
},
"duration": 1.5,
"trialEndBehavior": "CANCEL_SUBSCRIPTION",
"units": "DAY"
}
}
]
}
}
}Queries
mockPaywall
Get mock paywall by plan ID
QUERY
mockPaywall(input: GetPaywallInput!): MockPaywall!Arguments
input
required
Input for fetching the paywall
Returns
configuration
Mock paywall configuration
plans
[PaywallPlan!]!
List of mock plans available in the paywall
Query
query MockPaywall($input: GetPaywallInput!) {
mockPaywall(input: $input) {
configuration {
customCss
layout {
alignment
planMargin
planPadding
planWidth
}
palette {
backgroundColor
borderColor
currentPlanBackground
primary
textColor
}
typography {
body {
__typename
}
fontFamily
h1 {
__typename
}
h2 {
__typename
}
h3 {
__typename
}
}
}
plans {
additionalMetaData
basePlan {
displayName
refId
}
billingId
compatibleAddons {
additionalMetaData
billingId
dependencies {
__typename
}
description
displayName
entitlements {
__typename
}
}
compatiblePackageGroups {
addons {
__typename
}
description
displayName
options {
__typename
}
packageGroupId
}
defaultTrialConfig {
budget {
__typename
}
duration
trialEndBehavior
units
}
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"mockPaywall": {
"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"
}
}
},
"plans": [
{
"additionalMetaData": "value",
"basePlan": {
"displayName": "string",
"refId": "string"
},
"billingId": "string",
"compatibleAddons": [
{
"additionalMetaData": "value",
"billingId": "string",
"dependencies": [
{
"__typename": "PaywallAddon"
}
],
"description": "string",
"displayName": "string",
"entitlements": [
{
"__typename": "Entitlement"
}
]
}
],
"compatiblePackageGroups": [
{
"addons": [
{
"__typename": "PaywallAddon"
}
],
"description": "string",
"displayName": "string",
"options": {
"__typename": "PaywallPlanCompatiblePackageGroupOptions"
},
"packageGroupId": "string"
}
],
"defaultTrialConfig": {
"budget": {
"__typename": "BudgetConfiguration"
},
"duration": 1.5,
"trialEndBehavior": "CANCEL_SUBSCRIPTION",
"units": "DAY"
}
}
]
}
}
}