SkyHub API English
  • About SkyHub API
  • Sandbox and Production Environments
  • Authentication and Data Format
  • Pagination and Filters
  • HTTP Response Status Codes
  • Request Limits
  • Getting Started
  • Best Practices
  • Homologation Process
  • Freight Service
  • SkyHub API Guides
    • Product Integration
    • How to homologate my integration with SkyHub?
    • Shipping Label Service
    • Order integration and its statuses
    • Order and Product Filtering
    • Deleting items via API
    • Queues - Order Integration Queue
    • Product Category
    • Best practices for updating price and inventory
    • Homologation - "B2W Entrega" Shipping Label
    • Products Attributes
    • Query Synchronization and Production Errors
Powered by GitBook
On this page
  • Monitor your application
  • Beware of the request limit
  • Use only the necessary

Was this helpful?

Best Practices

PreviousGetting StartedNextHomologation Process

Last updated 6 years ago

Was this helpful?

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 . 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:

curl --request PUT \
  --url https://api.skyhub.com.br/products/sku123 \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'X-User-Email: name@email.com' \
  --header 'X-Api-Key: YOUR-API-KEY-HERE' \
  --header 'X-Accountmanager-Key: token_account'\
  --data '{"qty":0}'

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.

limits of our API requests