---
title: "CustomerSmsMarketingConsentError"
description: "Exception generated during execution of updating SMS marketing information"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/customer-sms-marketing-consent-error'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/customer-sms-marketing-consent-error.md'
---
# CustomerSmsMarketingConsentError

Exception generated during execution of updating SMS marketing information

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`CustomerSmsMarketingConsentError`

## Fields

* `code`

  [CustomerSmsMarketingConsentErrorCode](https://developer.shopline.com/docs/admin-graph-ql-api/customers/enums/customer-sms-marketing-consent-error-code.md)

  The error code.

* `field`

  [[String]](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  The field that caused the exception

* `message`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  The error message.

## Schema Definition

```graphql
type CustomerSmsMarketingConsentError { 
	code: CustomerSmsMarketingConsentErrorCode
	field: [String]
	message: String 
}
```

## Field from

* [CustomerSmsMarketingConsentUpdatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/customer-sms-marketing-consent-update-payload.md).userErrors

  error message

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

