Anchor to codeDiscountNodeByCodecode
querycode Discount Node By Code
Requires Apps must have access scope.
Returns a code discount identified by its discount code.
Anchor to Arguments
Arguments
- Anchor to codecode•String!required
The case-insensitive code of the
to return.
Was this section helpful?
Anchor to Possible returnsPossible returns
- Anchor to DiscountCodeNodeDiscount•Discount
Code Node Code Node The
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.
Was this section helpful?