---
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'
metadata:
  effectiveApiVersion: ''
  affectedApi:
    - displayName: Functions
      handle: functions-api
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2025-03-18T16:53:54-04:00'
  postedAt: '2025-05-21T08:00:00-04:00'
  updatedAt: '2025-05-20T16:29:07-04:00'
  effectiveAt: '2025-04-01T12:00:00-04:00'
---

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.
