Accessing Discount Data
Discount data is available through metafields on products, collections, and the shop object using the namespaceapp--9549316097--discount_kit and key discounts.
Product-Level Discounts
Access discounts that apply to a specific product:Collection-Level Discounts
Access discounts that apply to a collection: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 namediscount_type- Type (PRODUCT_VOLUME, ORDER_GOAL, GWP, etc.)reward_type- PERCENTAGE or FIXED_AMOUNTmaximum_reward_value- Top tier discount valueincluded_markets- Market handles where applicableincluded_customer_tags- Required customer tags
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.Only one of
max_reward_percent or max_reward_cents is set per product/collection. Percentage discounts are preferred over fixed amounts.Available Metafields
| Metafield | Type | Description |
|---|---|---|
max_reward_percent | number_decimal | Best percentage discount (e.g., 20 for 20% off) |
max_reward_cents | number_integer | Best fixed discount in cents (e.g., 500 for $5 off) |
max_reward_discount | metaobject_reference | Reference to the full DiscountSummary for additional details |
Product Example
Collection Example
Accessing the Full Discount Details
Usemax_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
- Learn about filtering discounts by market and customer tags
- See the complete DiscountSummary reference
- Explore code examples