getCustomerFiles

suspend fun getCustomerFiles(jwt: String, fileId: String? = null, customerId: String? = null): GetCustomerFilesResponse

Retrieves information about files previously uploaded.

Allows clients to query metadata about uploaded files by either file ID or customer ID.

Return

GetCustomerFilesResponse containing a list of file metadata

Parameters

jwt

SEP-10 JWT token for authentication

fileId

Optional file ID to retrieve specific file info

customerId

Optional customer ID to retrieve all files for a customer

Throws

If JWT token is invalid (401)

For other errors

Example:

// Get specific file info
val filesResponse = kycService.getCustomerFiles(
jwt = authToken,
fileId = fileId
)

// Get all files for a customer
val filesResponse = kycService.getCustomerFiles(
jwt = authToken,
customerId = customerId
)