Get Redirects link has a problem

When I use the API to get a redirect link, then I have encountered one problem

  1. When I visit a redirect link that has not been created in the Shopify store, the API returns null
  2. Then I started creating a redirect link in Shopify store and continued to use API to get redirect link data but the API still returns no data
  3. I have to wait 15 minutes and keep calling again then the API will return the correct result.
    What’s wrong with it, I need help, thanks

Hi @Hu10
It may be the case that it takes some time to update the information proper in backend to be used in API that’s why it is not being available immediately.
Thanks!

Hi @pawankumar Thanks for your reply!
In case I create a redirect link then I call the API, then the API will return immediately without having to wait 15 minutes like the case I said above.
In this case Why it dont takes some time to update the information proper in backend to be used in API.

Explain this case for me please!
Thanks

It may be the case with request cache or something similar, You can contact shopify support to get the exact idea, But as per my knowledge, it takes some time, it may not be 15 minutes, it may be less though. Shopify does this to prevent continuous update or some remote robotic requests