Skip to main content
Log inSign up
query

Returns a code discount resource by ID.

ID!required

The ID of the DiscountCodeNode to return.


Was this section helpful?

The DiscountCodeNode object enables you to manage code discounts that are applied when customers enter a code at checkout. For example, 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. Or, you can offer discounts where customers have to enter a code to get free shipping. Merchants can create and share discount codes individually with customers.

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

codeDiscount
non-null

The underlying code discount object.

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?