--- title: UserErrorsCustomerEmailMarketingUserErrors - Customer API description: Provides error codes for marketing subscribe mutations. api_version: 2025-10 api_name: customer type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/customer/latest/objects/usererrorscustomeremailmarketingusererrors md: https://shopify.dev/docs/api/customer/latest/objects/usererrorscustomeremailmarketingusererrors.md --- # User​Errors​Customer​Email​Marketing​User​Errors object Provides error codes for marketing subscribe mutations. ## Fields * code [User​Errors​Customer​Email​Marketing​User​Errors​Code](https://shopify.dev/docs/api/customer/latest/enums/UserErrorsCustomerEmailMarketingUserErrorsCode) The error code. * field [\[String!\]](https://shopify.dev/docs/api/customer/latest/scalars/String) The path to the input field that caused the error. * message [String!](https://shopify.dev/docs/api/customer/latest/scalars/String) non-null The error message. *** ## Map No referencing types *** ## Mutations * [customer​Email​Marketing​Subscribe](https://shopify.dev/docs/api/customer/latest/mutations/customerEmailMarketingSubscribe) mutation Subscribes the customer to email marketing. * [customer​Email​Marketing​Unsubscribe](https://shopify.dev/docs/api/customer/latest/mutations/customerEmailMarketingUnsubscribe) mutation Unsubscribes the customer from email marketing. *** ## <\~> UserErrorsCustomerEmailMarketingUserErrors Mutations ### Mutated by * <\~>[customer​Email​Marketing​Subscribe](https://shopify.dev/docs/api/customer/latest/mutations/customerEmailMarketingSubscribe) * <\~>[customer​Email​Marketing​Unsubscribe](https://shopify.dev/docs/api/customer/latest/mutations/customerEmailMarketingUnsubscribe) *** ## Interfaces * [Displayable​Error](https://shopify.dev/docs/api/customer/latest/interfaces/DisplayableError) interface *** ## ||-UserErrorsCustomerEmailMarketingUserErrors Implements ### Implements * ||-[Displayable​Error](https://shopify.dev/docs/api/customer/latest/interfaces/DisplayableError)