As of API 2025-01, you can use discountsNodes() to search for exact discount codes with the code prefix in the query argument.
This update allows developers to search for exact first-party and third-party discount codes through the GraphQL Admin API, offering more flexibility and precision in finding the right discounts for merchants.
Learn more about discountNodes here.
Was this page helpful?