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
}
}
}
}{
"input": {
"customerId": "string"
}
}{
"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
}
]
}
}
}customerPortal
Customer portal information
customerPortal(input: CustomerPortalInput!): CustomerPortal!Arguments
Optional explanation or context for why this portal session is being initialized.
Returns
The customers billing contact and payment method details.
A link to the external billing portal.
Indicates whether the customer is allowed to upgrade their subscription.
Optional configuration object for customizing how the customer portal behaves or appears
All effective entitlements granted through the customers subscription.
All effective entitlements (feature and credit) granted to the customer with usage data.
A list of promotional entitlements granted directly to the customer. These provide bonus or trial access to features.
The ID of the resource that the portal session is scoped to.
Indicates whether to show the Stigg watermark on the customer portal widget.
List of the customers active subscriptions.
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
}
}
}
}{
"input": {
"customerId": "string"
}
}{
"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
}
]
}
}
}