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
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.