---
title: "CustomerSmsMarketingConsentInput"
description: "Used for customer consent/refusal to receive marketing information via SMS."
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-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-sms-marketing-consent-input.md'
---
# CustomerSmsMarketingConsentInput

Used for customer consent/refusal to receive marketing information via SMS.

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

## Type Signature

`CustomerSmsMarketingConsentInput`

## Input Fields

* `marketingState`

  [CustomerSmsMarketingState](https://developer.shopline.com/docs/admin-graph-ql-api/customers/enums/customer-sms-marketing-state.md)

  SMS Subscription Status

* `consentUpdatedAt`

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

  Subscription Update Time

## Schema Definition

```graphql
input CustomerSmsMarketingConsentInput { 
	marketingState: CustomerSmsMarketingState
	consentUpdatedAt: Date 
}
```

## Input field from

* [CustomerInput](https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/customer-input.md).smsMarketingConsent

  Used for customer consent/refusal to receive marketing information via SMS.

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

  Customer agrees or refuses to receive SMS marketing information

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

