---
title: "CustomerEmailMarketingState"
description: "Subscription status"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/enums/customer-email-marketing-state'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/enums/customer-email-marketing-state.md'
---
# CustomerEmailMarketingState

Subscription status

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

## Type Signature

`CustomerEmailMarketingState`

## Values

* `REDACTED`

  Customer data is deleted, the value is only viewed internally and is read-only

* `SUBSCRIBED`

  Subscribed

* `UNSUBSCRIBED`

  Cancel the subscription

* `NOT_SUBSCRIBED`

  Not on subscription

* `PENDING`

  On subscription confirm

## Schema Definition

```graphql
enum CustomerEmailMarketingState { 
	REDACTED 
	SUBSCRIBED 
	UNSUBSCRIBED 
	NOT_SUBSCRIBED 
	PENDING  
}
```

## Field from

* [CustomerEmailMarketingConsentState](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/customer-email-marketing-consent-state.md).marketingState

  Subscription status

* [CustomerEmailAddress](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/customer-email-address.md).marketingState

  Email subscription status

## Input field from

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

  Subscription Status - When unsubscribed, the field is blank

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

