๐ŸŒ
Shopify
shopify.dev โ€บ docs โ€บ api โ€บ functions โ€บ latest โ€บ discount
Discount Function API
The run target calculates and applies discounts to cart lines, orders, and shipping based on the provided cart context and discount configuration, including metafields. When your Function is executed, Shopify provides the cart context as input to the run target, including details about cart lines, prices, quantities, buyer identity, and optionally fetch results from external providers.
๐ŸŒ
Shopify
shopify.dev โ€บ docs โ€บ apps โ€บ build โ€บ discounts โ€บ build-discount-function
Build a Discount Function
In this tutorial, you'll use Shopify Functions to create a new type of discount that does three things: - Reduces the price of a cart line by 20% - Discounts the order subtotal by 10% - Provides free shipping After creating the discount, you can test it out in your store.
People also ask

What are some Shopify apps built on Shopify Discount Functions?
Apps like Kite: Discount & Free Gift, Supa Easy, Discount Kit, and Abra Promotions allow merchants to create custom discount rules, BOGO offers, bulk discounts, free gifts, and shipping promotions without coding. These apps integrate seamlessly with Shopifyโ€™s discount system for easy setup and management.
๐ŸŒ
skailama.com
skailama.com โ€บ blog โ€บ shopify-discount-functions
Shopify Discount Functions: Implementation Guide & Migration Tips
What are the limitations of Shopify Discount Functions?
Shopify Discount Functions may slow down on large carts and fail on very large collections due to system limits. Optimizing logic and using Rust can improve performance.
๐ŸŒ
skailama.com
skailama.com โ€บ blog โ€บ shopify-discount-functions
Shopify Discount Functions: Implementation Guide & Migration Tips
How do Shopify Functions work?
Shopify Functions are custom server-side scripts that modify platform logic like discounts, shipping, and checkout. They run in real time, deploy as app extensions, and integrate seamlessly with Shopify.
๐ŸŒ
skailama.com
skailama.com โ€บ blog โ€บ shopify-discount-functions
Shopify Discount Functions: Implementation Guide & Migration Tips
๐ŸŒ
Skailama
skailama.com โ€บ blog โ€บ shopify-discount-functions
Shopify Discount Functions: Implementation Guide & Migration Tips
October 29, 2025 - Shopify Discount Functions are server-side, low latency scripts (product, order, or shipping scopes) that let developers implement advanced promotions (tiered pricing, BOGO, market-specific rules) and run natively in checkout.
๐ŸŒ
Shopify
shopify.dev โ€บ docs โ€บ apps โ€บ build โ€บ discounts
About discounts
After merchants install the app, they can create discounts using these custom discount types. Shopify executes the Function to calculate discounts in real-time when buyers add products to their cart.
๐ŸŒ
Shopify
changelog.shopify.com โ€บ posts โ€บ discount-functions-support-on-shopify-pos
Discount Functions support on Shopify POS - Shopify Changelog
Discounts created by Discount Functions are automatically eligible on different sales channels, including Online Store and POS. Discount Functions can not be excluded from POS. Stores on any plan can use public apps that are distributed through the Shopify App Store and contain functions.
๐ŸŒ
Shopify
shopify.dev โ€บ docs โ€บ api โ€บ functions โ€บ reference โ€บ product-discounts
Discount Function API - Shopify.dev
A single Function processes one discount (either code-based or automatic), but can apply savings across three discount classes: product, order, and shipping. For example, one discount can simultaneously reduce both order total and delivery costs.
Find elsewhere
๐ŸŒ
Shopify
shopify.com โ€บ partners โ€บ blog โ€บ discount-kit-shopify-functions-webassembly-api
Discount Kit's Journey: Faster Checkouts with Shopify Functions (2025) - Shopify
The Discount API now allows apps to generate product, order, and shipping discountsโ€”all powered by a single Discount Code. Merchants can combine multiple discount effects, reduce the number of Functions needed, and unlock more flexible promotions.
๐ŸŒ
Shopify Help Center
help.shopify.com โ€บ en โ€บ manual โ€บ discounts โ€บ discount-types
Shopify Help Center | Discount types
If your store is on the Shopify Plus plan, then consider using Checkout Blocks. You can also use a compatible third-party discounts app, or create your own custom app, to offer your customers a single automatic discount or a single discount code that applies more than one discount saving to an order.
๐ŸŒ
Shopify
apps.shopify.com โ€บ every-possible-discount
Every Possible Discount - Every Possible Discount: Automatic Discounts App for Shopify | Shopify App Store
Every Possible Discount is an automatic discount app for Shopify. Easily set up discounts such as BOGO offers, tiered pricing, bundles, gifts, volume discounts & discount codes. Create any discount that best matches your promotion strategy & ...
Rating: 4.9 โ€‹ - โ€‹ 30 votes
๐ŸŒ
GitHub
github.com โ€บ Shopify โ€บ tutorial-discount-functions-with-remix
GitHub - Shopify/tutorial-discount-functions-with-remix: Build a discount with GraphQL tutorial
This app is a guide for adding discount function extensions to a Shopify app. We have also provided some additional extensions to help you get started with other types of extensions.
Starred by 11 users
Forked by 3 users
Languages ย  JavaScript 82.4% | Rust 15.5%
๐ŸŒ
GitHub
github.com โ€บ ramdhanishivam โ€บ discount-function-app
GitHub - ramdhanishivam/discount-function-app: Shopify Functions API - Javascript App for Discount
Shopify Functions API - Javascript App for Discount - GitHub - ramdhanishivam/discount-function-app: Shopify Functions API - Javascript App for Discount
Author ย  ramdhanishivam
๐ŸŒ
Gadget
gadget.dev โ€บ blog โ€บ understanding-shopify-functions-part-2
Understanding Shopify Functions. Part 2: What can they do, and how to build with them
Depending on the type of function and what customization capabilities the app developer has added, the merchant can configure the function to meet their specific needs. Say you built a Shopify app that enables merchants to create discounts that automatically apply X% discount on the shipping rate of an order whenever the total cart value is above $Y.
๐ŸŒ
Shopify
apps.shopify.com โ€บ function-lab
Function Lab - Automatic Discount functions, via JSON editor | Shopify App Store
Do you need to replace your scripts with functions? Do you want to write your own functions app but don't want to deal with deployments? With Function Lab, you can generate functions using our JSON editor. Available now: Automatic Discounts.
Rating: 5 โ€‹ - โ€‹ 1 votes
๐ŸŒ
Crunch
nextools.crunch.help โ€บ en โ€บ supaeasy-help-docs โ€บ create-discount-functions
Create Shopify Discount Functions
To refine the products or variants to which discounts should be applied, use the 'Discounted Item Qualifier'.
๐ŸŒ
Shopify Community
community.shopify.com โ€บ retired boards โ€บ appdev โ€บ extensions
Shopify Functions (Product Discount API, Order Discount API)
July 14, 2023 - The discount should only apply to one specific line item โ€œAโ€, meaning that if there are 2 line items โ€œAโ€ in the cart, the discount will only apply to one line item โ€œAโ€. ...
๐ŸŒ
Shopify Help Center
help.shopify.com โ€บ en โ€บ manual โ€บ discounts โ€บ discount-types โ€บ percentage-fixed-amount
Shopify Help Center | Amount off discounts
You can create amount off discounts that give your customers a fixed value or a percentage off the products in an order, but that don't apply to shipping costs. The discounts that you create display on the Discounts page of your Shopify admin.
๐ŸŒ
Shopify
shopify.dev โ€บ docs โ€บ api โ€บ functions โ€บ unstable โ€บ discounts-allocator
Discounts Allocator Function API
The list of discounts specifies the money amount that's allocated to an item in a cart based on the associated discount. Shopify processes your response to determine how to calculate discounts on items in a cart.