States and Selectors - Template
|-/redux
|
|-/kyc
|- index.ts
|- kycSlice.ts
|- kycThunks.ts
How to get pending documents?
Invoke fetchGetRequiredDocuments
from redux/kyc
using LinkerStudio/core/hooks useAppDispatch
import {useAppDispatch} from 'LinkerStudio/core/hooks';
const dispatch = useAppDispatch();
await dispatch(fetchGetRequiredDocuments());
How to upload a pending document?
Invoke fetchPostRequiredDocument
from redux/kyc
using LinkerStudio/core/hooks useAppDispatch
import {useAppDispatch} from 'LinkerStudio/core/hooks';
const dispatch = useAppDispatch();
await dispatch(fetchPostRequiredDocument(body));
Parameter
Type
Description
body
Document
The object with the data of the document: id, the base64 of the document, the file type, the file name, a note usually describing the device and platform and the selected option for the document.
Last updated
Was this helpful?