Skip to main content

customerTierStatus

Requires at least one of the permissions customers:customer:read or settings:customer_tiers:read.

Returns one customer's tier and whether that tier is locked against automatic changes. Fails if the customer does not exist. Requires permission to read customer tier settings or customers.

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:

query CustomerTierStatus($customerId: String!) {
customerTierStatus(customerId: $customerId) {
customerId
customerTier
locked
}
}

Variables:

{
"customerId": "string"
}

Response:

{
"data": {
"customerTierStatus": {
"customerId": "string",
"customerTier": "string",
"locked": true
}
}
}
customerTierStatus(
customerId: String!
): CustomerTierStatus!

Arguments​

customerTierStatus.customerId ● String! non-null scalar​

The ID of the customer.

Type​

CustomerTierStatus object​

A customer's tier status after a manual override.