Skip to main content

Limits

Rate limits are enforced per API key with a sliding window of 60 seconds. The limit is set by the shop owner when generating the key from the seller dashboard. The SDK automatically retries 429 responses — you only need to handle them if all retries are exhausted.

Checking remaining requests

After every successful request, the SDK populates shop.rateLimit with the current window state:

Displaying rate limit state in UI

Handling 429 in UI

The SDK retries 429 responses automatically using the Retry-After header. Your catch block only runs if all retries are exhausted.