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

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

diptibhise
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 https://shopify.dev/docs/api/admin-graphql/2023-01/queries/codeDiscountNodes 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.

 

diptibhise_0-1696940091983.png

 

Replies 0 (0)