Skip to content

Rate Limit ​

Application Limit ​

ItemValue
Counted per(AppID, client IP) pair — all /api/v1/openapi/* endpoints share one counter
Quota600 requests per window (about 10 requests / second sustained)
Window60 seconds, fixed: it starts with the first counted request and the counter resets when it expires (not a rolling window)
What countsEvery request that carries all four authentication headers (X-App-Id, X-Timestamp, X-Nonce, X-Signature) with valid lengths. The counter is checked before the timestamp and signature, so requests that then fail authentication (401) count too
ExceededHTTP 429, code 42900, error_key too_many_requests, header Retry-After: 60

The quota is the same for every account. Retry-After is the full window length — a safe upper bound; the counter may reset sooner.

429 Response ​

http
HTTP/1.1 429 Too Many Requests
Retry-After: 60
Content-Type: application/json
json
{
  "code": 42900,
  "message": "Too many requests",
  "error_key": "too_many_requests"
}

message is localized by Accept-Language (see Error Codes); branch on code / error_key, never on message.

Other Sources of 429 ​

The same 42900 / too_many_requests response (always with Retry-After) is also returned by:

SourceWhenRetry-After
Sensitive card information/card/info with with_sensitive=true: verification locked after repeated wrong codes, or PIN locked600 (a conservative hint)
Verification-code sending/card/sensitive/send_code: one send per account per 60 sSeconds left in the cooldown
Random billing address/cardholder/billing_address/random: at most 60 calls per account per 60 s (all credentials of the account combined)Seconds left in the window
GatewayThe gateway in front of the API applies its own per-client-IP limit before the request reaches the applicationUsually short (seconds)

The gateway's 429 has the same body shape ({"code": 42900, "message": "…", "error_key": "too_many_requests"}). If a 429 ever arrives without this JSON body (e.g. from a proxy), treat it exactly the same way: wait for Retry-After (or back off if it is missing), then retry.

Client Recommendations ​

1. Honor Retry-After, then back off ​

python
import random, time

def call_with_retry(fn, *args, max_attempts=4):
    for attempt in range(max_attempts):
        status, headers, resp = fn(*args)          # HTTP status, response headers, parsed JSON (or None)
        code = resp.get("code") if isinstance(resp, dict) else None
        if status == 429 or code == 42900:
            wait = int(headers.get("Retry-After", 0)) or 2 ** attempt
            time.sleep(min(wait, 60) + random.random())   # add jitter
            continue
        return status, resp                        # check code == 0 before using data
    raise RateLimited("still rate limited after retries")

Don't retry rule violations

Most business errors come back with HTTP 200 and code 40000 / 40001 — retrying them unchanged just repeats the failure, as do 401 / 403 / 404. Retry only on 429 / 42900, on network errors, and (for reads, or writes with the same Idempotency-Key) on 50000 / 5xx.

2. Cap concurrency ​

The limit is shared by all your traffic from one IP under one AppID, including polling. For batch card issuance:

  • Single worker, sequential: stays well below 10 requests / second.
  • Multiple workers: put them behind a queue with a global cap and leave headroom for other traffic (status polling, list calls).
  • Prefer webhooks over tight /card/info polling.

3. Don't trigger the limit "to test" ​

A burst that hits the limit blocks all your traffic from that IP for the rest of the window (up to 60 seconds). Test with small manual flows instead.

With Idempotency ​

A request rejected with 429 was not executed and nothing was stored under its Idempotency-Key. When you retry a write after 429, keep the same Idempotency-Key and the same body: if an earlier attempt did reach the server but its response was lost, the retry replays it instead of opening a second card or charging twice. See Idempotency.

Released under MIT-equivalent terms.