App reviews, troubleshooting, and recommendations
We need to download all non personal discount codes using GraphQL API.
At the moment we download ALL discounts and check if the `customerSelection` is empty. This means that the code is for all customers. Below is the gist of the query. We would like to filter out all discounts which are personal, because in some cases apps generate discount codes for each buyer and this generated a huge amount of code which are useless for our app.
{ discountNodes(query:"status:active") { edges { node { id discount { __typename ... on DiscountCodeBasic { title summary ## more fields ## customerSelection { ... on DiscountCustomerAll { allCustomers } } discountClass status } } } } } }
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025