Product Discount API overview
The Product Discount API enables you to create a new type of discount that is applied to a particular product or product variant in the cart.
Example use cases
Anchor link to section titled "Example use cases"- Money off a product. For example, 20% off shirts.
- Money off a product variant. For example, $5 off blue shirts.
- Buy a specific quantity of a product for a specific amount. For example, $5 off up to 2 blue shirts.
- Buy a specific amount of a product, get a second amount at a discount. For example, buy 4 shirts and get 2 blue shirts free.
Developer tools and resources
Anchor link to section titled "Developer tools and resources"- Create a discount function and deploy it to a custom app.