Skip to content

Rate Limiting & Daily Limits

Rate Limiting

All API endpoints are rate-limited to 60 requests per minute per reseller. This applies to all endpoints including the token endpoint.

If you exceed the rate limit, you will receive:

json
// Status: 429
{
  "message": "Too many requests."
}

Recommendation: Add a small delay between rapid sequential requests. If you receive a 429 response, wait a few seconds before retrying.

Daily Spending Limit

Each reseller has a daily spending limit (in LYD) configured during onboarding. This is a shared cap across both voucher generation and deposits combined.

For example, if your daily limit is 5,000 LYD:

ActionAmountUsed TodayRemaining
Generate 100 LYD voucher1001004,900
Generate 100 LYD voucher1002004,800
Deposit 500 LYD5007004,300
Generate 50 LYD voucher507504,250

The limit resets daily at midnight.

When the limit is exceeded

Both the voucher generation and deposit endpoints return a 422 response with details:

json
{
  "message": "Daily limit exceeded.",
  "daily_max_amount": 5000,
  "used_today": 4950,
  "remaining": 50,
  "requested": 100
}
FieldDescription
daily_max_amountYour configured daily limit in LYD
used_todayTotal amount used today (vouchers + deposits)
remainingHow much you can still use today
requestedThe amount you tried to use in this request

Increasing your limit

Contact the Academia team to request a daily limit increase.

Academia API Integration Documentation