Mutation
mutation CalculateRoleChangeCost($input: CalculateRoleChangeCostInput!) {
calculateRoleChangeCost(input: $input) {
roleChangeCost {
totalPrice {
amount
currency
}
fullPrice {
amount
currency
}
adjustedPrice {
amount
currency
}
dueNowPrice {
amount
currency
}
quantity
intervalUnit
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"roleKey": "OWNER"
}
}Response
{
"data": {
"calculateRoleChangeCost": {
"roleChangeCost": {
"totalPrice": {
"amount": 1,
"currency": "USD"
},
"fullPrice": {
"amount": 1,
"currency": "USD"
},
"adjustedPrice": {
"amount": 1,
"currency": "USD"
},
"dueNowPrice": {
"amount": 1,
"currency": "USD"
},
"quantity": 1,
"intervalUnit": "MONTH"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
calculateRoleChangeCost
Calculates the billing cost delta of changing a user’s role or seat type, including prorated and full-period amounts. Use this before making a role change to show the user an accurate cost preview.
MUTATION
calculateRoleChangeCost(input: CalculateRoleChangeCostInput!): CalculateRoleChangeCostOutput!Arguments
input
required
Returns
roleChangeCost
error
Mutation
mutation CalculateRoleChangeCost($input: CalculateRoleChangeCostInput!) {
calculateRoleChangeCost(input: $input) {
roleChangeCost {
totalPrice {
amount
currency
}
fullPrice {
amount
currency
}
adjustedPrice {
amount
currency
}
dueNowPrice {
amount
currency
}
quantity
intervalUnit
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"roleKey": "OWNER"
}
}Response
{
"data": {
"calculateRoleChangeCost": {
"roleChangeCost": {
"totalPrice": {
"amount": 1,
"currency": "USD"
},
"fullPrice": {
"amount": 1,
"currency": "USD"
},
"adjustedPrice": {
"amount": 1,
"currency": "USD"
},
"dueNowPrice": {
"amount": 1,
"currency": "USD"
},
"quantity": 1,
"intervalUnit": "MONTH"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

