This is exactly what the new Discount Function API is for, to let you have a single function that can generate a mix of line-level and order-level discounts. The legacy Order Discount Function API is only able to generate order-level discounts, as indicated by its name.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Combine free shipping with product or order discounts | 17 | 692 | August 19, 2025 | |
| [BUG] Order Discount not using order subtotal and only applies to product in Targets | 1 | 72 | April 15, 2025 | |
| New Discount function API not working when providing the minimum subtotal value for order discounting | 0 | 80 | October 29, 2025 | |
| Product discount function's cost.totalAmount input doesn't account for discounts? | 3 | 456 | October 25, 2024 | |
| Help with GWP Shopify Discount API | 2 | 57 | April 18, 2026 |