Skip to main content
Log inSign up
query

Requires read_discounts access scope.

The total number of discount codes for the shop.

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Anchor to default
string

Filter by a case-insensitive search of multiple fields in a document.

Example:

  • query=Bob Norman
  • query=title:green hoodie
id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to times_used
integer

Was this section helpful?

Details for count of elements.

count
non-null

The count of elements.

precision
non-null

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


Was this section helpful?