App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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