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

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?

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

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?

Hey, @Zolbayar and @Gregarican !

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!