Skip to content

Error Handling

The Revolutio API uses standard HTTP status codes and returns errors as JSON objects.

Error response format

{
  "error": "Human-readable error message"
}

Some errors include additional context fields:

{
  "error": "Insufficient subscription: you are not subscribed to search in this jurisdiction",
  "jurisdiction": "DE",
  "hint": "Check your subscription coverage or contact support"
}
{
  "error": "Insufficient credits. This search requires 5 credit(s).",
  "volume_remaining": 0,
  "cost": 5
}

HTTP status codes

Code Meaning Common causes
200 Success Request completed (check status on async searches). JSON mode on GET /document/{id}?format=json returns { url, fileName }.
302 Found Default response on GET /document/{documentId}, redirecting to a time-limited signed download URL (valid for 15 minutes).
400 Bad Request Missing required fields, invalid jurisdiction or expand source, invalid webhook_url, malformed IDs
401 Unauthorized Missing/invalid credentials, expired ID token, revoked API key
402 Payment Required Insufficient volume_remaining (user wallet or organisation credit pool), or missing organisation credit pool
403 Forbidden Jurisdiction not subscribed; fund search not enabled; registry expand blocked by organisation policy; account locked; not case owner
404 Not Found Search, case, document, or user profile missing
405 Method Not Allowed Wrong HTTP method
409 Conflict Expand already done or already PENDING for that entity/source. Expand-layers root_not_ready or an already-running layers job.
429 Too Many Requests Search rate limit or auth lockout
500 Internal Server Error Server-side failure (search/IDFinder credits refunded when applicable)
502 Bad Gateway Upstream auth or registry failure

Common scenarios

Authentication

{ "error": "Email and password must be provided" }
{ "error": "Invalid JSON" }
{ "error": "INVALID_LOGIN_CREDENTIALS" }
{ "error": "INVALID_PASSWORD" }
{ "error": "INVALID_EMAIL" }
{ "error": "Too many attempts. Try again later." }
{ "error": "Missing Authorization or X-API-Key header" }
{ "error": "Invalid or expired token" }
{ "error": "Your account access has been suspended. Please contact support." }

Search / expand

{ "error": "Missing identifier and/or jurisdiction input" }
{ "error": "Missing legal_name and/or jurisdiction input" }
{ "error": "Unsupported jurisdiction: XX" }
{
  "error": "Insufficient subscription: you are not subscribed to search in this jurisdiction",
  "jurisdiction": "DE",
  "hint": "Check your subscription coverage or contact support"
}
{ "error": "Fund search is not enabled for this account" }
{ "error": "Only the case owner can expand a counterparty" }
{ "error": "Registry expand is not allowed for this company" }
{ "error": "Only the case owner can start an expand-layers job" }
{
  "error": "Insufficient credits. This search requires 5 credit(s).",
  "volume_remaining": 0,
  "cost": 5
}
{
  "error": "Insufficient credits. This case requires 1 credit(s).",
  "volume_remaining": 0,
  "cost": 1
}
{
  "error": "Organisation credit pool is not available.",
  "volume_remaining": 0,
  "cost": 5
}
{ "error": "Rate limit exceeded" }
{
  "error": "No registration number or legal name for this company."
}
{
  "error": "Case target search is not complete",
  "code": "root_not_ready"
}
{
  "error": "An expand-layers job is already running on this case",
  "code": "already_running"
}

IDFinder

{ "error": "Missing legalName" }
{
  "error": "Insufficient credits. IDFinder requires 1 credit(s).",
  "cost": 1,
  "volume_remaining": 0
}

Empty successful lookup (not an error):

[]

Case / document

{ "error": "Missing caseId" }
{ "error": "Invalid searchId format" }
{ "error": "Missing legal_name" }
{ "error": "Missing documentId" }
{ "error": "Invalid documentId format" }
{ "error": "Case not found" }
{ "error": "Document not found" }
{ "error": "File not found" }
{ "error": "Only GET allowed" }
{ "error": "Failed to retrieve document" }

GET /casefile/?legal_name= returns 200 and [] when you own no case with that exact target name. That includes a name that exists only on another account. It does not return 404 or 403.

Credits, organisation pools & automatic refunds

Credit wallets (user vs. organisation pool)

  • Individual accounts: credits are debited from and refunded to the caller's personal volume_remaining balance.
  • Organisation accounts: when an account belongs to an organisation (organisationId), all credit charges and automatic refunds apply to the shared organisation credit pool. If the organisation credit pool is not configured or unavailable, billed endpoints return 402 Payment Required with { "error": "Organisation credit pool is not available.", "volume_remaining": 0, "cost": <n> }.

Per-search billing vs. Case billing (billingMode: "case")

Organisations can operate in one of two credit billing modes:

  1. Per-search billing (default): each registry search, registry expand, numeric include.financials extraction, POST /idfinder lookup, and positive-cost LEI lookup is billed individually according to Data Coverage.
  2. Case billing (billingMode: "case"): opening a new case via POST /search (corporate or fund) charges a flat 1 credit up front from the organisation pool (402 { "error": "Insufficient credits. This case requires 1 credit(s).", "volume_remaining": 0, "cost": 1 } if depleted) and stamps billingMode: "case" on the Case File. Inside a case-billed case:
  3. Root registry search, POST /search/expand hops, POST /search/expandlayers hops, include.financials, and include.lei / POST /searchgleif/lei consume 0 additional credits.
  4. Standalone POST /idfinder calls are not attached to a caseId and remain billed per lookup (default 1 credit, refunded on empty result or error).

Automatic credit refunds

Operation Per-search billing: charged when Per-search billing: refunded when Case billing (billingMode: "case")
Case creation (POST /search) Not charged separately — 1 credit charged up front; refunded only if case creation fails before the case is saved (not refunded if the search later ends FAILED)
Search / expand (registry base) Request accepted Search ends FAILED / processing error 0 additional credits
Non-registry expand (source = regulator / exchange) 0 credits — 0 credits
include.financials After success, only if numeric financials returned Not charged if no financials returned 0 additional credits
include.lei / POST /searchgleif/lei Before GLEIF calls (often 0) No match or failure 0 additional credits
POST /idfinder Request accepted Empty array [] or server failure Billed per lookup; refunded on empty array [] or server failure

Client errors (4xx) rejected before processing begins never consume credits.