AccountHolderServiceAsync

Types

Link copied to clipboard
interface WithRawResponse

A view of AccountHolderServiceAsync that provides access to raw HTTP responses for each method.

Functions

Link copied to clipboard
abstract suspend fun create(params: AccountHolderCreateParams, requestOptions: RequestOptions = RequestOptions.none()): AccountHolderCreateResponse

Create an account holder and initiate the appropriate onboarding workflow. Account holders and accounts have a 1:1 relationship. When an account holder is successfully created an associated account is also created. All calls to this endpoint will return a synchronous response. The response time will depend on the workflow. In some cases, the response may indicate the workflow is under review or further action will be needed to complete the account creation process. This endpoint can only be used on accounts that are part of the program that the calling API key manages.

Link copied to clipboard
open suspend fun list(requestOptions: RequestOptions): AccountHolderListPageAsync

abstract suspend fun list(params: AccountHolderListParams = AccountHolderListParams.none(), requestOptions: RequestOptions = RequestOptions.none()): AccountHolderListPageAsync

Get a list of individual or business account holders and their KYC or KYB evaluation status.

Link copied to clipboard
abstract suspend fun listDocuments(params: AccountHolderListDocumentsParams, requestOptions: RequestOptions = RequestOptions.none()): AccountHolderListDocumentsResponse
open suspend fun listDocuments(accountHolderToken: String, requestOptions: RequestOptions): AccountHolderListDocumentsResponse

open suspend fun listDocuments(accountHolderToken: String, params: AccountHolderListDocumentsParams = AccountHolderListDocumentsParams.none(), requestOptions: RequestOptions = RequestOptions.none()): AccountHolderListDocumentsResponse

Retrieve the status of account holder document uploads, or retrieve the upload URLs to process your image uploads.

Link copied to clipboard
abstract suspend fun retrieve(params: AccountHolderRetrieveParams, requestOptions: RequestOptions = RequestOptions.none()): AccountHolder
open suspend fun retrieve(accountHolderToken: String, requestOptions: RequestOptions): AccountHolder

open suspend fun retrieve(accountHolderToken: String, params: AccountHolderRetrieveParams = AccountHolderRetrieveParams.none(), requestOptions: RequestOptions = RequestOptions.none()): AccountHolder

Get an Individual or Business Account Holder and/or their KYC or KYB evaluation status.

Link copied to clipboard
abstract suspend fun retrieveDocument(params: AccountHolderRetrieveDocumentParams, requestOptions: RequestOptions = RequestOptions.none()): Document

open suspend fun retrieveDocument(documentToken: String, params: AccountHolderRetrieveDocumentParams, requestOptions: RequestOptions = RequestOptions.none()): Document

Check the status of an account holder document upload, or retrieve the upload URLs to process your image uploads.

Link copied to clipboard
abstract suspend fun simulateEnrollmentDocumentReview(params: AccountHolderSimulateEnrollmentDocumentReviewParams, requestOptions: RequestOptions = RequestOptions.none()): Document

Simulates a review for an account holder document upload.

Link copied to clipboard

abstract suspend fun simulateEnrollmentReview(params: AccountHolderSimulateEnrollmentReviewParams = AccountHolderSimulateEnrollmentReviewParams.none(), requestOptions: RequestOptions = RequestOptions.none()): AccountHolderSimulateEnrollmentReviewResponse

Simulates an enrollment review for an account holder. This endpoint is only applicable for workflows that may required intervention such as KYB_BASIC.

Link copied to clipboard
abstract suspend fun update(params: AccountHolderUpdateParams, requestOptions: RequestOptions = RequestOptions.none()): AccountHolderUpdateResponse

open suspend fun update(accountHolderToken: String, params: AccountHolderUpdateParams, requestOptions: RequestOptions = RequestOptions.none()): AccountHolderUpdateResponse

Update the information associated with a particular account holder (including business owners and control persons associated to a business account). If Lithic is performing KYB or KYC and additional verification is required we will run the individual's or business's updated information again and return whether the status is accepted or pending (i.e., further action required). All calls to this endpoint will return a synchronous response. The response time will depend on the workflow. In some cases, the response may indicate the workflow is under review or further action will be needed to complete the account creation process. This endpoint can only be used on existing accounts that are part of the program that the calling API key manages.

Link copied to clipboard
abstract suspend fun uploadDocument(params: AccountHolderUploadDocumentParams, requestOptions: RequestOptions = RequestOptions.none()): Document

open suspend fun uploadDocument(accountHolderToken: String, params: AccountHolderUploadDocumentParams, requestOptions: RequestOptions = RequestOptions.none()): Document

Use this endpoint to identify which type of supported government-issued documentation you will upload for further verification. It will return two URLs to upload your document images to - one for the front image and one for the back image.

Link copied to clipboard

Returns a view of this service with the given option modifications applied.

Link copied to clipboard

Returns a view of this service that provides access to raw HTTP responses for each method.