putCustomerInfo

Uploads or updates customer information for KYC verification.

Submits customer data to the anchor in an authenticated and idempotent manner. Supports text fields, binary file uploads, verification codes, and file references.

Return

PutCustomerInfoResponse with the customer ID

Parameters

request

PutCustomerInfoRequest containing customer data and authentication

Throws

If field validation fails (400)

If JWT token is invalid (401)

If customer already exists (409)

For other errors

Example:

val request = PutCustomerInfoRequest(
jwt = authToken,
kycFields = StandardKYCFields(
naturalPersonKYCFields = NaturalPersonKYCFields(
firstName = "John",
lastName = "Doe",
emailAddress = "john@example.com"
)
)
)
val response = kycService.putCustomerInfo(request)
println("Customer ID: ${response.id}")