---
title: CustomerConsentCollectedFrom - GraphQL Admin
description: >-
  The source that collected the customer's consent to receive marketing
  materials.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/CustomerConsentCollectedFrom
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/enums/CustomerConsentCollectedFrom.md
api_name: admin
api_type: graphql
type: enum
---

# Customer​Consent​Collected​From

enum

The source that collected the customer's consent to receive marketing materials.

## Valid values

* OTHER

  The customer consent was collected outside of Shopify.

* SHOPIFY

  The customer consent was collected by Shopify.

***

## Fields

* [Customer​Marketing​Consent.collectedFrom](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/CustomerMarketingConsent#fields-collectedFrom)

  INTERFACE

  The marketing consent information for a [customer](https://shopify.dev/docs/api/admin-graphql/latest/objects/Customer) on a specific marketing channel. Channel-specific types like [`CustomerWhatsAppMarketingConsent`](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerWhatsAppMarketingConsent) implement this interface.

* [Customer​Sms​Marketing​Consent.collectedFrom](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerSmsMarketingConsent#field-CustomerSmsMarketingConsent.fields.collectedFrom)

  OBJECT

  The SMS marketing consent information for a [customer's phone number](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerPhoneNumber). Implements the [`CustomerMarketingConsent`](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/CustomerMarketingConsent) interface. Use the [`customerSmsMarketingConsentUpdate`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerSmsMarketingConsentUpdate) mutation to change it.

* [Customer​Sms​Marketing​Consent​State.consentCollectedFrom](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerSmsMarketingConsentState#field-CustomerSmsMarketingConsentState.fields.consentCollectedFrom)

  OBJECT

  The record of when a customer consented to receive marketing material by SMS.

  The customer's consent state reflects the record with the most recent date when consent was updated.

* [Customer​Whats​App​Marketing​Consent.collectedFrom](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerWhatsAppMarketingConsent#field-CustomerWhatsAppMarketingConsent.fields.collectedFrom)

  OBJECT

  The WhatsApp marketing consent information for a [customer's phone number](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerPhoneNumber). Implements the [`CustomerMarketingConsent`](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/CustomerMarketingConsent) interface. Use the [`customerWhatsAppMarketingConsentUpdate`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerWhatsAppMarketingConsentUpdate) mutation to update it.

* [Customer​Phone​Number.marketingCollectedFrom](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerPhoneNumber#field-CustomerPhoneNumber.fields.marketingCollectedFrom)

  OBJECT

  Deprecated

***

## Map

### Fields with this enum

* [Customer​Sms​Marketing​Consent.collectedFrom](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerSmsMarketingConsent#field-CustomerSmsMarketingConsent.fields.collectedFrom)
* [Customer​Sms​Marketing​Consent​State.consentCollectedFrom](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerSmsMarketingConsentState#field-CustomerSmsMarketingConsentState.fields.consentCollectedFrom)
* [Customer​Whats​App​Marketing​Consent.collectedFrom](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerWhatsAppMarketingConsent#field-CustomerWhatsAppMarketingConsent.fields.collectedFrom)
