---
title: "CustomerSmsMarketingState"
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-sms-marketing-state'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/enums/customer-sms-marketing-state.md'
---
# CustomerSmsMarketingState

短信订阅状态枚举

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

## Type Signature

`CustomerSmsMarketingState`

## Values

* `PENDING`

  订阅确认中

* `REDACTED`

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

* `SUBSCRIBED`

  订阅

* `UNSUBSCRIBED`

  取消订阅

* `NOT_SUBSCRIBED`

  未订阅

## Schema Definition

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

## Field from

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

  订阅状态

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

  客户是否订阅了短信营销材料

## Input field from

* [CustomerSmsMarketingConsentInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/inputs/customer-sms-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)。

