The collection items filter requires a special format.
Use "," for multiple allowed values. Use ";" for multiple fields.
See the filter guide for more options and examples about this format.
sort
Array of strings
The collection items sort field and order (prefix with "-" for descending sort).
Responses
200
A list of KYC documents was retrieved successfully.
Response Headers
Pagination-Total
integer
Total items count.
Example: 332
Pagination-Limit
integer
Items per page limit.
Example: 100
Pagination-Offset
integer
Pagination offset.
Example: 2
Response Schema: application/json
Array
customerId
required
string (CustomerId) <= 50 characters
The customer resource ID. Defaults to UUID v4.
documentType
required
string
Document type submitted for validation, only identity-proof type is analyzed in an automated manner.
status
required
string
Status of the validation.
Enum:
Description
pending
Waiting to be reviewed or analyzed
in-progress
Being analyzed by Rebilly's AI
accepted
Accepted by AI or a human
rejected
Rejected by AI or a human
archived
Archived by Rebilly's AI
id
string <= 50 characters
The resource ID. Defaults to UUID v4.
fileId
string <= 50 characters
Deprecated
Linked file object id.
fileIds
Array of strings
Linked file object id's.
Files uploaded for identity-proof must have following corresponding tags attached ['kyc', 'id-front'], ['kyc', 'id-back'], ['kyc', 'face-proof'] in order to be properly recognized as identity-proof files.
documentSubtype
string
Document subtype submitted for validation.
Enum:"passport""id-card""driver-license""birth-certificate""utility-bill""rental-receipt""lease-agreement""copy-credit-card""credit-card-statement""bank-statement"… 11 more
object (KycDocumentRejection)
type
string (KycDocumentRejectionReasonTypes)
Enum:"document-unreadable""document-expired""document-not-matching""document-duplicate""document-invalid""document-not-open""underage-person""third-party-or-mismatch""expiration-date-missing""issue-date-missing"… 5 more
message
string
The rejection message.
requestId
string or null <= 50 characters
KYC request identifier string.
createdTime
string <date-time>
Creation date/time.
updatedTime
string <date-time> (UpdatedTime)
Read-only timestamp updates when the resource is updated.
processedTime
string <date-time>
Processing date/time.
reviewerId
string or null <= 50 characters
Reviewer's user ID.
reviewerName
string or null
Reviewer's first and last name.
reviewStartTime
string or null <date-time>
Date and time that manual review starts.
reviewTime
string or null <date-time>
Date and time of manual review.
notes
string or null
Reviewer notes.
Array of objects (Tag)
A list of kyc document tags.
Array
name
required
string <= 255 characters ^[@~\-\.\w\s]+$
The tag is unique name, which is case-insensitive.
type
required
string
The tag type. Tags of a specific type could only be used for the corresponding entity.
Enum:"customer""kyc-document"
id
string <= 50 characters
The tag's identifier string.
createdTime
string <date-time>
The tag's created time.
updatedTime
string <date-time> (UpdatedTime)
Read-only timestamp updates when the resource is updated.
Array of Self (object) non-empty
The links related to resource.
reason
string
Reason for uploading.
matchLevel
integer [ 1 .. 2 ]
The level of strictness for the document matches.
object or null
The settings used to score the document.
object
The weights of all matched properties.
object
The thresholds to determine the document status.
revision
integer
The number of times the KYC document data has been modified.
The revision is useful when analyzing webhook data to determine if the change takes precedence over the current representation.
object
score
number <double>
The calculated score that represents the % of confidence that this ID represents the given customer.
object (IdentityMatches)
object
score
number <double>
The calculated score that represents the % of confidence that this ID represents the given customer.
object (IdentityMatches)
Array of Self (object) or CustomerLink (object) >= 2 items
The links related to resource.
Array (>= 2 items)
Any of:
href
required
string
The link URL.
rel
required
string
The link type.
Value:"self"
Array of CustomerEmbed (object) non-empty
Any embedded objects available that are requested by the expand
querystring parameter.
Array (non-empty)
Any of:
Customer object.
object (Customer)
401
Unauthorized access, invalid credentials were used.
403
Access forbidden.
get/kyc-documents
Request samples
JavaScript
curl
Node.js
C#
Python
Java
Go
Ruby
PHP
// 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));