---
title: "CustomerSmsMarketingConsentState"
description: "Sms subscription content"
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-state'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/customer-sms-marketing-consent-state.md'
---
# CustomerSmsMarketingConsentState

Sms subscription content

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

## Type Signature

`CustomerSmsMarketingConsentState`

## Fields

* `consentCollectedFrom`

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

  Subscription source

* `consentUpdatedAt`

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

  Subscription time

* `marketingState`

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

  Subscription status

## Schema Definition

```graphql
type CustomerSmsMarketingConsentState { 
	consentCollectedFrom: String
	consentUpdatedAt: Date
	marketingState: CustomerSmsMarketingState 
}
```

## Field from

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

  Sms subscription status

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

