FROM CACHE - en_header

Why rest api not offer the automatic discount endpoints?

Hoswey
New Member
3 0 0

Hi. Hep. From the rest api of discount section, I found that we can create a  price rule and bind a discount code to it. But when I want to create an automatic discount. I can't find any api. Anything missing?
https://shopify.dev/api/admin-rest/2021-07/resources/discountcode#[post]/admin/api/2021-07/price_rul...
https://shopify.dev/api/admin-rest/2021-07/resources/pricerule

Replies 2 (2)
Zworthkey
Shopify Partner
5581 642 1507

hii, @Hoswey 
where you are using rest API for the discount coupons.
Thank You.

Hoswey
New Member
3 0 0

Hi. @Zworthkey Do you mean the business case?  I am developing a shopify app and provide some function to create the automatic discounts.