Mutation
mutation SetExperimentOnCustomerSubscription($input: SetExperimentOnCustomerSubscriptionInput!) {
setExperimentOnCustomerSubscription(input: $input) {
additionalMetaData
addons {
addon {
additionalMetaData
billingId
billingLinkUrl
createdAt
dependencies {
__typename
}
description
}
addonId
createdAt
id
price {
billingCadence
billingCountryCode
billingId
billingModel
billingPeriod
blockSize
}
quantity
}
billingCycleAnchor
billingId
billingLinkUrl
billingPeriod
}
}Variables
{
"input": {
"id": "value",
"relationId": "value"
}
}Response
{
"data": {
"setExperimentOnCustomerSubscription": {
"additionalMetaData": "value",
"addons": [
{
"addon": {
"additionalMetaData": "value",
"billingId": "string",
"billingLinkUrl": "string",
"createdAt": "value",
"dependencies": [
{
"__typename": "Addon"
}
],
"description": "string"
},
"addonId": "string",
"createdAt": "value",
"id": "value",
"price": {
"billingCadence": "ONE_OFF",
"billingCountryCode": "string",
"billingId": "string",
"billingModel": "CREDIT_BASED",
"billingPeriod": "ANNUALLY",
"blockSize": 1.5
},
"quantity": 1.5
}
],
"billingCycleAnchor": "value",
"billingId": "string",
"billingLinkUrl": "string",
"billingPeriod": "ANNUALLY"
}
}
}Mutations
setExperimentOnCustomerSubscription
MUTATION
setExperimentOnCustomerSubscription(input: SetExperimentOnCustomerSubscriptionInput!): CustomerSubscription!Arguments
input
Returns
additionalMetaData
JSON
addons
Arguments
filter
default:{}
Specify to filter the records returned.
sorting
default:[{direction: DESC, field: createdAt}]
Specify to sort results.
billingCycleAnchor
DateTime
Billing cycle anchor date
billingId
String
billingLinkUrl
String
billingPeriod
The billing period of the subscription
billingSyncError
String
budget
Budget configuration
budgetExceeded
Boolean
Indicates if the budget has been exceeded
cancelReason
cancellationDate
DateTime
contract
contractId
String
coupon
Active coupon for this subscription
coupons
List of coupons for this subscription
createdAt
DateTime
crmId
String
crmLinkUrl
String
currentBillingPeriodEnd
DateTime
currentBillingPeriodStart
DateTime
customer
customerId
UUID
effectiveEndDate
DateTime
endDate
DateTime
entitlements
The list of entitlements (feature and credit) associated with the subscription
environment
environmentId
UUID!
experiment
experimentInfo
freeItems
futureUpdates
id
UUID!
isCustomPriceSubscription
Boolean
deprecated
Use paymentCollectionMethod field and look for 'None' value
lastUsageInvoice
latestInvoice
minimumSpend
Minimum spend configuration
oldBillingId
String
outdatedPricePackages
[String!]
payingCustomer
payingCustomerId
UUID
paymentCollection
paymentCollectionMethod
Payment collection method of the subscription
plan
Plan!
prices
Arguments
filter
default:{billingModel: {neq: MINIMUM_SPEND}}
Specify to filter the records returned.
sorting
default:[{direction: DESC, field: createdAt}]
Specify to sort results.
pricingType
refId
String!
deprecated
Renamed to subscriptionId
resource
resourceId
UUID
salesforceId
String
scheduledUpdates
startDate
DateTime!
status
subscriptionEntitlements
deprecated
Use entitlements field instead which includes both feature and credit entitlements
Arguments
filter
default:{}
Specify to filter the records returned.
sorting
default:[{direction: DESC, field: createdAt}]
Specify to sort results.
subscriptionId
String!
syncStates
[SyncState!]
totalPrice
trialConfiguration
Trial configuration
trialEndDate
DateTime
wasInTrial
Boolean
Mutation
mutation SetExperimentOnCustomerSubscription($input: SetExperimentOnCustomerSubscriptionInput!) {
setExperimentOnCustomerSubscription(input: $input) {
additionalMetaData
addons {
addon {
additionalMetaData
billingId
billingLinkUrl
createdAt
dependencies {
__typename
}
description
}
addonId
createdAt
id
price {
billingCadence
billingCountryCode
billingId
billingModel
billingPeriod
blockSize
}
quantity
}
billingCycleAnchor
billingId
billingLinkUrl
billingPeriod
}
}Variables
{
"input": {
"id": "value",
"relationId": "value"
}
}Response
{
"data": {
"setExperimentOnCustomerSubscription": {
"additionalMetaData": "value",
"addons": [
{
"addon": {
"additionalMetaData": "value",
"billingId": "string",
"billingLinkUrl": "string",
"createdAt": "value",
"dependencies": [
{
"__typename": "Addon"
}
],
"description": "string"
},
"addonId": "string",
"createdAt": "value",
"id": "value",
"price": {
"billingCadence": "ONE_OFF",
"billingCountryCode": "string",
"billingId": "string",
"billingModel": "CREDIT_BASED",
"billingPeriod": "ANNUALLY",
"blockSize": 1.5
},
"quantity": 1.5
}
],
"billingCycleAnchor": "value",
"billingId": "string",
"billingLinkUrl": "string",
"billingPeriod": "ANNUALLY"
}
}
}