KycApi
Interfaces
KycStatusResponse
KycStatusResponseinterface KycStatusResponse {
complete: boolean,
success: boolean,
distance: number,
createdAt: string,
completedAt: string,
webhook: string|null
}KycDetailsResponse
KycDetailsResponseinterface KycDetailsResponse {
idCardPictureUrl: string,
selfiePictureUrl: string
}Methods
constructor(app, endpoint)
constructor(app, endpoint)Create a KYC API object.
appshould be an instance of theApplicationReferenceobject.endpointshould be the Vulos Identity endpoint.
async status(kycId)
async status(kycId)Get the status of a KYC verification instance by ID.
The result implements the KycStatusResponse interface.
async list(page, pageSize)
async list(page, pageSize)Get a list of all the KYC verification instance IDs.
pagedefaults to 0;pageSizedefaults to 10;
The result is an array of KYC Instance IDs.
async upload(selfiePicture, idCardPicture)
async upload(selfiePicture, idCardPicture)Upload KYC verification details for later use, both of the arguments must be objects that inherit from Blob (like File).
The result implements the KycDetailsResponse interface.
async create(selfiePicture, idCardPicture, webhook)
async create(selfiePicture, idCardPicture, webhook)Make a KYC verification request, the first two arguments may be objects that inherit from Blob or URLs returned by the upload() method, the webhook argument is optional.
The result is the ID of the KYC Instance that was created.
The webhook must be in the application's redirect URLs otherwise the server will return the "Bad Request" response.
Last updated