Marketing Double Opt In Configuration for a store is not available to fetch

We are facing a few weird cases where merchants configure marketing double opt in on shopify.

Right now, we are going around this by checking if there are any customers with pending email marketing status. However, this frequently breaks.

It would be great if we could expose this as an attribute on the shop object.

1 Like

Hey @tucosaurus :waving_hand: - you’re correct, this isn’t something that can currently be checked via the API. I definitely get where you’re coming from though, happy to put a feature request through!

Just out of curiosity, how are you currently working around this? Are you using something like the below query?

{
  customers(first: 100, query: "accepts_marketing:true") {
    edges {
      node {
        id
        emailMarketingConsent {
          marketingState
        }
      }
    }
  }
}

Just want to make sure I’m approaching this correctly - speak soon!