Discussing APIs and development related to customers, discounts, and order management.
This GraphQL query https://shopify.dev/docs/api/admin-graphql/2023-07/queries/codeDiscountNodes can be provided with a query string that can search the title but I want to search the actual discount codes.
This GraphQL query https://shopify.dev/docs/api/admin-graphql/2023-07/queries/codeDiscountNodeByCode can be given the actual discount code, so I can already retrieve the codeDiscountNode that has discount code "CHOCO155".
But how can I retrieve all codeDiscountNodes that has a discount code that starts with "CHOCO"
Solved! Go to the solution
This is an accepted solution.
Hey @ko-lem
That's not possible with the current version of the API - passing along your feedback.
Scott | Developer Advocate @ Shopify
This is an accepted solution.
Hey @ko-lem
That's not possible with the current version of the API - passing along your feedback.
Scott | Developer Advocate @ Shopify
Okay, thanks!