Skip to main content
Discount Kit Live makes your discount data instantly accessible through metafields using an app-specific namespace.

Accessing Discount Data

Discount data is available through metafields on products, collections, and the shop object using the namespace app--9549316097--discount_kit and key discounts.

Product-Level Discounts

Access all discounts that apply to a specific product, including discounts inherited from collections the product belongs to:

Collection-Level Discounts

Access discounts that target a collection directly. Note that these discounts are also fanned out to every product in the collection, so you typically only need collection metafields for collection page banners:

Shop-Level Discounts

Access all active discounts across your store:

DiscountSummary Object

Each discount in the array is a DiscountSummary metaobject with fields like:
  • discount_title — Display name
  • discount_type — Type (PRODUCT_VOLUME, ORDER_GOAL, GWP, etc.)
  • method'automatic' or 'code'
  • code — The discount code (empty for automatic discounts)
  • tags — Tags applied to the discount in Shopify (includes dk:live plus any merchant tags)
  • reward_type — PERCENTAGE, FIXED_AMOUNT, or FIXED_PRICE
  • maximum_reward_value — Top tier discount value
  • included_markets — Market handles where applicable
  • included_customer_tags — Required customer tags
  • cart_attribute_key — Cart attribute key required to apply

Quick Access: Best Discount Value

For simple use cases where you just need to display the best discount value, Discount Kit provides scalar metafields that are easier to work with than parsing the full discount array.
Both max_reward_percent and max_reward_cents are always present, but only one will have a non-zero value. Percentage discounts are preferred over fixed-value discounts (fixed-amount or fixed-price). When a product or collection has no active discounts, both values are 0.
These scalar metafields only reflect universal discounts that apply to all visitors. Test mode discounts, GWP discounts, customer-tagged discounts, and market-specific discounts are excluded from scalar computation. They still appear in the full discounts array. See the data reference for details.

Available Metafields

Product Example

Collection Example

Accessing the Full Discount Details

Use max_reward_discount to get additional info like the discount title or message:

Performance

Metafield access is instant with zero overhead:
  • No API calls - Data is already on the page
  • Server-rendered - Available during initial render
  • Always up-to-date - Synced automatically

Next Steps