// all parameters are optionalconst firstCollection =await api.kycDocuments.getAll();// alternatively you can specify one or more of themconst params ={limit:20,offset:100,sort:'-createdTime'};const secondCollection =await api.kycDocuments.getAll(params);// access the collection items, each item is a Member
secondCollection.items.forEach(document=> console.log(document.fields.documentType));
Responses
200
List of KYC documents retrieved.
Response Headers
Pagination-Total
integer
Total number of items.
Example: 332
Pagination-Limit
integer
Maximum number of items per page.
Example: 100
Pagination-Offset
integer
Specifies the starting point within the collection of resource results. For example, a request with limit=20 retrieves and displays the first 20 results on a page. A following request with limit=20 and offset=20, retrieves the next page of 20 results.
Example: 2
Response Schema: application/json
Array
id
string <= 50 characters
ID of the KYC document.
fileIds
required
Array of strings
IDs of linked file objects.
Uploaded identity-proof files must have the following tags attached to be used for KYC purposes: ['kyc', 'id-front'], ['kyc', 'id-back'], ['kyc', 'face-proof'].
documentType
required
string (KycDocumentTypes)
Document type submitted for validation. Only the identity-proof and address-proof types are analyzed automatically.