CustomerStatus

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 fields property for requirements.

  • REJECTED: Customer was rejected. Check the message property for reason.

Status flow:

  1. New customer starts in NEEDS_INFO status

  2. After submitting information, moves to PROCESSING

  3. May return to NEEDS_INFO if more information is needed

  4. 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:

Entries

Link copied to clipboard

Customer has been approved and can proceed with anchor services.

Link copied to clipboard

Customer information is being reviewed.

Link copied to clipboard

More information is required from the customer.

Link copied to clipboard

Customer was rejected and cannot use anchor services.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.