Looking for ePay classic docs? Go to docs.epay.dk
ePay documentationDocsePay documentation

Rate Limits

Understand normal API rate limits, bursts, and the sustained index limit that prevents continuous polling. Use response headers to handle retries and webhooks for live updates.

How Rate Limits Work

Each request consumes from a limit “bucket.” Some limits allow a burst, which lets you temporarily exceed the steady rate before being throttled. If you exceed a limit, the API responds with HTTP 429 and an error code.


Response Headers

Every rate‑limited endpoint includes these headers:

  • X-RateLimit-Limit: Maximum number of requests allowed in the current window.
  • X-RateLimit-Remaining: Requests remaining in the current window.
  • X-RateLimit-Reset: Unix timestamp (seconds) when the limit fully resets.
  • Retry-After: Seconds to wait before retrying (present when throttled).

Example headers:

X-RateLimit-Limit: 60X-RateLimit-Remaining: 12X-RateLimit-Reset: 1735689600Retry-After: 5

Sustained limit headers

Index endpoints also include these headers:

  • X-RateLimit-Sustained-Limit: Sustained refill rate in requests per minute.
  • X-RateLimit-Sustained-Remaining: Requests remaining in the sustained burst budget.
  • X-RateLimit-Sustained-Reset: Unix timestamp (seconds) when the sustained budget fully replenishes without further requests.

Example headers:

X-RateLimit-Sustained-Limit: 1X-RateLimit-Sustained-Remaining: 899X-RateLimit-Sustained-Reset: 1735689660

Exceeding a limit

When a limit is exceeded, you will receive:

HTTP/1.1 429 Too Many Requests{  "success": false,  "errorCode": "RATE_LIMIT_REACHED",  "message": "Too many requests"}

Rate Limit Categories

Different endpoint categories have different limits. The following limits are currently enforced:

Note: A burst allows short spikes above the steady rate. After a burst is consumed, requests will be throttled until the bucket refills.

Note: Resource / Operation rate limits are grouped per resource id. Meaning you can capture as many transactions as you need, but cannot capture the same transaction more than 5 times a minute.

1) Single MIT transactions

  • Rate: 5 requests / second
  • Burst: 300
  • Ingestion: 300 transactions / minute

2) Batch MIT transactions

  • Rate: 1 batch / second
  • A batch contains maximum 500 transactions
  • Ingestion: 30.000 transactions / minute

3) Resource endpoints

  • Rate: 5 requests / minute / resource

4) Operation endpoints (capture, void, refund)

  • Rate: 5 requests / minute / transaction

5) Index endpoints

Index endpoints have two limits, applied together for each merchant and endpoint:

LimitRefill rateBurst
Normal1 request / 5 seconds30 requests
Sustained1 request / minute900 requests

The normal limit controls short-term request frequency and lets you paginate through your data efficiently. For normal access, this is the limit you generally need to plan around.

Understanding sustained rate limits

The sustained limit is designed to prevent continuous polling at short intervals, such as requesting updates every five seconds throughout the day. Normal use should not reach it; for ordinary access, focus on the normal rate limit.

A full sustained burst budget covers 900 index requests, even before accounting for replenishment while you paginate. At the maximum page size of 500 records, this is equivalent to fetching up to 450,000 records before the sustained limit has any impact. The normal limit still controls how quickly you can make those requests; the 900-request burst does not allow 900 requests at once.

The sustained budget replenishes continuously at one request per minute, up to 900 requests. Once exhausted, that refill rate determines how quickly further requests can proceed. Pauses between periods of activity allow the budget to recover.

Live updates

If you need live updates, use webhooks instead of polling. Subscribe to the relevant events through the webhook API, and use index endpoints for initial imports, reconciliation, or occasional lookups.


Best Practices

  • Use Retry-After to back off before retrying.
  • Avoid polling - Use webhooks where available.
  • Use batch endpoints for high‑volume processing.
  • Handle 429 responses gracefully with exponential backoff.

If you have a use case that requires higher limits, contact support to discuss options.

How is this guide?