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?
Solved! Go to the solution
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
User | Count |
---|---|
13 | |
12 | |
7 | |
6 | |
4 |