uploadIdentityDocuments

suspend fun uploadIdentityDocuments(customerIdentityId: String, filesToUpload: List<FileUpload>): Pair<CustomerIdentity?, NetworkingError?>

Uploads identity document files for a customer identity record via a multipart request.

Return

A Pair where the first element is the updated CustomerIdentity on success, and the second element is a NetworkingError on failure; one of the two will be null.

Parameters

customerIdentityId

The unique identifier of the customer identity record to attach the documents to.

filesToUpload

The list of FileUpload objects representing the document files to send.


fun uploadIdentityDocuments(customerIdentityId: String, filesToUpload: List<FileUpload>, completionHandler: (CustomerIdentity?, NetworkingError?) -> Unit)

Uploads identity document files for a customer identity record via a multipart request and delivers the result to the provided callback.

Parameters

customerIdentityId

The unique identifier of the customer identity record to attach the documents to.

filesToUpload

The list of FileUpload objects representing the document files to send.

completionHandler

Invoked with the updated CustomerIdentity on success, or a NetworkingError on failure; one of the two arguments will be null.