For Shopify store access token, we are using our custom app to communicate with Shopify for add/update/delete products. Now sometimes we are getting issues that the token did not work for any of the processes and once I regenerate the token, it started working again. So it seems the issue with shopify access token expiration. Can you please let us know if there are any cases of this and what we can do to prevent the issue from happening again in the future?
Next point is regarding API limits, so we have multiple stores which we are using to add/update/delete the products. We are using the same hosting server to call the APIs for each store and we are assuming that there could be a reason that we are calling Shopify API which exceeds the API limit in particular seconds. Can you let us know if it could be the case with Shopify and how we can prevent this in our custom application?
What is the time frame in which the token is expiring? Did you made any changes to the app or the permissions of the app?
Regarding your second question, you can read more about how the API rate limiting works here:https://shopify.dev/concepts/about-apis/rate-limits I would recommend adding a 'wait' command in your application in order to slow down the rate of requests
Thanks for your reply and efforts on an investigation.
#1 - There is no fix timing of expiring the token. However, as per our observation it is getting expiring a month or so. We applied changes to the source code and modified the application as per our requirements but did not apply anything towards API and permission specific.
#2 - Thanks for your suggestion to use "wait" native feature of the Shopify. We are using similar kind of fix via source code and it is working.
Kindly check and let us know if you require any further information.
Thanks in advance.