Setu Aadhaar eKYC API client.
Flow
create/2— initiate request, receivekycURL- Redirect customer to
kycURLfor Aadhaar OTP verification - Poll
get/2or receive webhook untilcomplete?/1istrue
Status lifecycle: CREATED → KYC_REQUESTED → SUCCESS | ERROR
Setu docs: https://docs.setu.co/data/kyc (eKYC section)
Summary
Functions
Returns true when the eKYC request has completed successfully.
Initiates an eKYC request. Redirect the customer to the returned kycURL.
Retrieves status and Aadhaar data. Poll until complete?/1 returns true.
Functions
Returns true when the eKYC request has completed successfully.
@spec create(SetuClient.Config.t(), map()) :: {:ok, map()} | {:error, SetuClient.Error.t()}
Initiates an eKYC request. Redirect the customer to the returned kycURL.
Optional params
:webhook_url,:redirection_url
POST /api/ekyc/
@spec get(SetuClient.Config.t(), String.t()) :: {:ok, map()} | {:error, SetuClient.Error.t()}
Retrieves status and Aadhaar data. Poll until complete?/1 returns true.
GET /api/ekyc/:id