Skip to main content
Every /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

string
"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.
string | null
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.
boolean
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 HTTP 200, status: "success", data: null, and IDTO_202 in error_code. billed is true: the check still ran and still cost a credit.
Treat this as a distinct, expected outcome in your application, alongside “matched” and “raised error”, not as a failure to catch and retry.

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 an Idempotency-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 complete IDTO_* 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.
Last modified on October 4, 2026