Frequently expiring token and API limit

GemFind
New Member
3 0 0

Hello Team,

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?

Thank you.

0 Likes
csam
Shopify Staff
Shopify Staff
23 2 1

Hi @GemFind,

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 

CS | API Support @ 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 Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
GemFind
New Member
3 0 0

Hello Team,

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. 

0 Likes