Mutation
mutation PreviewBillingPlanChange($input: PreviewBillingPlanChangeInput!) {
previewBillingPlanChange(input: $input) {
preview {
immediateCost {
amount
currency
}
earliestEffectiveAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"planKey": "LEGACY"
}
}Response
{
"data": {
"previewBillingPlanChange": {
"preview": {
"immediateCost": {
"amount": 1,
"currency": "USD"
},
"earliestEffectiveAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
previewBillingPlanChange
Returns a cost preview for switching to a different billing plan, including the immediate charge and the earliest date the change can take effect. No changes are made to the subscription.
MUTATION
previewBillingPlanChange(input: PreviewBillingPlanChangeInput!): PreviewBillingPlanChangeOutput!Arguments
input
required
Returns
preview
error
Mutation
mutation PreviewBillingPlanChange($input: PreviewBillingPlanChangeInput!) {
previewBillingPlanChange(input: $input) {
preview {
immediateCost {
amount
currency
}
earliestEffectiveAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"planKey": "LEGACY"
}
}Response
{
"data": {
"previewBillingPlanChange": {
"preview": {
"immediateCost": {
"amount": 1,
"currency": "USD"
},
"earliestEffectiveAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

