Skip to Content
v1.5Official documentation for the LX CloudPos API · stable in production

Rate limiting

Limits

MetricValue
Requests per minute120 per API key
WindowFixed window of 60 s
Partitioned byapi_key_id (falling back to IP if the call isn’t authenticated)
Maximum body256 KB per request

Response headers

X-RateLimit-Limit: 120 X-RateLimit-Remaining: 73 X-RateLimit-Reset: 1747234560

When the limit is exceeded

HTTP/1.1 429 Too Many Requests Retry-After: 23
{ "error": "Rate limit excedido." }
async function withRateLimitHandling(fn, maxRetries = 5) { for (let i = 0; i < maxRetries; i++) { try { return await fn(); } catch (err) { if (err.response?.status === 429) { const retryAfter = parseInt(err.response.headers['retry-after'] || '60'); await sleep(retryAfter * 1000); continue; } throw err; } } throw new Error('Rate limit excedido tras 5 reintentos'); }

Raising the limit

If your legitimate volume exceeds 120/min, contact support. The limit can be raised for a specific key.

See also: client retries and idempotency.