Mutation
mutation ProvisionSubscriptionV2($input: ProvisionSubscriptionInput!) {
provisionSubscriptionV2(input: $input) {
checkoutBillingId
checkoutUrl
entitlements {
accessDeniedReason
creditRate {
amount
costFormula
currencyId
customCurrencyId
}
currentUsage
customerId
displayNameOverride
entitlementUpdatedAt
}
entitlementsUpdatedAt
entitlementsV2 {
__typename
... on CreditEntitlement {
accessDeniedReason
currency {
__typename
}
currentUsage
entitlementUpdatedAt
hasSoftLimit
isGranted
}
}
id
}
}Variables
{
"input": {
"customerId": "string",
"planId": "string"
}
}Response
{
"data": {
"provisionSubscriptionV2": {
"checkoutBillingId": "string",
"checkoutUrl": "string",
"entitlements": [
{
"accessDeniedReason": "BudgetExceeded",
"creditRate": {
"amount": 1.5,
"costFormula": "string",
"currencyId": "string",
"customCurrencyId": "value"
},
"currentUsage": 1.5,
"customerId": "string",
"displayNameOverride": "string",
"entitlementUpdatedAt": "value"
}
],
"entitlementsUpdatedAt": "value",
"entitlementsV2": [
{
"__typename": "CreditEntitlement",
"accessDeniedReason": "BudgetExceeded",
"currency": {
"__typename": "EntitlementCurrency"
},
"currentUsage": 1.5,
"entitlementUpdatedAt": "value",
"hasSoftLimit": true,
"isGranted": true
}
],
"id": "string"
}
}
}Mutations
provisionSubscriptionV2
MUTATION
provisionSubscriptionV2(input: ProvisionSubscriptionInput!): ProvisionSubscriptionResult!Arguments
input
required
Returns
checkoutBillingId
String
checkoutUrl
String
entitlements
[Entitlement!]
deprecated
The list of feature entitlements granted to the customer.
Use 'entitlementsV2' field instead to retrieve both feature and credit entitlements.
entitlementsUpdatedAt
DateTime
When these entitlements last changed. The latest of the entitlement, customer and subscription update times; always set, also when the list is empty.
entitlementsV2
The list of polymorphic entitlements (feature and credit) granted to the customer.
id
String!
isScheduled
Boolean
status
subscription
Mutation
mutation ProvisionSubscriptionV2($input: ProvisionSubscriptionInput!) {
provisionSubscriptionV2(input: $input) {
checkoutBillingId
checkoutUrl
entitlements {
accessDeniedReason
creditRate {
amount
costFormula
currencyId
customCurrencyId
}
currentUsage
customerId
displayNameOverride
entitlementUpdatedAt
}
entitlementsUpdatedAt
entitlementsV2 {
__typename
... on CreditEntitlement {
accessDeniedReason
currency {
__typename
}
currentUsage
entitlementUpdatedAt
hasSoftLimit
isGranted
}
}
id
}
}Variables
{
"input": {
"customerId": "string",
"planId": "string"
}
}Response
{
"data": {
"provisionSubscriptionV2": {
"checkoutBillingId": "string",
"checkoutUrl": "string",
"entitlements": [
{
"accessDeniedReason": "BudgetExceeded",
"creditRate": {
"amount": 1.5,
"costFormula": "string",
"currencyId": "string",
"customCurrencyId": "value"
},
"currentUsage": 1.5,
"customerId": "string",
"displayNameOverride": "string",
"entitlementUpdatedAt": "value"
}
],
"entitlementsUpdatedAt": "value",
"entitlementsV2": [
{
"__typename": "CreditEntitlement",
"accessDeniedReason": "BudgetExceeded",
"currency": {
"__typename": "EntitlementCurrency"
},
"currentUsage": 1.5,
"entitlementUpdatedAt": "value",
"hasSoftLimit": true,
"isGranted": true
}
],
"id": "string"
}
}
}