Is it a bug? Price rules are becoming "Not Found" after modification.

Solved
Zolbayar
Shopify Partner
41 1 3

When I edit and save a discount code on Shopify admin, its price rule is becoming Not found on the following request: 

/admin/api/2020-07/price_rules/{id}.json
{
    "errors": "Not Found"
}

Is it a bug? or shall I do something else to retrieve it? 

Working remotely from Mongolia ~ www.gereesee.com
0 Likes
Zolbayar
Shopify Partner
41 1 3

Thought it was just a glitch and would be resolved in a few hours. But it's still an issue 3 days later. 

Working remotely from Mongolia ~ www.gereesee.com
0 Likes
Greg_Kujawa
Shopify Partner
1016 83 221

What happens when you request all price rules --> /admin/api/2020-10/price_rules.json?

And you've verified that you are referencing the correct record ID in your call?

0 Likes
Julie
Shopify Staff
Shopify Staff
956 84 224

This is an accepted solution.

Hey, @Zolbayar and @Greg_Kujawa

Julie here from Shopify Support.

Thanks for reaching out. Are you referring to BuyXGetY discount codes? Taking a look at some other posts here in the Shopify APIs and SDKs board, it appears as though this is expected behaviour and your best bet is to use the GraphQL API instead of the REST API, as these discount types are fully implemented in GraphQL. 

I managed to find two forum posts that offer further explanation, which you can find here and here If you have any followup questions, feel free to respond to either of those posts directly. 

I hope this helps!

Julie | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes