Mutation
mutation ProvisionCustomer($input: ProvisionCustomerInput!) {
provisionCustomer(input: $input) {
customer {
additionalMetaData
awsMarketplaceCustomerId
billingCurrency
billingId
billingLinkUrl
coupon {
additionalMetaData
amountsOff {
__typename
}
billingId
billingLinkUrl
createdAt
customers {
__typename
}
}
}
entitlements {
accessDeniedReason
creditRate {
amount
costFormula
currencyId
customCurrencyId
}
currentUsage
customerId
displayNameOverride
entitlementUpdatedAt
}
entitlementsUpdatedAt
entitlementsV2 {
__typename
... on CreditEntitlement {
accessDeniedReason
currency {
__typename
}
currentUsage
entitlementUpdatedAt
hasSoftLimit
isGranted
}
}
subscription {
additionalMetaData
addons {
addon {
__typename
}
addonId
createdAt
id
price {
__typename
}
quantity
}
billingCycleAnchor
billingId
billingLinkUrl
billingPeriod
}
subscriptionDecisionStrategy
}
}Variables
{
"input": {}
}Response
{
"data": {
"provisionCustomer": {
"customer": {
"additionalMetaData": "value",
"awsMarketplaceCustomerId": "string",
"billingCurrency": "AED",
"billingId": "string",
"billingLinkUrl": "string",
"coupon": {
"additionalMetaData": "value",
"amountsOff": [
{
"__typename": "Money"
}
],
"billingId": "string",
"billingLinkUrl": "string",
"createdAt": "value",
"customers": [
{
"__typename": "Customer"
}
]
}
},
"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
}
],
"subscription": {
"additionalMetaData": "value",
"addons": [
{
"addon": {
"__typename": "Addon"
},
"addonId": "string",
"createdAt": "value",
"id": "value",
"price": {
"__typename": "Price"
},
"quantity": 1.5
}
],
"billingCycleAnchor": "value",
"billingId": "string",
"billingLinkUrl": "string",
"billingPeriod": "ANNUALLY"
},
"subscriptionDecisionStrategy": "PREDEFINED_FREE_PLAN"
}
}
}Mutations
provisionCustomer
Provision a customer and subscription
MUTATION
provisionCustomer(input: ProvisionCustomerInput!): ProvisionedCustomer!Arguments
input
required
Input to provision a customer and subscription
Returns
customer
Customer slg
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.
subscription
Provisioned subscription
subscriptionDecisionStrategy
Wether the subscription should be provision based on customer journey or input
subscriptionStrategyDecision
deprecated
Wether the subscription should be provision based on customer journey or input
This field was renamed to 'subscriptionDecisionStrategy'
Mutation
mutation ProvisionCustomer($input: ProvisionCustomerInput!) {
provisionCustomer(input: $input) {
customer {
additionalMetaData
awsMarketplaceCustomerId
billingCurrency
billingId
billingLinkUrl
coupon {
additionalMetaData
amountsOff {
__typename
}
billingId
billingLinkUrl
createdAt
customers {
__typename
}
}
}
entitlements {
accessDeniedReason
creditRate {
amount
costFormula
currencyId
customCurrencyId
}
currentUsage
customerId
displayNameOverride
entitlementUpdatedAt
}
entitlementsUpdatedAt
entitlementsV2 {
__typename
... on CreditEntitlement {
accessDeniedReason
currency {
__typename
}
currentUsage
entitlementUpdatedAt
hasSoftLimit
isGranted
}
}
subscription {
additionalMetaData
addons {
addon {
__typename
}
addonId
createdAt
id
price {
__typename
}
quantity
}
billingCycleAnchor
billingId
billingLinkUrl
billingPeriod
}
subscriptionDecisionStrategy
}
}Variables
{
"input": {}
}Response
{
"data": {
"provisionCustomer": {
"customer": {
"additionalMetaData": "value",
"awsMarketplaceCustomerId": "string",
"billingCurrency": "AED",
"billingId": "string",
"billingLinkUrl": "string",
"coupon": {
"additionalMetaData": "value",
"amountsOff": [
{
"__typename": "Money"
}
],
"billingId": "string",
"billingLinkUrl": "string",
"createdAt": "value",
"customers": [
{
"__typename": "Customer"
}
]
}
},
"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
}
],
"subscription": {
"additionalMetaData": "value",
"addons": [
{
"addon": {
"__typename": "Addon"
},
"addonId": "string",
"createdAt": "value",
"id": "value",
"price": {
"__typename": "Price"
},
"quantity": 1.5
}
],
"billingCycleAnchor": "value",
"billingId": "string",
"billingLinkUrl": "string",
"billingPeriod": "ANNUALLY"
},
"subscriptionDecisionStrategy": "PREDEFINED_FREE_PLAN"
}
}
}