Development discussions around Shopify APIs
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
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
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.
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...By Jacqui Mar 10, 2023
Upskill and stand out with the new Shopify Foundations Certification programBy SarahF_Shopify Mar 6, 2023
One of the key components to running a successful online business is having clear and co...By Ollie Mar 6, 2023