PutCustomerVerificationRequest

data class PutCustomerVerificationRequest(val jwt: String, val id: String, val verificationFields: Map<String, String>)

Deprecated

Deprecated in SEP-12 v1.12.0. Use PutCustomerInfoRequest with verificationFields instead.

Replace with

import com.soneso.stellar.sdk.sep.sep12.PutCustomerInfoRequest
PutCustomerInfoRequest(jwt = jwt, id = id, verificationFields = verificationFields)

Request for verifying customer information fields using confirmation codes.

DEPRECATED: This endpoint is deprecated as of SEP-12 v1.12.0. Use PutCustomerInfoRequest with verificationFields instead.

This was previously used to submit verification codes sent by the anchor to confirm contact information such as email addresses or phone numbers. The functionality has been merged into the main PUT /customer endpoint.

Migration example:

// OLD (deprecated):
val oldRequest = PutCustomerVerificationRequest(
jwt = authToken,
id = customerId,
verificationFields = mapOf(
"email_address_verification" to "123456"
)
)
kycService.putCustomerVerification(oldRequest)

// NEW (recommended):
val newRequest = PutCustomerInfoRequest(
jwt = authToken,
id = customerId,
verificationFields = mapOf(
"email_address_verification" to "123456"
)
)
kycService.putCustomerInfo(newRequest)

See also:

Constructors

Link copied to clipboard
constructor(jwt: String, id: String, verificationFields: Map<String, String>)

Properties

Link copied to clipboard
val id: String

Customer ID from previous PUT request

Link copied to clipboard
val jwt: String

JWT token from SEP-10 or SEP-45 authentication

Link copied to clipboard

Verification codes with _verification suffix