check in under 25 ms and track in under 100 ms at p99, at 1,000 requests a second per Live key. Sandbox has its own capacity, so testing never slows production.
Latency
Rate limits
Ledger limits how many requests each API key can make per second. Sandbox and Live keys have separate limits, so testing never uses up production capacity.
Each limit is per API key.
check, track and the reservation calls share one budget: 600 checks and 400 tracks a second use all of a Live key’s 1,000. Treat these as maximums, not targets. Each row of the table is counted on its own, so a backfill of usage reads never slows down your check calls.
When you hit a limit
Ledger answers429 with { "error": "rate_limited" } and a Retry-After header giving the seconds to wait. Nothing was recorded, so send the same request again after that. Retrying track with the same request_id is always safe. Every response also carries RateLimit-Remaining and RateLimit-Reset headers, so you can slow down before you reach the limit.
Spread bulk work, such as a backfill or a catalog script, over time rather than sending it all at once. The SDKs fail open on a 429 from check or track.
Failed requests
Repeated401 responses from one IP address (for IPv6, one /64), about 30 in a row, make Ledger refuse further requests from that address for a short time. A key that has worked recently keeps working. Check your key if you see 401s. Only 401s count; a 403 for a key without a permission leaves the count alone.
Dollar balances
Credits are stored as whole numbers up to 2,147,483,647 per grant and per charge. On a dollar balance at 100,000 credits per dollar, that is $21,474.83, the most a plan, pack or item can hold.Request size
Request bodies are limited to 1 MiB, far more than the largest catalog. A bigger body gets413 with { "error": "payload_too_large" }.
Values
A value past its limit gets
400 invalid_request, with issues naming the field.