--- title: CustomerSmsMarketingConsentError - GraphQL Admin description: An error that occurs during execution of an SMS marketing consent mutation. api_version: 2025-10 api_name: admin type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/objects/customersmsmarketingconsenterror md: https://shopify.dev/docs/api/admin-graphql/latest/objects/customersmsmarketingconsenterror.md --- # Customer​Sms​Marketing​Consent​Error object Requires `read_customers` access scope. An error that occurs during execution of an SMS marketing consent mutation. ## Fields * code [Customer​Sms​Marketing​Consent​Error​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/CustomerSmsMarketingConsentErrorCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) non-null The error message. *** ## Map No referencing types *** ## Mutations * [customer​Sms​Marketing​Consent​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerSmsMarketingConsentUpdate) mutation Update a customer's SMS marketing consent information. *** ## <\~> CustomerSmsMarketingConsentError Mutations ### Mutated by * <\~>[customer​Sms​Marketing​Consent​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerSmsMarketingConsentUpdate) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError) interface *** ## ||-CustomerSmsMarketingConsentError Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)