Skip to main content

Errors and rate limits

Errors and status codes​

StatusCodeMeaning
400VALIDATION_ERROR (including a user.phone with no digit), CARD_NUMBER_DETECTED, NUL_CHARACTER_DETECTEDInvalid body. parameter names the field.
400EVENT_NOT_PAYMENTA final payment status was sent for an event that is not a money event.
401AUTH_ERRORMissing or invalid key.
403SCOPE_ERROR, SANDBOX_KEY_FORBIDDEN, ACCOUNT_SHARED_ACROSS_PROJECTSKey lacks the scope, a sandbox key was used for an operation that needs a live one, or the account spans several projects.
404NOT_FOUNDUnknown event_id, account or case.
409EVENT_ID_CONFLICTevent_id reused with a different body.
409PAYMENT_STATUS_FINALThe payment already has a final status that this one cannot replace.
413PAYLOAD_TOO_LARGEBody above the limit.
429RATE_LIMIT_EXCEEDEDSee rate limits.
500INTERNAL_ERRORAn internal failure, for example scoring failed to persist. Safe to retry the same event_id and body.
503ASYNC_UNAVAILABLE, COMPILED_RULES_UNAVAILABLE, PROJECT_POLICY_UNAVAILABLE, RATE_LIMIT_UNAVAILABLEAsync ingestion, the compiled ruleset (sync and async) or the project policy is unavailable, or the rate limiter is not ready. Nothing was scored or stored. Retry with backoff.

Per-endpoint status lists are in the API reference.

Rate limits​

These are the limits on api.defraudo.com for every client. They are counted per minute, in a fixed window.

What is countedLimit
Requests per key, per method and route1,000 per minute
POST /v1/fp/collect, per key10,000 per minute
POST /v1/fp/collect, per key and caller address60 per minute
Failed key lookups (a well-formed key that does not exist or is inactive), per caller address and key environment60 per minute

Responses that pass through the limiter carry a RateLimit-Limit header with the limit that applies to the request. If you expect higher peaks, contact us.

When a limit is hit you get 429. Wait Retry-After seconds before you retry. A 429 from the request limits also carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. A 429 from failed key lookups has Retry-After for that lock; any RateLimit-* headers on it describe the request quota, not the lock. Some 429s are not about these quotas: a rule simulation started while another one is running answers 429 with Retry-After: 2.