Shopify Discount Function API

The Discount Function API enables developers to create a single discount that applies to cart lines, order subtotals, and shipping rates. It replaces the previous separate Product, Order, and Shipping Discount Function APIs.

API entry from apis.yml

apis.yml Raw ↑
aid: shopify:discount-function-api
name: Shopify Discount Function API
tags:
- Commerce
- Discounts
- Functions
humanURL: https://shopify.dev/docs/api/functions/latest/discount
properties:
- url: https://shopify.dev/docs/api/functions/latest/discount
  type: Documentation
description: The Discount Function API enables developers to create a single discount that applies to
  cart lines, order subtotals, and shipping rates. It replaces the previous separate Product, Order, and
  Shipping Discount Function APIs.