Anchor to discountNodesCountdiscount
querydiscount Nodes Count
Requires access scope.
The total number of discounts for the shop. Limited to a maximum of 10000 by default.
Anchor to Arguments
Arguments
- Anchor to limitlimit•IntDefault:10000
The upper bound on count value before returning a result. Use
null
to have no limit.- Anchor to queryquery•String
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.
query=Bob Norman
query=title:green hoodie
- Anchor to code•string
Filter by the discount code. Not supported for bulk discounts.
code:WELCOME10
- Anchor to combines_with•string
Filter by the Shopify Functions discount classes that the discount type can combine with.
order_discounts
product_discounts
shipping_discounts
combines_with:product_discounts
- Anchor to created_at•time
Filter by the date and time, in the shop's timezone, when the discount was created.
created_at:>'2020-10-21T23:39:20Z'
created_at:<now
created_at:<='2024'
- Anchor to discount_class•string
Filter by the discount class.
order
product
shipping
discount_class:product
- Anchor to discount_type
Example:
Example:
Valid values:
Example:
Example:
Valid values:
Example: