Query
query WidgetConfiguration($input: GetWidgetConfigurationInput!) {
widgetConfiguration(input: $input) {
checkout {
content {
collectPhoneNumber
}
customCss
palette {
backgroundColor
borderColor
primary
summaryBackgroundColor
textColor
}
typography {
body {
__typename
}
fontFamily
h1 {
__typename
}
h2 {
__typename
}
h3 {
__typename
}
}
}
customerPortal {
customCss
palette {
backgroundColor
borderColor
currentPlanBackground
iconsColor
paywallBackgroundColor
primary
}
typography {
body {
__typename
}
fontFamily
h1 {
__typename
}
h2 {
__typename
}
h3 {
__typename
}
}
}
paywall {
customCss
layout {
alignment
planMargin
planPadding
planWidth
}
palette {
backgroundColor
borderColor
currentPlanBackground
primary
textColor
}
typography {
body {
__typename
}
fontFamily
h1 {
__typename
}
h2 {
__typename
}
h3 {
__typename
}
}
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"widgetConfiguration": {
"checkout": {
"content": {
"collectPhoneNumber": true
},
"customCss": "string",
"palette": {
"backgroundColor": "string",
"borderColor": "string",
"primary": "string",
"summaryBackgroundColor": "string",
"textColor": "string"
},
"typography": {
"body": {
"__typename": "FontVariant"
},
"fontFamily": "string",
"h1": {
"__typename": "FontVariant"
},
"h2": {
"__typename": "FontVariant"
},
"h3": {
"__typename": "FontVariant"
}
}
},
"customerPortal": {
"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"
}
}
},
"paywall": {
"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"
}
}
}
}
}
}Queries
widgetConfiguration
Fetch the current widget configuration.
QUERY
widgetConfiguration(input: GetWidgetConfigurationInput!): WidgetConfiguration!Arguments
input
required
Input object used to retrieve current widget configuration for the environment.
Returns
checkout
Custom UI configuration for the checkout widget.
customerPortal
Custom UI configuration for the customer portal widget.
paywall
Custom UI configuration for the paywall widget.
Query
query WidgetConfiguration($input: GetWidgetConfigurationInput!) {
widgetConfiguration(input: $input) {
checkout {
content {
collectPhoneNumber
}
customCss
palette {
backgroundColor
borderColor
primary
summaryBackgroundColor
textColor
}
typography {
body {
__typename
}
fontFamily
h1 {
__typename
}
h2 {
__typename
}
h3 {
__typename
}
}
}
customerPortal {
customCss
palette {
backgroundColor
borderColor
currentPlanBackground
iconsColor
paywallBackgroundColor
primary
}
typography {
body {
__typename
}
fontFamily
h1 {
__typename
}
h2 {
__typename
}
h3 {
__typename
}
}
}
paywall {
customCss
layout {
alignment
planMargin
planPadding
planWidth
}
palette {
backgroundColor
borderColor
currentPlanBackground
primary
textColor
}
typography {
body {
__typename
}
fontFamily
h1 {
__typename
}
h2 {
__typename
}
h3 {
__typename
}
}
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"widgetConfiguration": {
"checkout": {
"content": {
"collectPhoneNumber": true
},
"customCss": "string",
"palette": {
"backgroundColor": "string",
"borderColor": "string",
"primary": "string",
"summaryBackgroundColor": "string",
"textColor": "string"
},
"typography": {
"body": {
"__typename": "FontVariant"
},
"fontFamily": "string",
"h1": {
"__typename": "FontVariant"
},
"h2": {
"__typename": "FontVariant"
},
"h3": {
"__typename": "FontVariant"
}
}
},
"customerPortal": {
"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"
}
}
},
"paywall": {
"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"
}
}
}
}
}
}