PutCustomerInfoResponse

@Serializable
data class PutCustomerInfoResponse(val id: String)

Response from a PUT /customer request after uploading or updating customer information.

Contains the customer ID that should be used for all future requests to check status or update information for this customer. The ID is stable and should be persisted for later use.

The response is minimal by design - it only includes the customer ID. To check the current status of the customer's KYC process, make a GET /customer request using this ID.

Example - Initial registration:

val putRequest = PutCustomerInfoRequest(
jwt = authToken,
kycFields = StandardKYCFields(
naturalPersonKYCFields = NaturalPersonKYCFields(
firstName = "John",
lastName = "Doe"
)
)
)

val response = kycService.putCustomerInfo(putRequest)
println("Customer registered with ID: ${response.id}")

// Save this ID for future requests
saveCustomerId(response.id)

Example - Update existing customer:

val putRequest = PutCustomerInfoRequest(
jwt = authToken,
id = savedCustomerId, // Use ID from previous registration
kycFields = StandardKYCFields(
naturalPersonKYCFields = NaturalPersonKYCFields(
emailAddress = "newemail@example.com"
)
)
)

val response = kycService.putCustomerInfo(putRequest)
// Same ID returned
assert(response.id == savedCustomerId)

Example - Check status after submission:

val putResponse = kycService.putCustomerInfo(putRequest)
val customerId = putResponse.id

// Check current status
val getRequest = GetCustomerInfoRequest(
jwt = authToken,
id = customerId
)
val statusResponse = kycService.getCustomerInfo(getRequest)
println("Status: ${statusResponse.status}")

See also:

Constructors

Link copied to clipboard
constructor(id: String)

Properties

Link copied to clipboard
@SerialName(value = "id")
val id: String

Unique identifier for the created or updated customer