Customer Status
Status of the customer's KYC process in SEP-12.
Indicates the current state of customer verification and what actions are required to proceed with anchor services.
Status meanings:
ACCEPTED: Customer has been approved. No further action required.
PROCESSING: Customer information is being reviewed. Wait for status update.
NEEDS_INFO: More information is required. Check the
fieldsproperty for requirements.REJECTED: Customer was rejected. Check the
messageproperty for reason.
Status flow:
New customer starts in NEEDS_INFO status
After submitting information, moves to PROCESSING
May return to NEEDS_INFO if more information is needed
Eventually reaches ACCEPTED (approved) or REJECTED (denied)
Example - Check customer status:
val response = kycService.getCustomerInfo(request)
when (response.status) {
CustomerStatus.ACCEPTED -> {
println("Customer approved, can proceed with transfer")
}
CustomerStatus.PROCESSING -> {
println("Verification in progress, please wait")
}
CustomerStatus.NEEDS_INFO -> {
println("More information required:")
response.fields?.keys?.forEach { field ->
println("- $field")
}
}
CustomerStatus.REJECTED -> {
println("Customer rejected: ${response.message}")
}
}See also:
GetCustomerInfoResponse for full customer information
FieldStatus for individual field verification status
Entries
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.