--- title: Introducing the new Discount Function API - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/new-discount-function-api md: https://shopify.dev/changelog/new-discount-function-api.md --- [Back to Developer changelog](https://shopify.dev/changelog) May 21, 2025 Tags: * Functions # Introducing the new Discount Function API In API version 2025-04, we introduced a new [Discount Function API](https://shopify.dev/docs/api/functions/reference/discount), 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](https://shopify.dev/docs/api/functions/reference/discount) and try the [hands-on tutorial](https://shopify.dev/docs/apps/build/discounts/build-discount-function?extension=rust). If you're using existing discount APIs, the [migration guide](https://shopify.dev//docs/apps/build/discounts/migrate-discount-api) describes how to transition to the new Discount Function API.