Price Rules API: create price should should allow an optional Discount Code

Shopify Partner
179 0 34

Hello Shopify,

We know it's possible to create a price rule & discount code with 2 separate API calls.

However, since price rules aren't actually usable without a code, please add an optional parameter which will also create a discount code for the newly created price rule.

This will half the number of API requests apps need to make, which is a big deal considering the API calls limit.


Streamline your shop and sell more
Replies 4 (4)
New Member
14 0 0

Can you use the Price Rules API?
When I use it, it returns
  "errors": "Not Found"

Shopify Partner
37 0 5

I am also having this error. Anybody have the reason for this?

But i think last week it worked well

Shopify Partner
37 0 5

Shopify finally released the Price Rules API

Shopify Partner
21 0 18

This would be a very useful change to the api. I think the api to create a price rule should accept an optional array of codes to create. 

It would have performance, stability and usability benefits.