The Customer resource now includes two new properties to save customer subscription states
API
Effective March 12, 2019
We’ve introduced two new properties to the Customer REST resource to allow you to save the marketing subscription data you have about a merchant's customers to Shopify.
accepts_marketing_updated_at
: The date and time (ISO 8601 format) used to indicate when the customer was transitioned into the its currentaccepts_marketing
state. Set this value when the customer subscribes to marketing materials.marketing_opt_in_level
: Indicates the level of consent provided by a customer that accepts marketing. Valid values aresingle_opt_in
,confirmed_opt_in
, orunknown
. If the customer does not accept marketing, then this property returnsnull
.
These two properties are part of a continued effort to enable our partners to maintain the integrity of merchant's customer data. To learn more about these two news fields, see our Customer API reference documentation. We're expecting to release these two new properties in our Admin GraphQL API in the coming weeks.
If you have any questions about this update, then contact support through your partner dashboard or request support in our Shopify APIs and SDKs discussion board.