Understanding StateSet API rate limits, implementing efficient request patterns, and optimizing API usage for better performance
Endpoint Category | Per Second | Per Minute | Per Hour |
---|---|---|---|
Orders API | 10 | 300 | 5,000 |
Customers API | 5 | 150 | 2,500 |
Returns API | 5 | 150 | 2,500 |
Webhooks | 20 | 600 | 10,000 |
Analytics | 2 | 60 | 1,000 |
Batch Operations
List Operations
limit
parameters consume more quotalimit > 100
count as Math.ceil(limit/100)
requestsWebhook Endpoints
Header | Description |
---|---|
X-RateLimit-Limit | Maximum requests allowed in the current window |
X-RateLimit-Remaining | Requests remaining in the current window |
X-RateLimit-Reset | Unix timestamp when the window resets |
X-RateLimit-Window | Window duration in seconds (60 for per-minute limits) |
X-RateLimit-Category | API category for this endpoint |
Retry-After | Seconds to wait before retrying (present when rate limited) |