Skip to main content

updateCustomerTierConfig

Requires at least one of the permissions settings:customer_tiers:update or settings:tenant:update.

Saves the customer tier ladder and whether automatic tiering is on. At least one tier is required, and every tier needs a unique name and a distinct, non-negative threshold. Requires permission to update customer tier or tenant settings.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation UpdateCustomerTierConfig($input: UpdateCustomerTierConfigInput!) {
updateCustomerTierConfig(input: $input) {
enabled
moduleEnabled
tiers {
name
discountSchemeId
isDefault
key
rank
threshold
}
}
}

Variables:

{
"input": {
"enabled": true,
"tiers": [
{
"isDefault": true,
"name": "string",
"threshold": 0
}
]
}
}

Response:

{
"data": {
"updateCustomerTierConfig": {
"enabled": true,
"moduleEnabled": true,
"tiers": [
{
"name": "string",
"discountSchemeId": "string",
"isDefault": true,
"key": "string",
"rank": 0,
"threshold": 0
}
]
}
}
}
updateCustomerTierConfig(
input: UpdateCustomerTierConfigInput!
): CustomerTierConfig!

Arguments​

updateCustomerTierConfig.input ● UpdateCustomerTierConfigInput! non-null input​

Whether automatic tiering is on, and the list of tiers.

Type​

CustomerTierConfig object​

The customer discount tier setup.