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

Mail subscription content

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

## Type Signature

`CustomerEmailMarketingConsentState`

## Fields

* `consentUpdatedAt`

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

  Subscription time

* `marketingState`

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

  Subscription status

## Schema Definition

```graphql
type CustomerEmailMarketingConsentState { 
	consentUpdatedAt: Date
	marketingState: CustomerEmailMarketingState 
}
```

## Field from

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

  Mailbox subscription 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).

