Anchor to discountCodesCountdiscount
querydiscount Codes Count
Requires access scope.
The total number of discount codes for the shop. Limited to a maximum of 10000 by default.
Anchor to Arguments
Arguments
- limit (Int)
- query (String)
- Anchor to limitlimit•IntDefault:10000
The upper bound on count value before returning a result. Use
nullto have no limit.- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators.
name type description acceptable_values default_value example_use default string Filter by a case-insensitive search of multiple fields in a document. - query=Bob Norman
-query=title:green hoodieid id Filter by idrange.- id:1234
-id:>=1234
-id:<=1234times_used integer You can apply one or more filters to a query. Learn more about [Shopify API search syntax](https://shopify.dev/api/usage/search-syntax).
Was this section helpful?
Anchor to Possible returnsPossible returns
- Count (Count)
- Anchor to CountCount•Count
A numeric count with precision information indicating whether the count is exact or an estimate.
- Anchor to countcount•Int!non-null
The count of elements.
- Anchor to precisionprecision•Count
Precision! non-null The count's precision, or the exactness of the value.
Was this section helpful?