/v2/verify/* response carries the same three fields for figuring out what happened: status, error_code, and billed. Branch your integration on error_code, not on message text, message is written for a human and can change wording between releases without notice.
The three fields
"success" for any 2xx response, "error" for a raised, non-2xx response. There’s no "failed" value in v2, a definitive no-match is still "success", see below.null on a full match. Set to an IDTO_* code on a no-record result or on a raised error. The code, not the HTTP status or the message, is what identifies the exact outcome.Whether the call was charged. A call is charged when it finishes with a 2xx
status: "success", unless a verification session already pays for that step; every raised error is false. See Billing for the rule and its cases.No-record is still success
The pattern most integrations trip on: a query that runs cleanly but finds nothing (an invalid PAN, a bank account that doesn’t exist) is not an error. It’s HTTP200, status: "success", data: null, and IDTO_202 in error_code. billed is true: the check still ran and still cost a credit.
Raised errors
Anything that isn’t a full match or a valid no-record result is a raised, non-2xx response:status: "error", billed: false. The HTTP status tells you the category: 400 or 422 for a request to fix, 401, 403 or 404 for credentials, 409 for a duplicate or in-flight request, 429 for a verification source limiting requests (IDTO_006) or used-up OTP attempts (IDTO_206), 503 for a transient condition worth retrying, and 500 for a problem on idto’s side. data, tranx_id and timestamp are on most raised errors but not all; Error response shapes shows exactly what each kind of response carries.
What to do with each outcome
Idempotent retries
Send anIdempotency-Key header on a /v2/verify/* request to make retrying that exact call safe. Replaying the same key with the same body returns the original result rather than running (and billing) the check again. Replaying the same key with a different body is rejected with IDTO_010. A request still in flight under the same key returns IDTO_004. See Idempotency.
Full code reference
The completeIDTO_* table, every code, its HTTP status, its default message, and whether it’s billed, lives on one page: Error codes. This page explains the pattern; that page is the lookup table.
Was this page helpful? Email us at tech@idto.ai with the page link.