API reference, eKYC

eKYC Pre-fill

POSThttps://demo-api.incodesmile.com/omni/externalVerification/ekyc-prefill

Looks up a person and returns the data the source holds. Depending on the source that can be the name, the date of birth, a tax identification number, addresses, emails, phone details, risk signals and, when the module requests them, driver licences.

The session must contain the eKYC Pre-fill module, and the organization must be provisioned for the module's source. source and countryCode must match the module, so take both from the module in the session's flow configuration rather than hardcoding them, because an organization can switch the source and a request with the old source then returns 400.

Each source uses its own input, and it ignores every other one and never sends it to the source. US_PREFILL looks up by phone and also needs at least one of dateOfBirth, ssn or surName, accepting only the identifiers enabled in the module configuration. US_PREFILL_EXPRESS looks up by phone alone and can return additionalProfiles, other identities linked to the same phone number. BR_PREFILL looks up by taxIdNumber, a Brazilian CPF, alone.

With US_PREFILL, data returned for an identifier that was sent, such as returnedDob when dateOfBirth was sent, usually echoes the input rather than adding new information. US_PREFILL_EXPRESS and BR_PREFILL never receive a second identifier, so their pass confirms nothing else the caller holds, and the person data in it is the source's own record. firstName and includeDriverLicenseData in the request are ignored, and driver licence data comes back only when the module configuration's includeDocumentData is on.

A source can set a minimum age for the people it returns. When it does and the person found is under that age, or the age cannot be established from the returned date of birth, the answer is withheld: checkStatus is pass, no person data is returned, and reasonCodes carries Minor or AgeUnknown. No person data from the source is stored for that lookup, and neither is the identifier that was sent. What is kept is the source, the country, the outcome with its Minor or AgeUnknown code, and the source's own transaction id, so the call can still be reconciled for billing. BR_PREFILL sets the minimum age at 18 and the US sources set none.

A repeated call with the same input in the same session returns the stored result without a new lookup. Lookups are limited per session, and the limit can be lower for some sources. Any answer, pass, partialPass, fail or inconclusive, uses up one lookup of the session, while a 400 or a 503 does not. BR_PREFILL allows one answer per session. After it, a call with a different CPF answers 429, and a repeat of the same CPF returns the stored answer, except after a withheld answer: its CPF was not kept, so the repeat cannot be matched and answers 429 too.

Headers

api-versionstringrequiredDefaults to 1.0

Request body

application/json

pluginsarray[string]
sourcestringrequired≤ 255 chars

Pre-fill source. It must match the source set in the session's eKYC Pre-fill module.

enumUS_PREFILLUS_PREFILL_EXPRESSBR_PREFILL
countryCodestringrequired≤ 255 chars

ISO 3166-1 alpha-2 country code. It must match the module's country. A mismatch returns 400 naming the expected value.

phonestring≤ 255 chars

Phone number in E.164 format, with the country code. Required by US_PREFILL and US_PREFILL_EXPRESS. BR_PREFILL does not use it and never sends it to the source.

dateOfBirthstring≤ 255 chars

Date of birth, yyyy-MM-dd, not in the future and not more than 130 years ago. For US_PREFILL, send at least one of dateOfBirth, ssn or surName, and only the ones enabled in the module configuration. US_PREFILL_EXPRESS and BR_PREFILL do not use it and never send it to the source.

ssnstring≤ 255 chars

Social security number, 9 digits or XXX-XX-XXXX. US_PREFILL_EXPRESS and BR_PREFILL do not use it and never send it to the source.

surNamestring≤ 100 chars

Last name. US_PREFILL_EXPRESS and BR_PREFILL do not use it and never send it to the source.

taxIdNumberstring≤ 255 chars

Brazilian CPF, 11 digits or XXX.XXX.XXX-XX. Required by BR_PREFILL and it is the only input that source uses. The check digits are verified before the lookup, so an invalid CPF returns 400 without calling the source. The example value fails that check on purpose, so that no real CPF appears in these docs: send a real one. The US sources do not use it and never send it to the source.

Responses

no body