Skip to main content
query

Requires read_discounts access scope.

The total number of discount codes for the shop. Limited to a maximum of 10000 by default.

•Int
Default:10000

The upper bound on count value before returning a result. Use null to have no limit.

•String

A filter made up of terms, connectives, modifiers, and comparators.

nametypedescriptionacceptable_valuesdefault_valueexample_use
defaultstringFilter by a case-insensitive search of multiple fields
in a document.- query=Bob Norman
- query=title:green hoodie
ididFilter by id range.- id:1234
- id:>=1234
- id:<=1234
times_usedinteger
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?

•Count

A numeric count with precision information indicating whether the count is exact or an estimate.

•Int!
non-null

The count of elements.

•CountPrecision!
non-null

The count's precision, or the exactness of the value.


Was this section helpful?