Functions
Introducing the new Discount Function API
In API version 2025-04, we introduced a new Discount Function API, combining the functionality of the Product, Order, and Shipping Discount Function APIs.
This API allows you to create discounts that apply simultaneous savings to products, order totals, and/or shipping costs—a use case historically supported by Shopify Scripts.
To learn more about the new Discount Function API, read our developer documentation and try the hands-on tutorial.
If you're using existing discount APIs, the migration guide describes how to transition to the new Discount Function API.
Was this section helpful?