Stay up to date

Developer changelog

API

Create automatic and code discounts in GraphQL with our new Discounts API

Effective June 19, 2019

New

We’re releasing a new Discounts API that has the ability to create and manage automatic and code discounts in the Shopify GraphQL Admin API.

The new Discounts API brings the ability to create and manage Automatic Discounts via the API. Additionally, they also allow the creation of standard code-based discounts without the need for using the PriceRule resource.

The capabilities include:

  • Automatic discounts of Buy X Get Y, or Basic (flat percentage or dollar value)
  • Code discounts of Buy X Get Y, Basic, or Free Shipping

Learn More

This feature is available in the unstable version of the GraphQL Admin API today. To start working with the new Discounts API check out our getting started with discounts guide.