Skip to main content
Log inSign up
Anchor to automaticDiscountNode

automaticDiscountNode

query

Returns an automatic discount resource by ID.

ID!required

The ID of the DiscountAutomaticNode to return.


Was this section helpful?

Anchor to DiscountAutomaticNodeDiscountAutomaticNode

The DiscountAutomaticNode object enables you to manage automatic discounts that are applied when an order meets specific criteria. You can create amount off, free shipping, or buy X get Y automatic discounts. For example, you can offer customers a free shipping discount that applies when conditions are met. Or you can offer customers a buy X get Y discount that's automatically applied when customers spend a specified amount of money, or a specified quantity of products.

Learn more about working with Shopify's discount model, including related queries, mutations, limitations, and considerations.

automaticDiscount
non-null

A discount that's applied automatically when an order meets specific criteria. Learn more about automatic discounts.

events
non-null

The paginated list of events associated with the host subject.

id
non-null

A globally-unique ID.

metafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

metafields
non-null

A list of custom fields that a merchant associates with a Shopify resource.

metafieldDefinitions
non-null

List of metafield definitions.


Was this section helpful?