Get the 'Customer Privacy' setting through the Rest/GraphQL API

Shopify Partner
2 0 0

I am trying to retrieve the 'Customer Privacy' setting through the Rest/GraphQL API. Could you please tell me if it is possible to retrieve the 'Customer Privacy' setting for an online store through the API?

Do you know if this can be get using the REST/GraphQL API? I noticed that there are two columns, 'cookie_consent_level' and 'visitor_tracking_consent_preference' (in the GET Shop REST request), that seem to be related to the 'Customer Privacy' setting, but when I modify this setting in the Shopify admin, these columns remain unchanged. Is this intended behavior?



Replies 2 (2)

Shopify Staff
1322 218 457

Hi @mihai_jitianu 👋


At this time, the customer privacy setting of the Online store sales channel is not accessible via Admin API. That said, the Shop object outlines general settings and info about the store including the store's privacy policy and available sales channels.

Hope that helps!


Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit or the Shopify Web Design and Development Blog

Shopify Partner
1 0 1

What other values do cookie_consent_level and visitor_tracking_consent_preference can have and how I can change those via admin?