---
title: "CustomerSmsMarketingConsentUpdateInput"
description: "Used to update customer consent or refuse to receive 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/inputs/customer-sms-marketing-consent-update-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-sms-marketing-consent-update-input.md'
---
# CustomerSmsMarketingConsentUpdateInput

Used to update customer consent or refuse to receive SMS marketing information

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

## Type Signature

`CustomerSmsMarketingConsentUpdateInput`

## Input Fields

* `customerId`

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

  Customer ID

* `smsMarketingConsent`

  [CustomerSmsMarketingConsentInput](https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-sms-marketing-consent-input.md)

  Customer agrees or refuses to receive SMS marketing information

## Schema Definition

```graphql
input CustomerSmsMarketingConsentUpdateInput { 
	customerId: ID
	smsMarketingConsent: CustomerSmsMarketingConsentInput 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/customers/mutations/customer-sms-marketing-consent-update.md).customerSmsMarketingConsentUpdate

  更新客户的短信营销同意信息

## 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).

