Best Practices
Monitor your application
Do you monitor how many HTTP 4xx statuses your application is receiving?
It's common to find integrations that attempt to update a resource, receive an HTTP 4xx error, and keep trying to update without any change to the request, indefinitely.
Ideally, upon receiving an HTTP 4xx error, the application will only attempt to retry the request after the root cause of the error is resolved. (Ex: adding a required field that was missing from the request)
Beware of the request limit
Be careful not to exceed the limits of our API requests. If your application receives an HTTP 429, it must stop making requests for a while until a new window begins counting.
Use only the necessary
Some of SkyHub API endpoints, especially the products one, allows only a few parameters to be passed in the update request. So If you want to update only the "qty" field of the product, you should do similar to the request below:
This way your application will have less data traffic on the network, so the SkyHub API will process a smaller load data and perform better.
Last updated