get Customer Files
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
file Id
Optional file ID to retrieve specific file info
customer Id
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
)Content copied to clipboard