Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

object

Requires Apps must have read_discounts access scope.

The DiscountNode object enables you to manage discounts, which are applied at checkout or on a cart.

Discounts are a way for merchants to promote sales and special offers, or as customer loyalty rewards. Discounts can apply to orders, products, or shipping, and can be either automatic or code-based. For example, you can offer customers a buy X get Y discount that's automatically applied when purchases meet specific criteria. Or, you can offer discounts where customers have to enter a code to redeem an amount off discount on products, variants, or collections in a store.

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

Anchor to Fields and connectionsFields and connections

Discount!non-null

A discount that's applied at checkout or on cart.

Discounts can be automatic or code-based.

The paginated list of events associated with the host subject.

ID!non-null

A globally-unique ID.

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

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

Show
deprecated fields and connections Deprecated
Anchor to metafieldDefinitionsmetafieldDefinitions

List of metafield definitions. This field will be removed in a future version. Use the root metafieldDefinitions field instead.

Returns a private metafield by namespace and key that belongs to the resource. Metafields created using a reserved namespace are private by default. See our guide for migrating private metafields.

PrivateMetafieldConnection!non-nullDeprecated

List of private metafields that belong to the resource. Metafields created using a reserved namespace are private by default. See our guide for migrating private metafields.


Was this section helpful?

query

Returns a discount resource by ID.

query

Returns a list of discounts.


Was this section helpful?