CustomerInformationNeededNonInteractive

public struct CustomerInformationNeededNonInteractive : Decodable, Sendable

Response indicating that customer information is needed through a non-interactive flow.

This response is returned by GET /deposit or GET /withdraw requests in SEP-6 when the anchor needs specific KYC fields from the user. The wallet should collect these fields and submit them via SEP-12.

This approach allows wallets to collect information directly without redirecting users to an external web interface.

See SEP-6 Customer Information Needed

  • Always set to non_interactive_customer_info_needed

    Declaration

    Swift

    public let type: String
  • A list of field names that need to be transmitted to the /customer endpoint for the deposit to proceed.

    Declaration

    Swift

    public let fields: [String]
  • Initializer - creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data