---
title: "CustomerEmailMarketingState"
description: "订阅状态枚举"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/enums/customer-email-marketing-state'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/enums/customer-email-marketing-state.md'
---
# CustomerEmailMarketingState

订阅状态枚举

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

## Type Signature

`CustomerEmailMarketingState`

## Values

* `NOT_SUBSCRIBED`

  未订阅

* `PENDING`

  订阅确认中

* `REDACTED`

  客户数据被删除，该值仅在内部查看且为只读

* `SUBSCRIBED`

  已订阅

* `UNSUBSCRIBED`

  取消订阅

## Schema Definition

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

## Field from

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

  客户是否订阅了电子邮件营销。

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

  订阅状态

## Input field from

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

  订阅状态

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

