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

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

Thanks!

Streamline your shop and sell more http://www.suppleApps.com
Replies 4 (4)
Chris43
New Member
14 0 0

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

Muthu_Somasund1
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

Muthu_Somasund1
Shopify Partner
37 0 5

Shopify finally released the Price Rules API

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