Shopify
shopify.dev › docs › api › functions › latest › discount
Discount Function API
Use the Discount Function API to create a single discount that applies to cart lines, order subtotal, and shipping rates.
Videos
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
What is the difference between discount codes and automatic discounts?
Discount codes require customers to enter a code at checkout, while automatic discounts apply on cart and checkout when conditions are met without manual input.
skailama.com
skailama.com › blog › shopify-discount-functions
Shopify Discount Functions: Implementation Guide & Migration Tips
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
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
The Product Discount API can apply amount or percentage-based discounts to individual products or variants, create discounts based on quantity of products, or create logic that provides free products if you buy a certain quantity of a specific product. Your function runs the logic that determines if the discount should be applied.
Shopify
shopify.dev › docs › api › functions › latest › shipping-discount
Shipping Discount Function API (deprecated)
A legacy shipping discount function that applies a discount to a specific shipping method if the delivery address is in a specific city. This example applies a 50% shipping discount to the express shipping method.
Shopify
shopify.dev › docs › api › functions › latest › product-discount
Product Discount Function API (deprecated)
Use the Product Discount Function API to create a new type of discount that's applied to particular product variants or cart lines.
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. Only stores on a Shopify Plus plan can use custom apps that contain Shopify Function APIs.
Shopify
shopify.dev › changelog › the-product-discount-function-api-now-supports-cart-line-targeting
The Product Discount Function API now supports cart line targeting - Shopify developer changelog
Target, allowing for the application of discounts on specific cart lines, a use case that has historically only been possible with Shopify Scripts. This update can be used to link discounts to attributed cart lines such as upsell products, free gifts with purchase, or buyer customized products. You can learn more about the Product Discount Function API here.
Shopify
shopify.dev › docs › api › functions › unstable › discounts-allocator
Discounts Allocator Function API
Use the API to implement custom logic that distributes discounts across items in a cart, with associated data such as buyer identity, discount codes, and metafields. ... You can install a maximum of one Discount Allocator Function on each store.
GitHub
github.com › Shopify › function-examples › discussions › 199
Allow targeting specific cart lines with discount functions · Shopify/function-examples · Discussion #199
At the moment is possible to apply all discounts at once with one function using DiscountApplicationStrategy.ALL in API 2024-01.
Author Shopify
Snipcart
docs.snipcart.com › v3 › api-reference › discounts
API: discounts – Snipcart Documentation
This method updates an existing discount. ... curl https://app.snipcart.com/api/discounts/19a8d615-09f5-4808-80c2-96cd32d141f3 \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -u {YOUR_API_KEY}: \ -X PUT \ -d "{ name: 'Free shipping', trigger: 'Total', totalToReach: 150, type: 'Shipping', shippingDescription: 'Free shipping', shippingCost: 0, shippingGuaranteedDaysToDelivery: 10 }"
Discountninja
developers.discountninja.io
Storefront API | Discount Ninja
This section documents the API available to theme developers and app developers to interact with Discount Ninja on a Shopify storefront.