How to fetch list of discount which method is code using graphql API

Shopify Partner
7 0 1

I'm trying to fetch all discounts which have the method code in the discounts which I have created from the store (Discount code for product or order). I applied the discount code API similar like that but when I'm trying to hit the url in the response I'm not getting the discount code lists. I'm using this query to access the discount code nodes and in response I'm getting empty array of nodes but in the count of discount code API I'm getting exact amount of count which I have created. Could you please provide me a suggestion.




Replies 0 (0)