Onboarding
Check a person or a business before your service takes them on. Your onboarding policy decides how deep the check goes, by the service and the amount. Each case ends with a decision: approved automatically when the result is clean and your policy allows it, otherwise a reviewer decides. Nothing is rejected automatically.
Tiers
| TIER | DEFAULT FOR | A PERSON | A BUSINESS |
|---|---|---|---|
| 1 · identity data | Non-financial services, e.g. holding credits | National ID number (format and check digit), email (domain accepts mail, not disposable), phone (valid, mobile), age | The company exists and is active |
| 2 · full KYC / KYB | Financial services and virtual currency | Tier 1, sanctions and PEP lists, adverse media, and an ID document with a selfie | Registry checks, sanctions, adverse media, ownership |
| 3 · enhanced | A loan, or an amount at or above your threshold | Tier 2, court records, offshore leaks | A full AML investigation |
The defaults follow Israel's AML orders for payment and virtual-currency services (full identification from ₪50,000 in six months). Change them in the app under Settings → Onboarding policy: the tier for each service, the threshold, the minimum age, from which tier the ID document is needed, and which tiers approve a clean result on their own. Your compliance officer sets the real values; Verety applies them.
POST /api/v1/onboarding
| FIELD | DESCRIPTION |
|---|---|
subjectType | person or company. Required. |
serviceType | non_financial, financial, virtual_currency or loan. Required. |
amount · currency | The six-month volume, or the loan. In the policy's currency (ILS by default) when currency is left out; an amount in another currency isn't compared with the threshold. |
tier | Ask for a deeper tier than the policy gives. Never a lighter one. |
person | name (required), birthDate (YYYY-MM-DD), nationalId, idCountry (the country that issued it), nationality, email, phone (international format). |
company | entityId from search, or country with registrationNumber. |
returnUrl | For a person who verifies an ID document: the https address the verification page sends them to when done. |
clientRef | Your own reference, e.g. your customer id. Unique per account. |
purpose | Why the subject is checked, kept with the case. |
lawfulBasis | Must be true: you have a lawful basis to check this subject, such as their application for your service. Required. |
Answers 201 with the case at once, status running. Uses one check; a case that can't start isn't charged.
National ID numbers are validated by format and check digit for Israel, Brazil (CPF), Norway, the Netherlands, France, Germany, Belgium, Singapore, Canada and Mexico (CURP), and by format for the UK and the US; where the number encodes the date of birth, the two must agree. The number is stored encrypted and only ever shown masked (•••••6782). It's never sent to sanctions lists; it rules out namesakes there.
The ID document
From the tier your policy sets (2 by default), a person also verifies an ID document with a selfie. The case carries identityVerification.verificationUrl: send it to the person, or open it in your own app. On their phone they photograph their ID card, passport or driving licence and take a selfie; the document, liveness and face match are checked, and the document's name, date of birth and ID number are compared with what you sent. Israeli ID cards give names in Hebrew only: they are compared with the English name by transliteration. The link works for 7 days.
While the person hasn't finished, a case whose checks are done is awaiting_subject. It's decided when both are done. Verety keeps the outcome, the document's type, country, name and expiry, and its numbers masked; never the images.
GET /api/v1/onboarding/{caseId}
| FIELD | DESCRIPTION |
|---|---|
status | running, awaiting_subject, in_review, decided or failed (the check was given back; start again). |
decision | approved, review (waiting for a reviewer) or rejected; null while running. |
riskRating | low (clean), medium (something notable) or high (a severe finding). |
tier · tierReason | The tier and why, e.g. "financial service of 60,000 ILS, at or above 50,000". |
findings | The notable checks: { title, agent, risk, compliance, unverified, finding }. |
identityVerification | status (pending, approved, in_review, declined, abandoned, expired), verificationUrl while pending, document, liveness, faceMatch, warnings. |
subject | { type, name, country, entityId, person? }; a person's ID number only as nationalIdMasked. |
decisionReason · decidedBy · reviewer · decidedAt | The latest decision: by policy or a reviewer, and who. |
history | Every decision, oldest first: { at, status, decision, risk, reason, by, from? }; from is the decision a change replaced. |
checkId | The check behind the case, kept for your records. |
GET /api/v1/onboarding lists your cases, newest first: status to filter, limit 1–200 (default 50). Reading cases never uses a check.
POST /api/v1/onboarding/{caseId}/decision
decision (approved or rejected) and reason. Decides a case in review, or one still waiting for the person. A decided case can be changed: a change needs a reason, and the earlier decision stays in history. A rejection always needs a reason.
Webhooks
Cases send onboarding.updated (the checks are done and the case waits for the person or a reviewer; or it failed) and onboarding.decided to your account's webhook, the one set in the app under Settings → Notifications. Each is tried once, then retried every hour up to 3 times. The body names the case and its outcome, with no personal details: read the case for them.
Check X-Verety-Signature before you act on the body: sha256= and the hex HMAC-SHA256 of the raw body, keyed with your webhook secret. Answer with a 2xx within 10 seconds.
Example
Errors
| STATUS | CODE | WHEN |
|---|---|---|
| 400 | lawful_basis_required | lawfulBasis isn't true. |
| 400 | invalid_subject_type · invalid_service_type | Not one of the values above. |
| 400 | missing_name · invalid_birth_date · missing_company · invalid_amount · invalid_return_url | The subject or amount can't be read; message says what to send. |
| 400 | invalid_decision · reason_required | A decision other than approved or rejected; a rejection or a change without a reason. |
| 402 · 403 | insufficient_credits … | No checks left, or no API access: see Errors. |
| 404 | not_found · unknown_id | No such case in your account; the company wasn't found. |
| 409 | duplicate_client_ref | A case with this clientRef exists. The check is given back. |
| 409 | not_reviewable · same_decision | The case is still running or failed; it already has that decision. |
| 503 | not_started | The check or the ID verification couldn't be started. Not charged; try again. |