⚡ Rate Limits

The Dutchie Point of Sale API implements fair usage policies to ensure optimal performance for all users. Our rate limits are designed to accommodate normal business operations while preventing abuse.

📊 Rate Limit Structure

Rate limits are applied per-endpoint and per-API-key, measured in requests per minute. The API uses a baseline rate limit with endpoint-specific variations based on resource intensity and usage patterns.

🎯 Rate Limit Tiers

Endpoint Category Rate Limit Examples Reasoning
Standard Endpoints 120/min GET /products, GET /customers Baseline rate for most operations
High-Traffic Endpoints 200/min GET /inventory, GET /whoami Frequently accessed, optimized data
Resource-Intensive 60/min Reporting endpoints Complex queries, larger datasets
Bulk Operations 10/min Batch imports, bulk updates High server resource usage
💡 Baseline Rate: The standard rate limit is 120 requests per minute per API key. Most endpoints use this baseline unless specifically configured otherwise for performance reasons.

🔍 Finding Endpoint Rate Limits

Each endpoint's specific rate limit is documented in its API reference documentation under the "Performance & Limits" section. Look for:

⚠️ Rate Limit Changes: Rate limits may be adjusted based on system performance and usage patterns. Always refer to the current endpoint documentation for the most up-to-date limits.

🚨 Rate Limit Exceeded

When you exceed the rate limit, the API returns a 429 Too Many Requests response:

HTTP/1.1 429 Too Many Requests
Content-Type: application/json

{
  "Message": "Too many requests - only 120 per minute allowed",
  "TraceId": "0HM2AFJV13H6F:00000001"
}

Handling Rate Limits

🔧 Best Practices

Efficient API Usage

Error Handling

🎯 Rate Limit Planning & Optimization

📊 Capacity Planning

Plan your integration based on the baseline 120 requests/minute (2 requests/second) rate limit:

🎯 Planning Example: If you need to sync 1,000 customers daily, that's ~42 API calls per hour, well within the 7,200/hour capacity. You can safely sync every 5 minutes during business hours.

Data Caching Strategy

Request Distribution

Monitoring and Alerting