gift Cards Count
Requires access scope.
Returns the total count of gift cards that have been issued by the shop. Use this for dashboard summaries or to understand the scale of a merchant's gift card program. The count includes all gift cards regardless of status (active, disabled, or fully redeemed). Limited to a maximum of 10000 by default.
Arguments
- limit (Int)
- query (String)
- savedSearchId (ID)
- 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. 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, including gift card codes.
query=a5bh6h64b329j4k7query=Bob Norman- Anchor to balance_status•string
fullpartialemptyfull_or_partialbalance_status:full- Anchor to created_at•time
created_at:>=2020-01-01T12:00:00Z- Anchor to customer_id•id
- Anchor to expires_on•date
expires_on:>=2020-01-01- Anchor to initial_value•string
initial_value:>=100- Anchor to recipient_id•id
- Anchor to status•string
disabledenabledexpiredexpiringstatus:disabled OR status:expired
Example:
Valid values:
Example:
Example:
Example:
Example:
Valid values:
Example:
- Anchor to savedSearchIdsaved•ID
Search Id
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.