Customer Privacy API, Consent (analytics, marketing) equivalent for server side (shopify orders)

Topic summary

A developer is trying to verify customer consent for marketing and analytics when fetching Shopify orders server-side. They initially attempted to use the buyer_accepts_marketing field but found it returns false for nearly all orders in the store, making it unreliable.

Current situation:

  • The buyer_accepts_marketing field doesn’t accurately reflect customer consent status
  • The developer reviewed Shopify’s Customer API documentation but couldn’t find a suitable alternative
  • They’re seeking a server-side equivalent to the Customer Privacy API for checking consent preferences

Status: The question remains unanswered, with no solutions or alternative approaches suggested yet.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Hi everyone, when fetching orders on the server side, I wanted to check whether the customer has allowed consent using the “buyer_accepts_marketing” field. However, I noticed that this field is false for almost all order records in a store, so I realized I can’t rely on it. Is there an alternative way to determine the customer’s consent (analytics, marketing) based on their order on server side?

I checked this document as well, but it doesn’t seem to have exactly what I need. I’m not %100 sure.

https://shopify.dev/docs/api/admin-graphql/2025-01/queries/customer