Accounts
|-/redux
|
|-/accounts
|- index.ts
|- accountsSlice.ts
|- accountsThunks.ts
How to get Internal Accounts?
Invoke fetchInternalAccounts
, from redux/accounts
using LinkerStudio/core/hooks
useAppDispatch
.
import {useAppDispatch} from 'LinkerStudio/core/hooks';
import {fetchInternalAccounts} from 'LinkerStudio/modules/baas/redux/accounts';
const dispatch = useAppDispatch();
dispatch(fetchInternalAccounts({}));
Get Specific Accounts
The use of all account request parameters is optional.
Parameter
Type
Description
syntheticAccountCategory
string
Filter by account type
Accounts Request Example
fetchInternalAccounts({syntheticAccountCategory: 'general'})
How to get Statements?
Invoke fetchCustomerStatements
, from redux/accounts
using LinkerStudio/core/hooks
useAppDispatch
.
import {useAppDispatch} from 'LinkerStudio/core/hooks';
import {fetchCustomerStatements} from 'LinkerStudio/modules/baas/redux/accounts';
const dispatch = useAppDispatch();
dispatch(fetchCustomerStatements());
Get Specific Statement
Get a document from a statement. The following environment variables are required:
API_BAAS_CUSTOMER_STATEMENTS='/baas/statements'
Parameter
Type
Description
statementId
string
Filter by statement id
import {useGetStatementsById} from 'LinkerStudio/modules/baas/common/hooks';
const [getStatementById, document, isLoadingDocument] = useGetStatementsById();
getStatementById(statementId);
Response
Type
Description
document
base64
Show PDF in base64
isLoadingDocument
boolean
Show loading document
Last updated
Was this helpful?